Previously, I saw a file used to scan and block IFRAME scripts and use VBscript. I felt pretty good when I encrypted the encode. So I asked him to take a tool and searched for the source code for online decryption. I will share the following with you:
Create a new. htm file and copy the following content to it.
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
<Meta content = "mshtml 6.00.255.0.0" name = Generator/>
<Title> decrypt the encrypted VBScript code-VBScript. encode </title>
</Head>
<Body bgcolor = # 7c7e8b leftmargin = 0 topmargin = 0>
<Table cellspacing = 0 cellpadding = 0 width = 570 align = center bgcolor = # ffffff border = 0>
<Tr>
<TD width = 570 valign = Top bgcolor = # ffffff>
<Table cellSpacing = 0 cellPadding = 0 width = 100% bgcolor = # ffffff border = 0>
<Tr>
<Td vAlign = top align = middle width = 571 height = 222>
<Table cellSpacing = 0 cellPadding = 6 width = "100%" align = center border = 0>
<Tr>
<Td width = "550" height = 10> </td>
</Tr>
<Tr align = center>
<Td class = "f14"> <strong> <font color = # ff6600> VBScript. Encode decryption </font> </strong> </td>
</Tr>
</Table>
<Hr size = "1">
<Table width = "98%" border = 0 align = center cellspacing = "0" class = tf>
<Tr>
<Td class = bw width = "100%"> <font size = 2>
<Style type = text/css>
A: link {
Color: #0083e4; font-family: ""; text-Decoration: None
}
A: visited {
Color: #0083e4; text-Decoration: None
}
A: active {
Color: #0083e4; text-Decoration: None
}
A: hover {
Color: # ff3300; text-Decoration: underline
}
. Title {
Font-size: 22px; color: # ff3300; font-family: ""
}
TD {
Font-size: 12px
}
</Style>
<Center>
<Table cellpadding = 3 bgcolor = # e7e7e7>
<Tr>
<TD bgcolor = # ffcc00>
<Div align = center> <font color = # ffffff size = 3> <strong> ecode decoder </strong> </font> </div> </TD> </tr>
<Tr>
<TD align = Middle Height = 80>
<Script language = JScript>
VaR state_copy_input = 100
VaR state_readlen= 101
VaR state_decode = 102
VaR state_unescape = 103
VaR pick_encoding = new array (
1, 2, 0, 1, 2, 0, 2, 0, 0, 2, 0, 2, 1, 0, 2, 0,
1, 0, 2, 0, 1, 1, 2, 0, 0, 2, 1, 0, 2, 0, 0, 2,
1, 1, 0, 2, 0, 2, 0, 1, 0, 1, 1, 2, 0, 1, 0, 2,
1, 0, 2, 0, 1, 1, 2, 0, 0, 1, 1, 2, 0, 1, 0, 2
)
VaR rawdata = new array (
0x64, 0x37, 0x69, 0x50, 0x7e, 0x2c, 0x22, 0x5a, 0x65, 0x4a, 0x45, 0x72,
0x61, 0x3a, 0x5b, 0x5e, 0x79,0x66, 0x5d, 0x59,0x75, 0x5b, 0x27, 0x4c,
0x45, 0x60, 0x76, 0x62, 0x2a, 0x65, 0x4d, 0x43,
0x5f, 0x51,0x33, 0x7e, 0x53,0x42, 0x4f, 0x52,0x20, 0x52,0x20, 0x63,
0x7A, 0x26, 0x4A, 0x21,0x54, 0x5A, 0x46,0x71,0x38, 0x20, 0x2B, 0x79,
0x26,0x66,0x32, 0x63, 0x2A, 0x57, 0x2A, 0x58, 0x6C, 0x76, 0x7F, 0x2B,
0x47, 0x7B, 0x46, 0x25, 0x30,0x52, 0x2C, 0x31, 0x4F, 0x29, 0x6C, 0x3D,
0x69,0x49,0x70, 0x3F, 0x3F, 0x3F, 0x27,0x78, 0x7B, 0x3F, 0x3F, 0x3F,
0x67, 0x5F, 0x51, 0x3F, 0x3F, 0x3F, 0x62,0x29, 0x7A, 0x41,0x24, 0x7E,
0x5A, 0x2F, 0x3B, 0x66,0x39,0x47, 0x32, 0x33,0x41, 0x73, 0x6F, 0x77,
0x4D, 0x56, 0x75, 0x5F, 0x26, 0x39,0x78,
0x7C, 0x46, 0x6E, 0x53, 0x4A, 0x64, 0x48, 0x5C, 0x74, 0x31,0x48, 0x67,
0x72,0x36, 0x7D, 0x6E, 0x4B, 0x68, 0x70, 0x7D, 0x35, 0x49, 0x5D, 0x22,
0x3F, 0x6A, 0x55, 0x4B, 0x50, 0x3A, 0x6A, 0x69,0x60, 0x2E, 0x23, 0x6A,
0x7F, 0x09,0x71, 0x28,0x70, 0x6F, 0x35,0x65,0x49, 0x7D, 0x74, 0x5C,
0x24, 0x2C, 0x5D, 0x2D, 0x77,0x27, 0x54,0x44,0x59, 0x37, 0x3F, 0x25,
0x7b, 0x6d, 0x7c, 0x3d, 0x7c, 0x23, 0x6c, 0x43, 0x6d, 0x34,0x38,0x28,
0x6d, 0x5e, 0x31, 0x4e, 0x5b, 0x39, 0x2b, 0x6e, 0x7f, 0x30,0x57,0x36,
0x6f, 0x4c, 0x54, 0x34,0X34, 0x6b, 0x62, 0x4c, 0x25, 0x4e,
0x33,0x56,0x30, 0x56,0x73, 0x5e, 0x3a, 0x68,0x73, 0x78,0x55,0x09,
0x57,0x47, 0x4b, 0x77,0x32, 0x61, 0x3b, 0x35, 0x24, 0x44, 0x2e, 0x4d,
0x2f, 0x64, 0x6b, 0x59, 0x4f, 0x44, 0x45, 0x3b, 0x21, 0x5c, 0x2d, 0x37,
0 x, 0 x, 0x53, 0 x, 0 x, 0x58, 0x58, 0x7a, 0x48, 0x79,0x22, 0x2e,
0x09,0x60,0x50, 0x75, 0x6b, 0x2d, 0x38, 0x4e, 0x29, 0x55, 0x3d, 0x3f
)
VaR transformed = new array ()
For (VAR I = 0; I <3; I ++) transformed [I] = new array ()
For (VAR I = 31; I <= 126; I ++) for (VAR J = 0; j <3; j ++) transformed [J] [rawdata [(i-31) * 3 + J] = (I = 31 )? 9: I
VaR digits = new array ()
For (VAR I = 0; I <26; I ++)
{
Digits ["A". charcodeat (0) + I] = I
Digits ["A". charcodeat (0) + I] = I + 26
}
For (VAR I = 0; I <10; I ++) digits ["0". charcodeat (0) + I] = I + 52
Digits [0x2b] = 62
Digits [0x2f] = 63
Function Unescape (char)
{
VaR escapes = "#&! * $"
VaR escaped = "/R/n <> @"
If (char. charcodeat (0)> 126) return char
If (escapes. indexof (char )! =-1) return escaped. substr (escapes. indexof (char), 1)
Return "? "
}
Function decodebase64 (string)
{
Var val = 0
Val + = (digits [String. substr (0, 1). charcodeat (0)] <2)
Val + = (digits [String. substr (1,1). charcodeat (0)]> 4)
Val + = (digits [String. substr (1,1). charcodeat (0)] & 0xf) <12
Val + = (digits [string. substr (2, 1). charCodeAt (0)]> 2) <8)
Val + = (digits [string. substr (2, 1). charCodeAt (0)] & 0x3) <22)
Val + = (digits [string. substr (3,1). charCodeAt (0)] <16)
Return val
}
Function strdec (encodingString)
{
Var marker = "#@~ ^"
Var stringIndex = 0
Var scriptIndex =-1
Var unEncodingIndex = 0
Var char = null
Var encodingLength = unEncodinglength = 0
Var state = STATE_COPY_INPUT
Var unEncodingString = ""
Var re, arr
While (state)
{
Switch (state)
{
Case (STATE_COPY_INPUT ):
ScriptIndex = encodingString. indexOf (marker, stringIndex)
If (scriptindex! =-1)
{
Unencodingstring + = encodingstring. substring (stringindex, scriptindex)
Scriptindex + = marker. Length
State = state_readlen
}
Else
{
Stringindex = 0? 0: stringindex
Unencodingstring + = encodingstring. substr (stringindex, encodingstring. length)
State = 0
}
Break
Case (state_readlen ):
Encodinglength = encodingstring. substr (scriptindex, 6)
Unencodinglength = decodebase64 (encodinglength)
Scriptindex + = (6 + "=". length)
State = state_decode
Break
Case (state_decode ):
If (! Unencodinglength)
{
Stringindex = scriptindex + "dqgaaa = ^ #~ @ ". Length
UnEncodingIndex = 0
State = STATE_COPY_INPUT
Break
}
Char = encodingString. substr (scriptIndex, 1)
If (char = "@") state = STATE_UNESCAPE
Else
{
If (char. charCodeAt (0) <0xFF)
{
UnEncodingString + = String. fromCharCode (transformed [pick_encoding [unEncodingIndex % 64] [char. charCodeAt (0)])
UnEncodingIndex ++
}
Else
{
UnEncodingString + = char
}
ScriptIndex ++
UnEncodinglength --
Break
}
Case STATE_UNESCAPE:
UnEncodingString + = unescape (encodingString. substr (++ scriptIndex, 1 ))
ScriptIndex ++; unEncodinglength-= 2
UnEncodingIndex ++
State = STATE_DECODE
Break
}
}
Re = new RegExp ("(JScript | VBscript). encode", "gmi ")
While (arr = re.exe c (unEncodingString) unEncodingString = RegExp. leftContext + RegExp. $1 + RegExp. rightContext
Return unEncodingString
}
</Script>
<Div align = center> Ecode decoder </div> <textarea id = encodeHTML rows = 35 cols = 70> </textarea> <br>
<Div align = center> <button onclick = encodeHTML. innerText = strdec (encodeHTML. innerText)> decrypt
<Div> </button> </div> </td> </tr>
<Tr>
<Td bgcolor = #336699> </td> </tr> </table> </center> </font> </td>
</Tr>
</Table>
<Hr size = "1"> </td>
</Tr>
</Table> </TD>
</Tr> </table>
</Body>
</Html>