Sub js反混淆()
With CreateObject("Microsoft.XMLHTTP")
On Error Resume Next
.Open "GET", "http://passport.58.com/rsa/ppt_security.js", False '这个js是被混淆了的
.send
ss = Replace(Replace(.responsetext, "eval(", ""), ".split('|'),0,{}))", ".split('|'),0,{})")
End With
Open "C:\a.html" For Append As #1
Print #1, "<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0 Strict//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd""><html xmlns=""http://www.w3.org/1999/xhtml""><head><title></title></head><body><div id=""divTest""></div><script type=""text/javascript"">document.getElementById('divTest').innerText="
Print #1, ss
Print #1, "</script></body></html>"
Close #1
With CreateObject("internetExplorer.Application")
.Visible = True
.Navigate "C:\a.html" '看看,是不是已经反混淆了
While .ReadyState <> 4 Or .busy
DoEvents
Wend
End With
End Sub
JS反混淆
最新推荐文章于 2024-08-08 07:50:16 发布