首页 网络安全 安全学院 查看内容

最近那个IE7 0day shellcode解密

2008-12-15 10:40 676 0

摘要: 作者:lcx 一、用freshow工具来解密 原始链接 http://bbs.kafan.cn/viewthread.php?tid=383769&page=1&extra=...
关键词: function nbsp replaceregex Sstr hexStr fileS regex Replace Hex2Str 代码

作者:lcx 一、用freshow工具来解密 原始链接 http://bbs.kafan.cn/viewthread.php?tid=383769&page=1&extra=page%3D1#pid5736829需要提取shellcode解密 1   将dadong替换为%u   进行一次esc解密--up 2   esc 旁填入 21 decode 应该就出现了 二、自己动手吧,写个解密代码 '解密代码code="%u5549%u5155%u0E1B%u560E%u5656%u520F%u494E%u0F54%u4E42%u0E4C%u0F10%u5944%u0044" function replaceregex(str)Sstr=Replace(str,"%u","")set regex=new regExpregex.pattern="(..)(..)"regex.IgnoreCase=trueregex.global=truematches=regex.replace(Sstr,"$2$1")replaceregex=matchesend Function Function Hex2Str(hexStr)Dim sstr,hextmpFor i = 1 To Len(hexStr) step 2hexTmp = Mid(hexStr,i,2)If hexTmp <> "00" Thensstr = sstr & Chr(CLng("&h" & hexTmp) Xor &H21)End IfNextHex2Str = sstrEnd Function set fso=CreateObject("scripting.filesystemobject")set fileS=fso.opentextfile("a.txt",8,true)fileS.writeline Hex2Str(replaceregex(code))files.closeset fso=Nothing
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部