逆向案例二十一——遇到混淆怎么办

开始新的板块尝试,混淆了怎么办

网址:极简壁纸_海量电脑桌面壁纸美图_4K超高清_最潮壁纸网站

抓包抓到,好久没做解密了,奥里给干他!:

 搜索关键字,打上断点,点击第二页。

 

 

_0x10a345就是明文已经出现 ,现在就是确定是什么函数解密的。

很明显啊,前一行代码就是疑似解密的位置,打上断点,点击下一页。在控制台打印。

 

OK,已经确定好了解密函数了 。分析这段代码!

JSON['parse'](_0x5401c5['a']['decipher'](_0x38f555['data']['result']))

使用了某种加密算法来解密 data 对象中的 result 字段,然后通过 JSON.parse() 解析得到的解密结果。

具体来说,它首先调用 _0x5401c5['a']['decipher']() 函数对 data['result'] 进行解密,然后将解密后的结果传递给 JSON.parse() 函数进行解析。

那么就找到这个函数的位置,控制台打印

确定位置打上断点

 

_0xzz53b5就是传入的密文,返回的是明文。很明显,这里又嵌套了别的函数。_0x1b12e2(_0x388932(_0xbcd174(_0x2253b5)))

要找到的未定义包括_0x1b12e2,_0x388932,_0xbcd174

先复制代码:

_0x2253b5 = 'ak+9VCsq4dEdB+UdVfGo8kh5JDEbMHGTCmF/ACXJQ0IgGEauVgivRFLreNzrhFPP2wTUOBzYbqpOsl2NAezyg9rgZStPA6xJ+j9L3h9lfJ/+zIfKG1j6Eh/bWp9BcjXF3RMhCk3P2kFG5fHTK8myMdL+FT/K7sLwE1urbVYF17VKP3V0k27y/uF2ZRX3UnhBQbsvhwB6hZgJ0vuBLeHPQ4WPcc+pZmk5dO4FmTSXrxie+iq1IXGiQRSVvz9YwfwDqj78BwHRgZR+ibYi3qQH4yLIKCFj7UDw9WxFzatw98cEpoLETlB855xgiCrYeRsKPSU+TghsmJg9LuHzcvbIZ7WURHr5PGt4ARP3bOe4HYD9Sf5IfQCCUOh2OH1qt+64POe7OpsIhcZlb9fMyhajmgO1u3RHfC44UMVZDBHHt6Fbx5ETTx0Z9m94gQDPTLaJ45BePjdKEySVWXmrYwalKsFPvIL3QJ9KZ7INGYZIE1G6mGLBHF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lQeEuNDc2/Zu5wPutvpLXV8iP2D0mhT/ronXglLbePFPYoKhxH09v5TPb2MK1eh64LqMVq94KmSp4NyShLGmACpfxrWbUUKTXPf08MXyj6XbSLA7rlIPcgvlH2xF9oJPnk15EOWSnHkxW47t3zh3hCw/8xW/PeZY/C+q/Bzlke9VeTDBpvo5HFwOV8XmL1pEQ8SUqjc1QdgRvphtmAKy73cJYc31AoptmiauEmBtY8IMoqb02jmr4w4dYmg670jt9c/qTUiclhqh+X48kohciYUmz1X+KMQen/Qkv1SUM1Fi3f0hcHMOek2KR/ZXeMOFj9PGea9KEYN+Ofn1xM9uJdCGSizXo1FEomyvuBhqzfgzj8KE8mGrdfqm7KZpASea1P8s7tmHHq8RUYVYRSvnpoDZd6GNRPYpVGO6iDuh2kQl03Syaq/N4Dbc+p0PP3+OY9GGue8WexeWI5WQhLvBflzfSJFjVJTUfSlLmNs5meMxbZ2naFTfy2iK+3u9kDV37ENY09BwT1x3eSBUBj5V3E0fAIo17Z7yuf9na0vJYht7VrxSQAJoBormCVhAJ7k4CrUNtU6k2G/xofL5slSTt7hasGil03Cv5OYDclGq0gBcUwFvAajQbUK'function _0x461344(_0x2253b5) {return _0x1b12e2(_0x388932(_0xbcd174(_0x2253b5)));
}
console.log(_0x461344(_0x2253b5))

不出意外的,要出意外了。

那么开始扣代码吧!

看看代码在哪,就在上面

 

复制之后的代码:

_0x2253b5 = 'ak+9VCsq4dEdB+UdVfGo8kh5JDEbMHGTCmF/ACXJQ0IgGEauVgivRFLreNzrhFPP2wTUOBzYbqpOsl2NAezyg9rgZStPA6xJ+j9L3h9lfJ/+zIfKG1j6Eh/bWp9BcjXF3RMhCk3P2kFG5fHTK8myMdL+FT/K7sLwE1urbVYF17VKP3V0k27y/uF2ZRX3UnhBQbsvhwB6hZgJ0vuBLeHPQ4WPcc+pZmk5dO4FmTSXrxie+iq1IXGiQRSVvz9YwfwDqj78BwHRgZR+ibYi3qQH4yLIKCFj7UDw9WxFzatw98cEpoLETlB855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fR3QpqszMOspG81ov2/43ClLGtS9TV6if/cgUIHxBmCjH4gQCnktpxxGlpZ0R2oKV0QJSHrvHauOemO6Y4CWKA4Mgx1mB1fCHfB8BJGu9bwE0Ehtca5tFzRKNZ6qWcVnZqxOBVvVYsEFUwVDMtd1BsxCQljGJyezECYSNdXBS4QS0ySoLC0YUt8fg9Zs6lQeEuNDc2/Zu5wPutvpLXV8iP2D0mhT/ronXglLbePFPYoKhxH09v5TPb2MK1eh64LqMVq94KmSp4NyShLGmACpfxrWbUUKTXPf08MXyj6XbSLA7rlIPcgvlH2xF9oJPnk15EOWSnHkxW47t3zh3hCw/8xW/PeZY/C+q/Bzlke9VeTDBpvo5HFwOV8XmL1pEQ8SUqjc1QdgRvphtmAKy73cJYc31AoptmiauEmBtY8IMoqb02jmr4w4dYmg670jt9c/qTUiclhqh+X48kohciYUmz1X+KMQen/Qkv1SUM1Fi3f0hcHMOek2KR/ZXeMOFj9PGea9KEYN+Ofn1xM9uJdCGSizXo1FEomyvuBhqzfgzj8KE8mGrdfqm7KZpASea1P8s7tmHHq8RUYVYRSvnpoDZd6GNRPYpVGO6iDuh2kQl03Syaq/N4Dbc+p0PP3+OY9GGue8WexeWI5WQhLvBflzfSJFjVJTUfSlLmNs5meMxbZ2naFTfy2iK+3u9kDV37ENY09BwT1x3eSBUBj5V3E0fAIo17Z7yuf9na0vJYht7VrxSQAJoBormCVhAJ7k4CrUNtU6k2G/xofL5slSTt7hasGil03Cv5OYDclGq0gBcUwFvAajQbUK'function _0x1b12e2(_0xb1af28) {let _0x166d21, _0x7151a5, _0x5a9a0d = '';for (var _0x38d9cb = 0x0; _0x38d9cb < _0xb1af28['length']; )_0x166d21 = _0xb1af28[_0x38d9cb],_0x7151a5 = 0x0,_0x166d21 >>> 0x7 === 0x0 ? (_0x5a9a0d += String['fromCharCode'](_0xb1af28[_0x38d9cb]),_0x38d9cb += 0x1) : 0xfc === (0xfc & _0x166d21) ? (_0x7151a5 = (0x3 & _0xb1af28[_0x38d9cb]) << 0x1e,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x1]) << 0x18,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x2]) << 0x12,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x3]) << 0xc,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x4]) << 0x6,_0x7151a5 |= 0x3f & _0xb1af28[_0x38d9cb + 0x5],_0x5a9a0d += String['fromCharCode'](_0x7151a5),_0x38d9cb += 0x6) : 0xf8 === (0xf8 & _0x166d21) ? (_0x7151a5 = (0x7 & _0xb1af28[_0x38d9cb]) << 0x18,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x1]) << 0x12,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x2]) << 0xc,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x3]) << 0x6,_0x7151a5 |= 0x3f & _0xb1af28[_0x38d9cb + 0x4],_0x5a9a0d += String['fromCharCode'](_0x7151a5),_0x38d9cb += 0x5) : 0xf0 === (0xf0 & _0x166d21) ? (_0x7151a5 = (0xf & _0xb1af28[_0x38d9cb]) << 0x12,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x1]) << 0xc,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x2]) << 0x6,_0x7151a5 |= 0x3f & _0xb1af28[_0x38d9cb + 0x3],_0x5a9a0d += String['fromCharCode'](_0x7151a5),_0x38d9cb += 0x4) : 0xe0 === (0xe0 & _0x166d21) ? (_0x7151a5 = (0x1f & _0xb1af28[_0x38d9cb]) << 0xc,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x1]) << 0x6,_0x7151a5 |= 0x3f & _0xb1af28[_0x38d9cb + 0x2],_0x5a9a0d += String['fromCharCode'](_0x7151a5),_0x38d9cb += 0x3) : 0xc0 === (0xc0 & _0x166d21) ? (_0x7151a5 = (0x3f & _0xb1af28[_0x38d9cb]) << 0x6,_0x7151a5 |= 0x3f & _0xb1af28[_0x38d9cb + 0x1],_0x5a9a0d += String['fromCharCode'](_0x7151a5),_0x38d9cb += 0x2) : (_0x5a9a0d += String['fromCharCode'](_0xb1af28[_0x38d9cb]),_0x38d9cb += 0x1);return _0x5a9a0d;};
function _0x388932(_0x1f2851) {let _0x9e49bd = [-0x6f, 0x34, 0x5b, 0x41, -0x41, 0x74, 0x77, 0x6a, -0x79, -0x52, -0x5, 0x50, 0x33, 0x61, 0x44, -0x53, -0x70, -0x33, 0x17, -0x2e, -0x22, -0x72, -0x37, -0xb, -0x7f, 0x5a, 0x21, 0x16, -0x1f, 0x32, -0x11, 0x14, -0x2c, 0xf, -0x5e, -0x7b, 0x76, -0x17, -0x3d, 0x72, 0x47, -0x68, -0x7e, -0x75, -0x51, -0x36, -0x12, -0x6e, -0x4, -0x5f, -0x5b, 0x5e, -0x50, -0xe, 0x78, 0x69, 0x55, 0x68, -0x56, -0x6c, 0x43, 0x19, 0x65, 0x6c, 0x10, -0x69, 0x6f, -0xa, 0x75, -0x49, 0x4d, 0x59, -0x1d, -0x62, -0x44, 0x70, 0x6b, -0x1, 0x56, 0x79, 0x58, -0x65, -0x7c, 0x45, -0x1e, -0x8, -0x71, -0x4a, -0x76, 0x39, -0x19, 0xc, -0x73, -0x6a, 0x5f, 0x7f, 0x54, 0x7c, -0x66, -0x1c, 0x49, 0x2b, -0x3c, 0x1c, 0x2e, 0x73, 0x1e, 0x7a, -0x4b, 0x7d, -0x43, -0x4d, 0x3, -0x7, -0x35, -0xd, 0x35, 0x4e, -0x48, 0x1, 0xb, -0x47, -0x27, -0x4f, -0x3, 0x13, 0x29, 0x7e, -0x2b, -0x7d, -0x1b, 0x22, 0x3f, 0x8, 0x48, -0x23, -0x29, -0x3f, 0x3c, -0x18, 0x66, 0x2f, -0x77, -0x67, -0x16, 0x2d, 0x3b, 0x40, -0x60, 0x31, 0x53, -0x6b, -0x78, -0x39, -0x46, 0x0, -0x26, -0x54, -0x28, 0x18, 0xe, 0x30, 0x1d, 0x2c, -0x24, -0x2f, 0x38, -0x5c, 0x26, 0x25, 0x4, -0x32, 0x67, 0xa, -0x59, 0x37, 0x71, -0x1a, 0x6e, 0x36, 0x24, -0x14, -0x4e, -0xc, -0x74, 0x46, -0x25, 0x5, -0x3e, -0x4c, -0x30, -0x40, 0x4f, 0x64, 0x28, 0x6, -0x3a, -0x5a, -0x13, -0x9, 0x27, 0x5d, -0x63, 0x15, 0x7, 0x1a, -0x2, 0x1b, -0x2d, 0x51, 0x3a, -0x7a, 0x4c, -0x42, 0x2, 0x5c, -0x2a, 0x62, -0x10, 0x9, 0x3d, 0x3e, -0xf, 0x63, -0x15, 0x1f, -0x38, 0x57, 0x11, -0x34, -0x45, -0x21, -0x3b, -0x55, 0x42, 0x4a, 0x12, -0x5d, -0x80, -0x57, -0x20, 0x2a, 0x20, -0x58, 0x6d, 0x60, 0xd, -0x6, 0x4b, -0x64, -0x31, 0x23, -0x61, 0x52, -0x6d, 0x7b], _0x51471c = 0x0, _0x34e6f0 = 0x0, _0x59ee63 = 0x0, _0x5f1a04 = new Array();for (let _0x2192fb = 0x0; _0x2192fb < _0x1f2851['length']; _0x2192fb++) {_0x51471c = _0x51471c + 0x1 & 0xff,_0x34e6f0 = (0xff & _0x9e49bd[_0x51471c]) + _0x34e6f0 & 0xff;const _0x5aaee9 = _0x9e49bd[_0x51471c];_0x9e49bd[_0x51471c] = _0x9e49bd[_0x34e6f0],_0x9e49bd[_0x34e6f0] = _0x5aaee9,_0x59ee63 = (0xff & _0x9e49bd[_0x51471c]) + (0xff & _0x9e49bd[_0x34e6f0]) & 0xff,_0x5f1a04['push'](_0x1f2851[_0x2192fb] ^ _0x9e49bd[_0x59ee63]);}return _0x5f1a04;};
function _0xbcd174(_0x4c0a5e) {const _0xa531c2 = window['atob'](_0x4c0a5e), _0x487e70 = new Int8Array(_0xa531c2['length']);for (let _0x1dad95 = 0x0; _0x1dad95 < _0xa531c2['length']; _0x1dad95++)_0x487e70[_0x1dad95] = _0xa531c2['charCodeAt'](_0x1dad95);return _0x487e70;};
function _0x461344(_0x2253b5) {return _0x1b12e2(_0x388932(_0xbcd174(_0x2253b5)));
};
console.log(_0x461344(_0x2253b5))

结果展现:

 

window['atob'](_0x4c0a5e)

这段代码使用了 JavaScript 中的 atob 函数来解码 _0x4c0a5e 变量所代表的 Base64 字符串。atob 函数用于将 Base64 编码的字符串解码为原始的 ASCII 字符串。 

怎么改?

atob(_0x4c0a5e)

改进代码:

_0x2253b5 = 'ak+9VCsq4dEdB+UdVfGo8kh5JDEbMHGTCmF/ACXJQ0IgGEauVgivRFLreNzrhFPP2wTUOBzYbqpOsl2NAezyg9rgZStPA6xJ+j9L3h9lfJ/+zIfKG1j6Eh/bWp9BcjXF3RMhCk3P2kFG5fHTK8myMdL+FT/K7sLwE1urbVYF17VKP3V0k27y/uF2ZRX3UnhBQbsvhwB6hZgJ0vuBLeHPQ4WPcc+pZmk5dO4FmTSXrxie+iq1IXGiQRSVvz9YwfwDqj78BwHRgZR+ibYi3qQH4yLIKCFj7UDw9WxFzatw98cEpoLETlB855xgiCrYeRsKPSU+TghsmJg9LuHzcvbIZ7WURHr5PGt4ARP3bOe4HYD9Sf5IfQCCUOh2OH1qt+64POe7OpsIhcZlb9fMyhajmgO1u3RHfC44UMVZDBHHt6Fbx5ETTx0Z9m94gQDPTLaJ45BePjdKEySVWXmrYwalKsFPvIL3QJ9KZ7INGYZIE1G6mGLBHFGbB8NCDOSqRMI6p0XahnEiM0/KFDIL3jFICVT8Lk7Sj06QCrXb8eEBJWVwp6AYL7z/74rAgaIeCXWBt5Zq1aA1pEMT6rpz8vl1B3e98bhvYPL3+dKoNu0VTF5L8zXUvhQaeDNK9dtuqy4sTzzrsUWLoId4S0tclXPIfb9unysoI0RTTQxdvIEoYmQgI9998AW9tmsdW+lP+aF4oP1Nr5HNKPiJyi0tW5h2NKRn7LTd2gwPzqKCEHBq1UbGFjlvoqfjEtbiqc9V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1X+KMQen/Qkv1SUM1Fi3f0hcHMOek2KR/ZXeMOFj9PGea9KEYN+Ofn1xM9uJdCGSizXo1FEomyvuBhqzfgzj8KE8mGrdfqm7KZpASea1P8s7tmHHq8RUYVYRSvnpoDZd6GNRPYpVGO6iDuh2kQl03Syaq/N4Dbc+p0PP3+OY9GGue8WexeWI5WQhLvBflzfSJFjVJTUfSlLmNs5meMxbZ2naFTfy2iK+3u9kDV37ENY09BwT1x3eSBUBj5V3E0fAIo17Z7yuf9na0vJYht7VrxSQAJoBormCVhAJ7k4CrUNtU6k2G/xofL5slSTt7hasGil03Cv5OYDclGq0gBcUwFvAajQbUK'function _0x1b12e2(_0xb1af28) {let _0x166d21, _0x7151a5, _0x5a9a0d = '';for (var _0x38d9cb = 0x0; _0x38d9cb < _0xb1af28['length']; )_0x166d21 = _0xb1af28[_0x38d9cb],_0x7151a5 = 0x0,_0x166d21 >>> 0x7 === 0x0 ? (_0x5a9a0d += String['fromCharCode'](_0xb1af28[_0x38d9cb]),_0x38d9cb += 0x1) : 0xfc === (0xfc & _0x166d21) ? (_0x7151a5 = (0x3 & _0xb1af28[_0x38d9cb]) << 0x1e,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x1]) << 0x18,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x2]) << 0x12,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x3]) << 0xc,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x4]) << 0x6,_0x7151a5 |= 0x3f & _0xb1af28[_0x38d9cb + 0x5],_0x5a9a0d += String['fromCharCode'](_0x7151a5),_0x38d9cb += 0x6) : 0xf8 === (0xf8 & _0x166d21) ? (_0x7151a5 = (0x7 & _0xb1af28[_0x38d9cb]) << 0x18,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x1]) << 0x12,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x2]) << 0xc,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x3]) << 0x6,_0x7151a5 |= 0x3f & _0xb1af28[_0x38d9cb + 0x4],_0x5a9a0d += String['fromCharCode'](_0x7151a5),_0x38d9cb += 0x5) : 0xf0 === (0xf0 & _0x166d21) ? (_0x7151a5 = (0xf & _0xb1af28[_0x38d9cb]) << 0x12,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x1]) << 0xc,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x2]) << 0x6,_0x7151a5 |= 0x3f & _0xb1af28[_0x38d9cb + 0x3],_0x5a9a0d += String['fromCharCode'](_0x7151a5),_0x38d9cb += 0x4) : 0xe0 === (0xe0 & _0x166d21) ? (_0x7151a5 = (0x1f & _0xb1af28[_0x38d9cb]) << 0xc,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x1]) << 0x6,_0x7151a5 |= 0x3f & _0xb1af28[_0x38d9cb + 0x2],_0x5a9a0d += String['fromCharCode'](_0x7151a5),_0x38d9cb += 0x3) : 0xc0 === (0xc0 & _0x166d21) ? (_0x7151a5 = (0x3f & _0xb1af28[_0x38d9cb]) << 0x6,_0x7151a5 |= 0x3f & _0xb1af28[_0x38d9cb + 0x1],_0x5a9a0d += String['fromCharCode'](_0x7151a5),_0x38d9cb += 0x2) : (_0x5a9a0d += String['fromCharCode'](_0xb1af28[_0x38d9cb]),_0x38d9cb += 0x1);return _0x5a9a0d;};
function _0x388932(_0x1f2851) {let _0x9e49bd = [-0x6f, 0x34, 0x5b, 0x41, -0x41, 0x74, 0x77, 0x6a, -0x79, -0x52, -0x5, 0x50, 0x33, 0x61, 0x44, -0x53, -0x70, -0x33, 0x17, -0x2e, -0x22, -0x72, -0x37, -0xb, -0x7f, 0x5a, 0x21, 0x16, -0x1f, 0x32, -0x11, 0x14, -0x2c, 0xf, -0x5e, -0x7b, 0x76, -0x17, -0x3d, 0x72, 0x47, -0x68, -0x7e, -0x75, -0x51, -0x36, -0x12, -0x6e, -0x4, -0x5f, -0x5b, 0x5e, -0x50, -0xe, 0x78, 0x69, 0x55, 0x68, -0x56, -0x6c, 0x43, 0x19, 0x65, 0x6c, 0x10, -0x69, 0x6f, -0xa, 0x75, -0x49, 0x4d, 0x59, -0x1d, -0x62, -0x44, 0x70, 0x6b, -0x1, 0x56, 0x79, 0x58, -0x65, -0x7c, 0x45, -0x1e, -0x8, -0x71, -0x4a, -0x76, 0x39, -0x19, 0xc, -0x73, -0x6a, 0x5f, 0x7f, 0x54, 0x7c, -0x66, -0x1c, 0x49, 0x2b, -0x3c, 0x1c, 0x2e, 0x73, 0x1e, 0x7a, -0x4b, 0x7d, -0x43, -0x4d, 0x3, -0x7, -0x35, -0xd, 0x35, 0x4e, -0x48, 0x1, 0xb, -0x47, -0x27, -0x4f, -0x3, 0x13, 0x29, 0x7e, -0x2b, -0x7d, -0x1b, 0x22, 0x3f, 0x8, 0x48, -0x23, -0x29, -0x3f, 0x3c, -0x18, 0x66, 0x2f, -0x77, -0x67, -0x16, 0x2d, 0x3b, 0x40, -0x60, 0x31, 0x53, -0x6b, -0x78, -0x39, -0x46, 0x0, -0x26, -0x54, -0x28, 0x18, 0xe, 0x30, 0x1d, 0x2c, -0x24, -0x2f, 0x38, -0x5c, 0x26, 0x25, 0x4, -0x32, 0x67, 0xa, -0x59, 0x37, 0x71, -0x1a, 0x6e, 0x36, 0x24, -0x14, -0x4e, -0xc, -0x74, 0x46, -0x25, 0x5, -0x3e, -0x4c, -0x30, -0x40, 0x4f, 0x64, 0x28, 0x6, -0x3a, -0x5a, -0x13, -0x9, 0x27, 0x5d, -0x63, 0x15, 0x7, 0x1a, -0x2, 0x1b, -0x2d, 0x51, 0x3a, -0x7a, 0x4c, -0x42, 0x2, 0x5c, -0x2a, 0x62, -0x10, 0x9, 0x3d, 0x3e, -0xf, 0x63, -0x15, 0x1f, -0x38, 0x57, 0x11, -0x34, -0x45, -0x21, -0x3b, -0x55, 0x42, 0x4a, 0x12, -0x5d, -0x80, -0x57, -0x20, 0x2a, 0x20, -0x58, 0x6d, 0x60, 0xd, -0x6, 0x4b, -0x64, -0x31, 0x23, -0x61, 0x52, -0x6d, 0x7b], _0x51471c = 0x0, _0x34e6f0 = 0x0, _0x59ee63 = 0x0, _0x5f1a04 = new Array();for (let _0x2192fb = 0x0; _0x2192fb < _0x1f2851['length']; _0x2192fb++) {_0x51471c = _0x51471c + 0x1 & 0xff,_0x34e6f0 = (0xff & _0x9e49bd[_0x51471c]) + _0x34e6f0 & 0xff;const _0x5aaee9 = _0x9e49bd[_0x51471c];_0x9e49bd[_0x51471c] = _0x9e49bd[_0x34e6f0],_0x9e49bd[_0x34e6f0] = _0x5aaee9,_0x59ee63 = (0xff & _0x9e49bd[_0x51471c]) + (0xff & _0x9e49bd[_0x34e6f0]) & 0xff,_0x5f1a04['push'](_0x1f2851[_0x2192fb] ^ _0x9e49bd[_0x59ee63]);}return _0x5f1a04;};
function _0xbcd174(_0x4c0a5e) {const _0xa531c2 = atob(_0x4c0a5e), _0x487e70 = new Int8Array(_0xa531c2['length']);for (let _0x1dad95 = 0x0; _0x1dad95 < _0xa531c2['length']; _0x1dad95++)_0x487e70[_0x1dad95] = _0xa531c2['charCodeAt'](_0x1dad95);return _0x487e70;};
function _0x461344(_0x2253b5) {return _0x1b12e2(_0x388932(_0xbcd174(_0x2253b5)));
};
console.log(JSON.parse(_0x461344(_0x2253b5)))

最终结果:

 

你能写一个python获取数据,再调用js代码,对密文进行解密,返回数据的代码吗?

还是我来吧,先把js改进一下,写一个新函数,接收明文,转变为json格式。

function get_data(data) {return JSON.parse(_0x1b12e2(_0x388932(_0xbcd174(data))));
};

完整js代码:

function _0x1b12e2(_0xb1af28) {let _0x166d21, _0x7151a5, _0x5a9a0d = '';for (var _0x38d9cb = 0x0; _0x38d9cb < _0xb1af28['length']; )_0x166d21 = _0xb1af28[_0x38d9cb],_0x7151a5 = 0x0,_0x166d21 >>> 0x7 === 0x0 ? (_0x5a9a0d += String['fromCharCode'](_0xb1af28[_0x38d9cb]),_0x38d9cb += 0x1) : 0xfc === (0xfc & _0x166d21) ? (_0x7151a5 = (0x3 & _0xb1af28[_0x38d9cb]) << 0x1e,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x1]) << 0x18,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x2]) << 0x12,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x3]) << 0xc,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x4]) << 0x6,_0x7151a5 |= 0x3f & _0xb1af28[_0x38d9cb + 0x5],_0x5a9a0d += String['fromCharCode'](_0x7151a5),_0x38d9cb += 0x6) : 0xf8 === (0xf8 & _0x166d21) ? (_0x7151a5 = (0x7 & _0xb1af28[_0x38d9cb]) << 0x18,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x1]) << 0x12,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x2]) << 0xc,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x3]) << 0x6,_0x7151a5 |= 0x3f & _0xb1af28[_0x38d9cb + 0x4],_0x5a9a0d += String['fromCharCode'](_0x7151a5),_0x38d9cb += 0x5) : 0xf0 === (0xf0 & _0x166d21) ? (_0x7151a5 = (0xf & _0xb1af28[_0x38d9cb]) << 0x12,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x1]) << 0xc,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x2]) << 0x6,_0x7151a5 |= 0x3f & _0xb1af28[_0x38d9cb + 0x3],_0x5a9a0d += String['fromCharCode'](_0x7151a5),_0x38d9cb += 0x4) : 0xe0 === (0xe0 & _0x166d21) ? (_0x7151a5 = (0x1f & _0xb1af28[_0x38d9cb]) << 0xc,_0x7151a5 |= (0x3f & _0xb1af28[_0x38d9cb + 0x1]) << 0x6,_0x7151a5 |= 0x3f & _0xb1af28[_0x38d9cb + 0x2],_0x5a9a0d += String['fromCharCode'](_0x7151a5),_0x38d9cb += 0x3) : 0xc0 === (0xc0 & _0x166d21) ? (_0x7151a5 = (0x3f & _0xb1af28[_0x38d9cb]) << 0x6,_0x7151a5 |= 0x3f & _0xb1af28[_0x38d9cb + 0x1],_0x5a9a0d += String['fromCharCode'](_0x7151a5),_0x38d9cb += 0x2) : (_0x5a9a0d += String['fromCharCode'](_0xb1af28[_0x38d9cb]),_0x38d9cb += 0x1);return _0x5a9a0d;};
function _0x388932(_0x1f2851) {let _0x9e49bd = [-0x6f, 0x34, 0x5b, 0x41, -0x41, 0x74, 0x77, 0x6a, -0x79, -0x52, -0x5, 0x50, 0x33, 0x61, 0x44, -0x53, -0x70, -0x33, 0x17, -0x2e, -0x22, -0x72, -0x37, -0xb, -0x7f, 0x5a, 0x21, 0x16, -0x1f, 0x32, -0x11, 0x14, -0x2c, 0xf, -0x5e, -0x7b, 0x76, -0x17, -0x3d, 0x72, 0x47, -0x68, -0x7e, -0x75, -0x51, -0x36, -0x12, -0x6e, -0x4, -0x5f, -0x5b, 0x5e, -0x50, -0xe, 0x78, 0x69, 0x55, 0x68, -0x56, -0x6c, 0x43, 0x19, 0x65, 0x6c, 0x10, -0x69, 0x6f, -0xa, 0x75, -0x49, 0x4d, 0x59, -0x1d, -0x62, -0x44, 0x70, 0x6b, -0x1, 0x56, 0x79, 0x58, -0x65, -0x7c, 0x45, -0x1e, -0x8, -0x71, -0x4a, -0x76, 0x39, -0x19, 0xc, -0x73, -0x6a, 0x5f, 0x7f, 0x54, 0x7c, -0x66, -0x1c, 0x49, 0x2b, -0x3c, 0x1c, 0x2e, 0x73, 0x1e, 0x7a, -0x4b, 0x7d, -0x43, -0x4d, 0x3, -0x7, -0x35, -0xd, 0x35, 0x4e, -0x48, 0x1, 0xb, -0x47, -0x27, -0x4f, -0x3, 0x13, 0x29, 0x7e, -0x2b, -0x7d, -0x1b, 0x22, 0x3f, 0x8, 0x48, -0x23, -0x29, -0x3f, 0x3c, -0x18, 0x66, 0x2f, -0x77, -0x67, -0x16, 0x2d, 0x3b, 0x40, -0x60, 0x31, 0x53, -0x6b, -0x78, -0x39, -0x46, 0x0, -0x26, -0x54, -0x28, 0x18, 0xe, 0x30, 0x1d, 0x2c, -0x24, -0x2f, 0x38, -0x5c, 0x26, 0x25, 0x4, -0x32, 0x67, 0xa, -0x59, 0x37, 0x71, -0x1a, 0x6e, 0x36, 0x24, -0x14, -0x4e, -0xc, -0x74, 0x46, -0x25, 0x5, -0x3e, -0x4c, -0x30, -0x40, 0x4f, 0x64, 0x28, 0x6, -0x3a, -0x5a, -0x13, -0x9, 0x27, 0x5d, -0x63, 0x15, 0x7, 0x1a, -0x2, 0x1b, -0x2d, 0x51, 0x3a, -0x7a, 0x4c, -0x42, 0x2, 0x5c, -0x2a, 0x62, -0x10, 0x9, 0x3d, 0x3e, -0xf, 0x63, -0x15, 0x1f, -0x38, 0x57, 0x11, -0x34, -0x45, -0x21, -0x3b, -0x55, 0x42, 0x4a, 0x12, -0x5d, -0x80, -0x57, -0x20, 0x2a, 0x20, -0x58, 0x6d, 0x60, 0xd, -0x6, 0x4b, -0x64, -0x31, 0x23, -0x61, 0x52, -0x6d, 0x7b], _0x51471c = 0x0, _0x34e6f0 = 0x0, _0x59ee63 = 0x0, _0x5f1a04 = new Array();for (let _0x2192fb = 0x0; _0x2192fb < _0x1f2851['length']; _0x2192fb++) {_0x51471c = _0x51471c + 0x1 & 0xff,_0x34e6f0 = (0xff & _0x9e49bd[_0x51471c]) + _0x34e6f0 & 0xff;const _0x5aaee9 = _0x9e49bd[_0x51471c];_0x9e49bd[_0x51471c] = _0x9e49bd[_0x34e6f0],_0x9e49bd[_0x34e6f0] = _0x5aaee9,_0x59ee63 = (0xff & _0x9e49bd[_0x51471c]) + (0xff & _0x9e49bd[_0x34e6f0]) & 0xff,_0x5f1a04['push'](_0x1f2851[_0x2192fb] ^ _0x9e49bd[_0x59ee63]);}return _0x5f1a04;};
function _0xbcd174(_0x4c0a5e) {const _0xa531c2 = atob(_0x4c0a5e), _0x487e70 = new Int8Array(_0xa531c2['length']);for (let _0x1dad95 = 0x0; _0x1dad95 < _0xa531c2['length']; _0x1dad95++)_0x487e70[_0x1dad95] = _0xa531c2['charCodeAt'](_0x1dad95);return _0x487e70;};
function get_data(data) {return JSON.parse(_0x1b12e2(_0x388932(_0xbcd174(data))));
};

 

好了,写一个python来获取密文吧!

import requests
import execjs
headers = {'authority': 'api.zzzmh.cn','accept': 'application/json, text/plain, */*','accept-language': 'zh-CN,zh;q=0.9','cache-control': 'no-cache','content-type': 'application/json;charset=UTF-8','origin': 'https://bz.zzzmh.cn','pragma': 'no-cache','referer': 'https://bz.zzzmh.cn/','sec-ch-ua': '"Not_A Brand";v="8", "Chromium";v="120", "Google Chrome";v="120"','sec-ch-ua-mobile': '?0','sec-ch-ua-platform': '"Windows"','sec-fetch-dest': 'empty','sec-fetch-mode': 'cors','sec-fetch-site': 'same-site','user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
}json_data = {'size': 24,'current': 2,'sort': 0,'category': 0,'resolution': 0,'color': 0,'categoryId': 0,'ratio': 0,
}response = requests.post('https://api.zzzmh.cn/bz/v3/getData', headers=headers, json=json_data).json()
data = response['result']
json_code = execjs.compile(open('demo11.js','r',encoding='utf-8').read())
result = json_code.call('get_data',data)
for value in result['list']:print(value)

结果展现:

 

如果想多页爬取,怎么做,分析数据包的参数有什么不同!

 

写个循环,按照页码进行多页爬取 。不知道你有没有想过,得到的数据有什么用呢?

