如何人工解密js,只要谷歌浏览器就行
2019-10-12 admin 前端 1422
打开谷歌浏览器,按F12打开调试模式,点击Console,开始人工解密。原始加密js代码,经过格式化后(代码太长,后台的省略):
var __encode = 'sojson.com', _0xb483 = ["\x5F\x64\x65\x63\x6F\x64\x65", "\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x73\x6F\x6A\x73\x6F\x6E\x2E\x63\x6F\x6D\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x6F\x62\x66\x75\x73\x63\x61\x74\x6F\x72\x2E\x68\x74\x6D\x6C"]; (function(_0xd642x1) { _0xd642x1[_0xb483[0]] = _0xb483[1] })(window); var __Ox259ec = ["\x68\x69\x64\x65", "\x2E\x6C\x6F\x61\x64\x69\x6E\x67", "\x76\x61\x69\x6C\x64\x74\x69\x6D\x65\x31", "\x76\x61\x69\x6C\x64\x74\x69\x6D\x65\x32", "", "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u59D3\u540D", "\u8BF7\u8F93\u5165\u8003\u751F\u59D3\u540D", "\u8BF7\u8F93\u5165\x38\u5230\x32\x30\u4F4D\u4E4B\u95F4\u7684\u51C6\u8003\u8BC1\u53F7", "\u8BF7\u8F93\u5165\u51C6\u8003\u8BC1\u53F7", "\u8BF7\u8F93\u5165\x34\u4F4D\u7684\u51FA\u751F\u5E74\u6708", "\u8BF7\u8F93\u5165\u51FA\u751F\u5E74\u6708", "\u8BF7\u8F93\u5165\x36\u4F4D\u7684\u51FA\u751F\u5E74\u6708", "\u8BF7\u8F93\u5165\x38\u4F4D\u7684\u51FA\u751F\u5E74\u6708", "\u8BF7\u8F93\u5165\x36\u4F4D\u9A8C\u8BC1\u7801", "\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801", "\u9A8C\u8BC1\u7801\u9519\u8BEF", "\u8BF7\u8F93\u5165\x38\u5230\x31\x38\u4F4D\u8EAB\u4EFD\u8BC1\u53F7", "\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7", "\x63\x6C\x69\x63\x6B", "\x73\x68\x6F\x77", "\x2E\x67\x6F\x62\x61\x63\x6B", "\x6E\x6F\x6E\x65", "\x63\x73\x73", "\x2E\x74\x61\x62\x6C\x65\x2D\x72\x65\x73\x75\x6C\x74", "\x62\x6C\x6F\x63\x6B", "\x2E\x66\x6F\x72\x6D\x2D\x69\x6E\x66\x6F", "\x2E\x63\x61\x6C\x6C\x62\x61\x63\x6B", "\x6F\x6E", "\x23\x6D\x79\x63\x6F\x64\x65", "\x2F\x65\x65\x73\x63\x2F\x70\x75\x62\x2D\x61\x70\x69\x2F\x71\x75\x65\x72\x79\x43\x6F\x64\x65\x2F\x67\x65\x74\x49\x6D\x61\x67\x65\x49\x6E\x66\x6F\x3F\x74\x3D", "\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x6A\x73\x6F\x6E\x3B\x20\x63\x68\x61\x72\x73\x65\x74\x3D\x75\x74\x66\x2D\x38", "\x61\x6A\x61\x78", "\x70\x61\x72\x73\x65", "\x65\x72\x72\x6F\x72", "\x23", "\x6C\x65\x6E\x67\x74\x68", "\x3C\x64\x69\x76\x20\x69\x64\x20\x3D\x20\x27", "\x27\x20\x3E\x3C\x2F\x64\x69\x76\x3E", "\x73\x72\x63", "\x69\x6D\x67\x64\x61\x74\x61", "\x64\x61\x74\x61", "\x61\x74\x74\x72", "\x23\x76\x61\x69\x6C\x64", "\x68\x74\x6D\x6C", "\x23\x74\x69\x6D\x65", "\x75\x75\x69\x64", "\x6D\x73\x67", "\x64\x6F\x6E\x65", "\x66\x61\x69\x6C", "\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73", "\x43", "\x69\x6E\x64\x65\x78\x4F\x66", "\x23\x6C\x69\x5F\x69\x64\x43\x61\x72\x64", "\x53", "\x23\x6C\x69\x5F\x65\x78\x61\x6D\x43\x6F\x64\x65", "\x4E", "\x23\x6C\x69\x5F\x6E\x61\x6D\x65\x43\x6F\x64\x65", "\x42", "\x34", "\x23\x6C\x69\x5F\x62\x69\x72\x74\x68\x64\x61\x79\x34", "\x36", "\x23\x6C\x69\x5F\x62\x69\x72\x74\x68\x64\x61\x79\x36", "\x38", "\x23\x6C\x69\x5F\x62\x69\x72\x74\x68\x64\x61\x79\x38", "\u8BF7\u70B9\u51FB\u91CD\u83B7\u9A8C\u8BC1\u7801", "\x73\u540E\u5931\u6548", "\x73\u540E\u5931\u6548\x3C\x62\x72\x3E\u53EF\u70B9\u51FB\u91CD\u83B7", "\x23\x66\x65\x74\x63\x68\x52\x65\x73\x75\x6C\x74", "\x2E\x65\x78\x61\x6D\x45\x72\x72\x6F\x72", "\x2E\x62\x69\x72\x45\x72\x72\x6F\x72", "\x2E\x63\x6F\x64\x65\x45\x72\x72\x6F\x72", "\x2E\x69\x64\x45\x72\x72\x6F\x72", "\x2E\x6E\x61\x6D\x65\x45\x72\x72\x6F\x72", "\x23\x65\x78\x61\x6D\x43\x6F\x64\x65", "\x23\x62\x69\x72\x74\x68\x64\x61\x79\x34", "\x23\x62\x69\x72\x74\x68\x64\x61\x79\x36", "\x23\x62\x69\x72\x74\x68\x64\x61\x79\x38", "\x23\x69\x64\x43\x61\x72\x64", "\x23\x6E\x61\x6D\x65\x43\x6F\x64\x65", "\x23\x63\x6F\x64\x65", "\x69\x6E\x70\x75\x74\x4E\x75\x6C\x6C", "\x63\x6F\x64\x65", "\x61\x63\x74\x69\x76\x65", "\x61\x64\x64\x43\x6C\x61\x73\x73", "\x69\x6E\x70\x75\x74\x45\x72\x72\x6F\x72", "\x72\x65\x6D\x6F\x76\x65\x43\x6C\x61\x73\x73", "\x65\x78\x61\x6D\x43\x6F\x64\x65", "\x69\x64\x43\x61\x72\x64", "\x6E\x61\x6D\x65\x43\x6F\x64\x65", "\x62\x69\x72\x74\x68\x64\x61\x79", "\x69\x6E\x70\x75\x74", "\x76\x61\x6C", "\x74\x72\x69\x6D", "\x73\x75\x62\x73\x74\x72\x69\x6E\x67", "\x62\x6C\x75\x72", "\x24\x24", "\x20\x2F\x65\x65\x73\x63\x2F\x70\x75\x62\x2D\x61\x70\x69\x2F\x63\x6F\x6D\x6D\x6F\x6E\x51\x75\x65\x72\x79\x2F\x71\x75\x65\x72\x79\x44\x61\x74\x61\x73\x3F\x69\x64\x3D", "\x26\x62\x61\x74\x63\x68\x3D", "\x62\x61\x74\x63\x68", "\x26\x75\x75\x69\x64\x3D", "\x26\x74\x79\x70\x65\x3D", "\x74\x79\x70\x65", "\x26\x63\x6F\x64\x65\x3D", "\x26\x62\x69\x72\x74\x68\x3D", "\x26\x69\x64\x5F\x63\x61\x72\x64\x3D", "\x26\x73\x74\x75\x64\x65\x6E\x74\x5F\x6E\x61\x6D\x65\x3D", "\x6A\x73\x6F\x6E", "\x70\x6F\x73\x74", "\x69\x6E\x70\x75\x74\x52\x65\x45\x72\x72\x6F\x72", "\u67E5\u8BE2\u5931\u8D25\uFF0C\u9519\u8BEF\u539F\u56E0\uFF1A", "\x23\x72\x65\x73\x75\x6C\x74", "\x73\x63\x6F\x72\x65\x5F\x72\x65\x6D\x61\x72\x6B", "\x23\x72\x65\x6D\x61\x72\x6B", "\x3C\x74\x61\x62\x6C\x65\x20\x73\x74\x79\x6C\x65\x3D\x22\x62\x6F\x72\x64\x65\x72\x2D\x63\x6F\x6C\x6C\x61\x70\x73\x65\x3A\x63\x6F\x6C\x6C\x61\x70\x73\x65\x3B\x6D\x61\x72\x67\x69\x6E\x2D\x6C\x65\x66\x74\x3A\x20\x61\x75\x74\x6F\x3B\x6D\x61\x72\x67\x69\x6E\x2D\x72\x69\x67\x68\x74\x3A\x20\x61\x75\x74\x6F\x3B\x77\x69\x64\x74\x68\x3A\x20\x61\x75\x74\x6F\x3B\x22\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x61\x62\x6C\x65\x22\x3E", "\u51C6\u8003\u8BC1", "\x3C\x74\x72\x3E\x3C\x74\x68\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x64\x22\x20\x77\x69\x64\x74\x68\x3D\x22\x31\x30\x30\x70\x78\x22\x3E\u51C6\u8003\u8BC1\x3C\x2F\x74\x68\x3E", "\x3C\x74\x64\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x64\x22\x20\x77\x69\x64\x74\x68\x3D\x22", "\x77\x69\x64\x74\x68", "\x70\x78\x22\x3E", "\x76\x61\x6C\x75\x65", "\x3C\x2F\x74\x64\x3E\x3C\x2F\x74\x72\x3E", "\u51C6\u8003\u8BC1\u53F7", "\x3C\x74\x72\x3E\x3C\x74\x68\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x64\x22\x20\x77\x69\x64\x74\x68\x3D\x22\x31\x30\x30\x70\x78\x22\x3E\u51C6\u8003\u8BC1\u53F7\x3C\x2F\x74\x68\x3E", "\u8BC1\u4EF6\u53F7", "\x3C\x74\x72\x3E\x3C\x74\x68\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x64\x22\x20\x77\x69\x64\x74\x68\x3D\x22\x31\x30\x30\x70\x78\x22\x3E\u8BC1\u4EF6\u53F7\x3C\x2F\x74\x68\x3E", "\u8003\u751F\u53F7", "\x3C\x74\x72\x3E\x3C\x74\x68\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x64\x22\x20\x77\x69\x64\x74\x68\x3D\x22\x31\x30\x30\x70\x78\x22\x3E\u8003\u751F\u53F7\x3C\x2F\x74\x68\x3E", "\u59D3\u540D", "\x3C\x74\x72\x3E\x3C\x74\x68\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x64\x22\x20\x77\x69\x64\x74\x68\x3D\x22\x31\x30\x30\x70\x78\x22\x3E\u59D3\u540D\x3C\x2F\x74\x68\x3E", "\u51FA\u751F\u5E74\u6708", "\x3C\x74\x72\x3E\x3C\x74\x68\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x64\x22\x20\x77\x69\x64\x74\x68\x3D\x22\x31\x30\x30\x70\x78\x22\x3E\u51FA\u751F\u5E74\u6708\x3C\x2F\x74\x68\x3E", "\u51FA\u751F\u65E5\u671F", "\x3C\x74\x72\x3E\x3C\x74\x68\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x64\x22\x20\x77\x69\x64\x74\x68\x3D\x22\x31\x30\x30\x70\x78\x22\x3E\u51FA\u751F\u65E5\u671F\x3C\x2F\x74\x68\x3E", "\u8EAB\u4EFD\u8BC1", "\x3C\x74\x72\x3E\x3C\x74\x68\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x64\x22\x20\x77\x69\x64\x74\x68\x3D\x22\x31\x30\x30\x70\x78\x22\x3E\u8EAB\u4EFD\u8BC1\x3C\x2F\x74\x68\x3E", "\u8EAB\u4EFD\u8BC1\u53F7", "\x3C\x74\x72\x3E\x3C\x74\x68\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x64\x22\x20\x77\x69\x64\x74\x68\x3D\x22\x31\x30\x30\x70\x78\x22\x3E\u8EAB\u4EFD\u8BC1\u53F7\x3C\x2F\x74\x68\x3E", "\x6C\x69\x73\x74", "\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79", "\x3C\x74\x72\x3E\x3C\x74\x68\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x64\x22\x20\x77\x69\x64\x74\x68\x3D\x22\x31\x30\x30\x70\x78\x22\x3E", "\x3C\x2F\x74\x68\x3E", "\x66\x6F\x72\x45\x61\x63\x68", "\x6B\x65\x79\x73", "\x3C\x2F\x74\x61\x62\x6C\x65\x3E", "\x3C\x2F\x62\x72\x3E", "\x3C\x74\x72\x3E", "\x3C\x74\x68\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x64\x22\x20\x77\x69\x64\x74\x68\x3D\x20\x22", "\x3C\x74\x64\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x64\x22\x3E", "\x2D\x2D", "\x3C\x2F\x74\x64\x3E", "\x3C\x2F\x74\x72\x3E", "\u67E5\u8BE2\u5931\u8D25", "\x68\x72\x65\x66", "\x3F", "\x73\x75\x62\x73\x74\x72", "\x26", "\x73\x70\x6C\x69\x74", "\x3D", "\x6E\x61\x6D\x65", "\x2E\x63\x6F\x6E\x74\x65\x6E\x74\x2D\x74\x69\x74\x6C\x65\x20\x68\x32", "\x2F\x64\x61\x74\x61\x2F\x65\x65\x73\x63\x2F\x63\x6D\x73\x2F\x73\x69\x74\x65\x2F\x63\x6F\x6C\x75\x6D\x6E\x73\x2F\x33\x33\x35\x2E\x68\x74\x6D\x6C", "\x72\x65\x66\x65\x72\x72\x65\x72", "\x6C\x6F\x63\x61\x74\x69\x6F\x6E", "\x68\x74\x74\x70\x3A\x2F\x2F", "\x64\x6F\x6D\x61\x69\x6E"]; $(function() { $(__Ox259ec[0x1])[__Ox259ec[0x0]](); var _0xd8acx1 = true, _0xd8acx2 = true, _0xd8acx3 = true, _0xd8acx4 = true, _0xd8acx5 = true; var _0xd8acx6 = __Ox259ec[0x2], _0xd8acx7 = __Ox259ec[0x3], _0xd8acx8 = __Ox259ec[0x4], _0xd8acx9 = __Ox259ec[0x4], _0xd8acxa = 0, _0xd8acxb = 0; var _0xd8acxc = {}; var _0xd8acxd = { nameCode: { inputError: __Ox259ec[0x5], inputNull: __Ox259ec[0x6] }, examCode: { inputError: __Ox259ec[0x7], inputNull: __Ox259ec[0x8] }, birthday4: { inputError: __Ox259ec[0x9], inputNull: __Ox259ec[0xa] }, birthday6: { inputError: __Ox259ec[0xb], inputNull: __Ox259ec[0xa] }, birthday8: { inputError: __Ox259ec[0xc], inputNull: __Ox259ec[0xa] }, code: { inputError: __Ox259ec[0xd], inputNull: __Ox259ec[0xe], inputReError: __Ox259ec[0xf] }, idCard: { inputError: __Ox259ec[0x10], inputNull: __Ox259ec[0x11] } }; _0xd8acx41(); _0xd8acx3b(); _0xd8acxe(); _0xd8acx15(); $(__Ox259ec[0x1a])[__Ox259ec[0x1b]](__Ox259ec[0x12], function() { $(__Ox259ec[0x14])[__Ox259ec[0x13]](); $(__Ox259ec[0x17])[__Ox259ec[0x16]]({ display: __Ox259ec[0x15] }); $(__Ox259ec[0x19])[__Ox259ec[0x16]]({ display: __Ox259ec[0x18] }); $(__Ox259ec[0x1a])[__Ox259ec[0x16]]({ display: __Ox259ec[0x15] }); _0xd8acxe() }); $(__Ox259ec[0x1c])[__Ox259ec[0x1b]](__Ox259ec[0x12], function() { if (_0xd8acxa <= 45) { _0xd8acxb = 1; _0xd8acxe() } }); function _0xd8acxe() { var _0xd8acxf = $[__Ox259ec[0x1f]]({ url: __Ox259ec[0x1d] + encodeURIComponent(new Date()), contentType: __Ox259ec[0x1e] }); _0xd8acxf[__Ox259ec[0x2f]](function(_0xd8acx10) { var _0xd8acx11 = JSON[__Ox259ec[0x20]](_0xd8acx10); if (!_0xd8acx11[__Ox259ec[0x21]]) { if ($(__Ox259ec[0x22] + _0xd8acx6) && $(__Ox259ec[0x22] + _0xd8acx6)[__Ox259ec[0x23]] == 0) { _0xd8acx8 = _0xd8acx6 } else { _0xd8acx8 = _0xd8acx7 }; var _0xd8acx12 = __Ox259ec[0x24] + _0xd8acx8 + __Ox259ec[0x25]; $(__Ox259ec[0x2a])[__Ox259ec[0x29]](__Ox259ec[0x26], _0xd8acx11[__Ox259ec[0x28]][__Ox259ec[0x27]]); $(__Ox259ec[0x2c])[__Ox259ec[0x2b]](_0xd8acx12); _0xd8acx9 = _0xd8acx11[__Ox259ec[0x28]][__Ox259ec[0x2d]]; _0xd8acx17(60, _0xd8acx8) } else { layer[__Ox259ec[0x2e]](_0xd8acx11[__Ox259ec[0x21]]) } }); _0xd8acxf[__Ox259ec[0x30]](function(_0xd8acx13, _0xd8acx14) {}) } function _0xd8acx15() { var _0xd8acx16 = _0xd8acxc[__Ox259ec[0x31]]; if (_0xd8acx16[__Ox259ec[0x33]](__Ox259ec[0x32]) != -1) { $(__Ox259ec[0x34])[__Ox259ec[0x16]]({ display: __Ox259ec[0x18] }) }; if (_0xd8acx16[__Ox259ec[0x33]](__Ox259ec[0x35]) != -1) { $(__Ox259ec[0x36])[__Ox259ec[0x16]]({ display: __Ox259ec[0x18] }) }; if (_0xd8acx16[__Ox259ec[0x33]](__Ox259ec[0x37]) != -1) { $(__Ox259ec[0x38])[__Ox259ec[0x16]]({ display: __Ox259ec[0x18] }) }; if (_0xd8acx16[__Ox259ec[0x33]](__Ox259ec[0x39]) != -1) { if (_0xd8acx16[__Ox259ec[0x33]](__Ox259ec[0x3a]) != -1) { $(__Ox259ec[0x3b])[__Ox259ec[0x16]]({ display: __Ox259ec[0x18] }) } else { if (_0xd8acx16[__Ox259ec[0x33]](__Ox259ec[0x3c]) != -1) { $(__Ox259ec[0x3d])[__Ox259ec[0x16]]({ display: __Ox259ec[0x18] }) } else { if (_0xd8acx16[__Ox259ec[0x33]](__Ox259ec[0x3e]) != -1) { $(__Ox259ec[0x3f])[__Ox259ec[0x16]]({ display: __Ox259ec[0x18] }) } else { alert(__Ox259ec[0x21]) } } } } }
可以看到,变量和函数名加密了,放在了[]的变量里。所以,先解密变量,将[]里面的代码复制,并放入下面代码的单引号里
console.log('');
再复制粘贴到浏览器,回车即可看到解密后的变量:
可见,这种js加密并不可靠,破解是很简单的。