87,901
社区成员
发帖
与我相关
我的任务
分享
<script language=javascript>
window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x77\x72\x69\x74\x65\x6c\x6e"]("\u8d44\u6e90\u63d0\u4f9b\x3a\x3c\x61 \x68\x72\x65\x66\x3d\"\x68\x74\x74\x70\x3a\/\/\x62\x62\x73\x2e\x67\x6f\x70\x65\x2e\x63\x6e\/\" \x74\x61\x72\x67\x65\x74\x3d\"\x5f\x62\x6c\x61\x6e\x6b\" \x73\x74\x79\x6c\x65\x3d\"\x63\x6f\x6c\x6f\x72\x3a\x23\x33\x33\x36\x36\x30\x30\x3b\" \x3e\x3c\x62\x3e\u72d7\u6251\u6e90\u7801\u793e\u533a\x3c\/\x62\x3e\x3c\/\x61\x3e");
</script>
这是原始的代码
<script language=javascript>
window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x77\x72\x69\x74\x65\x6c\x6e"]("\u8d44\u6e90\u63d0\u4f9b\x3a\x3c\x61 \x68\x72\x65\x66\x3d\"\x68\x74\x74\x70\x3a\/\/\x62\x62\x73\x2e\x67\x6f\x70\x65\x2e\x63\x6e\/\" \x74\x61\x72\x67\x65\x74\x3d\"\x5f\x62\x6c\x61\x6e\x6b\" \x73\x74\x79\x6c\x65\x3d\"\x63\x6f\x6c\x6f\x72\x3a\x23\x33\x33\x36\x36\x30\x30\x3b\" \x3e\x3c\x62\x3e\u72d7\u6251\u6e90\u7801\u793e\u533a\x3c\/\x62\x3e\x3c\/\x61\x3e");
</script>
这是解码的代码
<script>
s = document.scripts[0].innerHTML;
s = s.replace(/\\(x..)/g, function(a, b) { return eval('String.fromCharCode(0'+b+')'); });
s = s.replace(/\\u(....)/g, function(a, b) { return eval('String.fromCharCode(0x'+b+')'); });
alert(s); //看一下
</script>
document.writeln("资源提供:<a href="http://bbs.gope.cn/" target="_blank" style="color:#336600;" ><b>狗扑源码社区</b></a>");
function toHexString(v) {
var r = '',hex;
for (var i = 0, j = v.length; i < j; i++) {
hex = v.charCodeAt(i).toString(16);
r += (hex.length > 2 ? '\\u' : '\\x') + hex;
}
return r;
}
var s = toHexString("我的名字是showbo");
document.write(s)
alert(s)
alert(eval('"' + s + '"'));
要加密可以用eval加密就行了,给你个地址:http://www.jb51.net/tools/eval/