数据中i有什么作用呢?

这是图片的链接url中需要的参数,对比几张不同的图,你有什么发现吗?

 

只有最后那部分在变化,而变化的那部分数据刚好是i所返回的数据。有了i,就有了批量的图片的url,就可以进行批量的采集了。你可以在自己写代码,批量采集图片吗?

插一嘴,这个网站以前是有debugger的,不知为什么,现在没了,更简单了。

这是一个很简单的混淆案例!!!

 

 

 

 

 

 

 

 

 

 

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/305466.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

ThreadPoolExecutor线程池解析

ThreadPoolExecutor线程池解析 一、ThreadPoolExecutor常见参数 jdk中Executors提供了几种常用的线程池&#xff0c;底层都是ThreadPoolExecutor。 public ThreadPoolExecutor(int corePoolSize,//核心线程数int maximumPoolSize,// 最大线程数long keepAliveTime,//非核心线程…

全面学习SpringCloud框架指南

要深入学习Spring Cloud框架,你需要系统地掌握其核心组件和概念,并了解如何在实际项目中应用这些知识。以下是一些关键的学习点和相应的学习内容: 一共分为10个模块包括: 1、微服务架构基础: 理解微服务架构的概念和优势。 学习单体架构向微服务架构演进的过程。 掌握…

项目存放在git上,在jenkins使用docker打包并推送到Ubuntu上运行

项目添加dockerfile 在需要打包的工程的根目录添加Dockerfile文件&#xff0c;文件内容&#xff1a; # 设置JAVA版本 FROM openjdk:8 # 指定存储卷&#xff0c;任何向/tmp写入的信息都不会记录到容器存储层 VOLUME /tmp# 拷贝运行JAR包 ARG JAR_FILE COPY ${JAR_FILE} app.jar…

48-基于腾讯云EKS的容器化部署实战

准备工作 在部署IAM应用之前&#xff0c;我们需要做以下准备工作&#xff1a; 开通腾讯云容器服务镜像仓库。安装并配置Docker。准备一个Kubernetes集群。 开通腾讯云容器服务镜像仓库 在Kubernetes集群中部署IAM应用&#xff0c;需要从镜像仓库下载指定的IAM镜像&#xff…

【ubuntu20.04】安装GeographicLib

下载地址 GeographicLib: Installing GeographicLib 我们是ubuntu20.04 &#xff0c;所以下载第一个 GeographicLib-2.3.tar.gz 接着跟着官方步骤安装&#xff0c;会出错&#xff01;&#xff01;&#xff01;&#xff01;马的 官方错误示例&#xff1a;tar xfpz Geographi…

快速列表quicklist

目录 为什么使用快速列表quicklist 对比双向链表 对比压缩列表ziplist quicklist结构 节点结构quicklistNode quicklist 管理ziplist信息的结构quicklistEntry 迭代器结构quicklistIter quicklist的API 1.创建快速列表 2.创建快速列表节点 3.头插quicklistPushHead …

前端学习之路-项目实战(1)

每日吐槽&#xff1a;有一个奇怪的问题&#xff0c;怎么一眼看出一个求职者是否是培训班出来的&#xff0c;有的求职上写着&#xff0c;希望大家坦诚一点&#xff0c;but&#xff0c;你这艘诚实的泰坦尼克号终究还是撞上了社会阴暗面的冰山&#xff0c;OMG&#xff0c;不让包装…

PDF文件内容可以转成word版本吗?答案是肯定的 PDF转word的方法

一&#xff0c;PDF转Word的必要性 随着信息技术的飞速发展&#xff0c;文档的格式和转换成为了我们日常生活和工作中不可避免的一部分。其中&#xff0c;PDF转Word的需求尤为突出。PDF作为一种跨平台的文档格式&#xff0c;具有阅读效果好、不易被篡改等优点&#xff0c;但在编…

【阿里淘天笔试题汇总】2024-04-10-阿里淘天春招笔试题-三语言题解(CPP/Python/Java)

&#x1f36d; 大家好这里是KK爱Coding &#xff0c;一枚热爱算法的程序员 ✨ 本系列打算持续跟新淘天近期的春秋招笔试题汇总&#xff5e; &#x1f4bb; ACM银牌&#x1f948;| 多次AK大厂笔试 &#xff5c; 编程一对一辅导 &#x1f44f; 感谢大家的订阅➕ 和 喜欢&#x1f…

Flutter学习11 - Future 与 FutureBuilder

1、Future 可以利用 Future 实现异步调用 1.1、Future 的两种形式 自定义一个结果类 class Response {String _data;Response(this._data); }自定义方法实现 Future Future<Response> testFuture() {var random Random();int randomNumber random.nextInt(10);if …

【STM32G431RBTx】备战蓝桥杯嵌入式→省赛试题→第十四届

文章目录 前言一、题目二、模块初始化三、代码实现interrupt.h:interrupt.c:main.h:main.c: 四、完成效果五、总结 前言 无 一、题目 二、模块初始化 1.LCD这里不用配置&#xff0c;直接使用提供的资源包就行 2.KEY, 四个按键IO口都要配置&#xff0c;分别是PB0, PB1,PB2,PA…

albef论文学习

首先要知道vit是啥东西。vit就是transformer模型在图像领域的运用。 transformer模型原本是用于自然语言的&#xff0c;encoder和decoder接受的都是文字。vit把图像分割成很多个小块&#xff0c;把各个小块拉长当成向量来用&#xff0c;接下来就是一样的。最后接一个全连接层做…

Qt | Qt 的重要文件简介(推荐)

一、项目文件(pro 文件)及其语法 1、项目文件(pro 文件)的作用是列举项目中的源文件, 2、pro 文件的语法形式为:“变量 操作符 值”,比如 QT += widgets,多个值之间使用空格分开。 3、pro 文件的注释:从“#”开始,直至本行结束。 4、pro 文件的操作符见下表 5、pro 文…

RAG应用开发实战(01)-RAG应用框架和解析器

1 开源解析和拆分文档 第三方的工具去对文件解析拆分&#xff0c;去将我们的文件内容给提取出来&#xff0c;并将我们的文档内容去拆分成一个小的chunk。常见的PDF word mark down, JSON、HTML。都可以有很好的一些模块去把这些文件去进行一个东西去提取。 优势 支持丰富的文…

Spring Boot 框架集成Knife4j

本次示例使用 Spring Boot 作为脚手架来快速集成 Knife4j,Spring Boot 版本2.3.5.RELEASE,Knife4j 版本2.0.7&#xff0c;完整代码可以去参考 knife4j-spring-boot-fast-demo pom.xml 完整文件代码如下 <?xml version"1.0" encoding"UTF-8"?> &l…

Meta宣布全新训推一体加速器:完全集成PyTorch 2,性能3倍提升

ChatGPT狂飙160天&#xff0c;世界已经不是之前的样子。 新建了免费的人工智能中文站https://ai.weoknow.com 新建了收费的人工智能中文站https://ai.hzytsoft.cn/ 更多资源欢迎关注 Meta 疯狂砸入数十亿美元&#xff0c;一部分招揽人才&#xff0c;一部分造芯片。 Meta 正在不…

HCIE考试第三题:业务容器化及割接

文章目录 业务容器化及割接题目和做题步骤如下3.1业务容器化及割接3.1创建CCE集群solo3.2创建NAT网关3.2.1申请EIP3.2.2创建NAT网关3.2.3添加SNAT规则3.3创建节点池3.3.1 创建namespace3.3.2创建节点池3.4 安装命令行工具kubectl3.4.1上传kubectl3.4.2上传kubeconfig配置文件3.…

批归一化(BN)在神经网络中的作用与原理

文章目录 1. 批归一化&#xff08;BN&#xff09;在神经网络中的作用与原理1.1 作用与优势1.2 原理与推导 2. 将BN应用于神经网络的方法2.1 训练时的BN 2. 将BN应用于神经网络的方法2.1 训练时的BN2.2 测试时的BN代码示例&#xff08;Python&#xff09;&#xff1a; 3. BN的优…

做微信商城需要注意的几点问题

在社交平台做电商&#xff0c;已经非常常见&#xff0c;其中&#xff0c;最受欢迎的莫过于微信商城&#xff0c;基于微信公众号开发&#xff0c;进行宣传及变现&#xff0c;与用户建立长期双向联系&#xff0c;让用户形成长期稳定的购物习惯。看起来&#xff0c;这是一个很不错…

C++算法 —— 位运算

一、基本的位运算操作 1.基础位运算操作符 << : 二进制位整体左移 >> : 二进制位整体右移 ~ : 按位取反 & &#xff1a; 按位与 | &#xff1a; 按位或 ^ : 按位异或 &#xff08;无进位相加&#xff09; 2.给一个数n&#xff0c;确定它的二进制表示中第…