我最近遇到下面形式的代码,研究一天终于在网上找到下面解码方式:
仿照地址:https://zhidao.baidu.com/question/199754638031264525.html
var X$4 = ['\x5f', '\x2d', '\x2c', '\x61', '\x62', '\x63', '\x64', '\x65', '\x66', '\x67', '\x68', '\x69', '\x6a', '\x6b',
'\x6c', '\x6d', '\x6e', '\x6f', '\x70', '\x71', '\x72', '\x73', '\x74',
'\x75', '\x76', '\x77', '\x78', '\x79', '\x7a', '\x30', '\x31', '\x32', '\x33', '\x34', '\x35', '\x36', '\x37',
'\x38', '\x39', '\x41', '\x42', '\x43', '\x44', '\x45', '\x46', '\x47', '\x48', '\x49', '\x4a', '\x4b', '\x4c',
'\x4d', '\x4e', '\x4f', '\x50', '\x51', '\x52', '\x53', '\x54', '\x55', '\x56', '\x57', '\x58', '\x59', '\x5a'];
解密方法:通过新建一个html把下面代码放进去进行解码即可。
<script>
var X$4 = ['\x5f', '\x2d', '\x2c', '\x61', '\x62', '\x63', '\x64', '\x65', '\x66', '\x67', '\x68', '\x69', '\x6a', '\x6b',
'\x6c', '\x6d', '\x6e', '\x6f', '\x70', '\x71', '\x72', '\x73', '\x74',
'\x75', '\x76', '\x77', '\x78', '\x79', '\x7a', '\x30', '\x31', '\x32', '\x33', '\x34', '\x35', '\x36', '\x37',
'\x38', '\x39', '\x41', '\x42', '\x43', '\x44', '\x45', '\x46', '\x47', '\x48', '\x49', '\x4a', '\x4b', '\x4c',
'\x4d', '\x4e', '\x4f', '\x50', '\x51', '\x52', '\x53', '\x54', '\x55', '\x56', '\x57', '\x58', '\x59', '\x5a'];
function decode()
{
var element = document.getElementById('code');
for (var key in _0xf488) {
element.value += _0xf488[key] + "\n";
}
}
</script>
<textarea id="code" cols="80" rows="20"></textarea>
<input type="button" onclick="decode()" value="解码">
新建个html 文件,复制进去,保存文件,然后用浏览器打开这个文件,点击解码按钮。
解码成功后显示:("_-,abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ")