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

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

网址:极简壁纸_海量电脑桌面壁纸美图_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+ibYi3qQH4yLIKCFj7UDw9WxFzatw98cEpoLET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B7XfR3QpqszMOspG81ov2/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+dKoNu0VTF5L8zXUvhQaeDNK9dtuqy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Cw/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 = 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的,不知为什么,现在没了,更简单了。

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

 

 

 

 

 

 

 

 

 

 

 

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

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

SOLIDOWRKS怎么将中间格式的模具装配体转化为装配体格式

模具是工业生产中用于制作成型物品的工具&#xff0c;它由各种零件构成&#xff0c;可以通过改变所成型材料的物理状态来实现物品外形的加工。如果工程师已经有其他格式的模具装配体&#xff0c;但是又想将其他格式的模具装配体导入solidworks里面&#xff0c;并且将一个个实体…

rust wasm入门

&#x1f4d5;作者简介&#xff1a; 过去日记&#xff0c;致力于Java、GoLang,Rust等多种编程语言&#xff0c;热爱技术&#xff0c;喜欢游戏的博主。 &#x1f4d8;相关专栏Rust初阶教程、go语言基础系列、spring教程等&#xff0c;大家有兴趣的可以看一看 &#x1f4d9;Jav…

SpringBoot修改菜品模块开发

需求分析与设计 一&#xff1a;产品原型 在菜品管理列表页面点击修改按钮&#xff0c;跳转到修改菜品页面&#xff0c;在修改页面回显菜品相关信息并进行修改&#xff0c;最后点击保存按钮完成修改操作。 修改菜品原型&#xff1a; 二&#xff1a;接口设计 通过对上述原型图…

图像处理与视觉感知---期末复习重点(7)

文章目录 一、图像压缩1.1 三种冗余1.2 模型1.3 信息测量 二、无误差压缩2.1 哈夫曼编码2.1.1 步骤2.1.2 例题 2.2 算术编码 三、变换编码 一、图像压缩 1.1 三种冗余 1. 三种基本的是数据冗余为&#xff1a;编码冗余、像素间冗余、心理视觉冗余。 2. 编码冗余&#xff1a;如果…

在线拍卖系统|基于Springboot的在线拍卖系统设计与实现(源码+数据库+文档)

在线拍卖系统目录 基于Springboot的在线拍卖系统设计与实现 一、前言 二、系统设计 三、系统功能设计 1、前台&#xff1a; 2、后台 用户功能模块 5.2用户功能模块 四、数据库设计 五、核心代码 六、论文参考 七、最新计算机毕设选题推荐 八、源码获取&#xff1a…

个人博客系统项目(SpringBoot+Linux部署上线)

在学完SpringBoot框架、MyBatis后&#xff0c;直接开始做第一个项目&#xff1a;博客系统 首先&#xff0c;该博客系统包含核心功能有&#xff1a; 一、登录、注册、退出登录功能。 二、没有登陆前可以查看博客首页以及博客展示的分页处理&#xff0c;以及点击查看博客可以…

ELK-Kibana 部署

目录 一、在 node1 节点上操作 1.1.安装 Kibana 1.2.设置 Kibana 的主配置文件 1.3.启动 Kibana 服务 1.4.验证 Kibana 1.5.将 Apache 服务器的日志&#xff08;访问的、错误的&#xff09;添加到 ES 并通过 Kibana 显示 1.6. 浏览器访问 二、部署FilebeatELK&…

牛客NC413 两个升序数组的中位数【hard 数组,模拟 Java、Go、PHP】

题目 题目链接&#xff1a; https://www.nowcoder.com/practice/b3b59248e61f499482eaba636305474b 思路 直接模拟2个数组有顺序放到一个数组中help中如果help长度为奇数&#xff0c;返回中间的数如果help长度为偶数&#xff0c;返回中间2个数的和除以2参考答案java import j…

ES6 全详解 let 、 const 、解构赋值、剩余运算符、函数默认参数、扩展运算符、箭头函数、新增方法,promise、Set、class等等

目录 ES6概念ECMAScript6简介ECMAScript 和 JavaScript 的关系ES6 与 ECMAScript 2015 的关系 1、let 、 const 、var 区别2、变量解构赋值1、数组解构赋值2、对象解构赋值3、字符串的解构赋值 3、展开剩余运算符1、**展开运算符(...)**2、**剩余运算符(...)** 4、函数的拓展函…

JSONP是跨域资源共享的古老技术吗

&#x1f90d; 前端开发工程师、技术日更博主、已过CET6 &#x1f368; 阿珊和她的猫_CSDN博客专家、23年度博客之星前端领域TOP1 &#x1f560; 牛客高级专题作者、打造专栏《前端面试必备》 、《2024面试高频手撕题》 &#x1f35a; 蓝桥云课签约作者、上架课程《Vue.js 和 E…

【MySQL】锁篇

SueWakeup 个人主页&#xff1a;SueWakeup 系列专栏&#xff1a;学习技术栈 个性签名&#xff1a;保留赤子之心也许是种幸运吧 本文封面由 凯楠&#x1f4f8;友情提供 目录 本系列专栏 1. MySQ 中的锁 2. 表锁和行锁 表锁 行锁 3. InnoDB 存储引擎的三种行级锁 4. 悲观锁…

【腾讯云 TDSQL-C Serverless 产品体验】饮水机式使用云数据库

云计算的发展从IaaS&#xff0c;PaaS&#xff0c;SaaS&#xff0c;到最新的BaaS&#xff0c;FasS&#xff0c;在这个趋势中serverless(去服务器化&#xff09; 计算资源发展Physical -> Virtualisation -> Cloud Compute -> Container -> Serverless。 一、背景介绍…

21、矩阵-搜索二维矩阵

思路&#xff1a; 这道题很有意思 从左到有升序&#xff0c;从上到下升序&#xff0c;斜边从左上到右下也是升序&#xff0c;从右上到做下降序。 如果是从左往右依次遍历&#xff0c;就会面临一个问题向右还是向下&#xff0c;因为都是大于当前值&#xff0c;不好决断&#x…

结合fastapi-users与Langserve轻松实现大语言接口用户认证

在做大模型开发的过程中&#xff0c;相信很多小伙伴都是对大模型开发感兴趣&#xff0c;却对 fastapi 这个框架并不熟悉&#xff0c;但是&#xff0c;实际开发的项目确需要用户鉴权&#xff0c;这时候就会很头疼&#xff0c;查阅官方文档发现&#xff0c;官方虽然有例子&#x…

软考123-上午题-【软件工程】-系统设计

一、系统设计 1-1、概要设计 设计软件系统总结结构数据结构及数据库设计编写概要设计文档评审 1-1-1、设计软件系统总结结构 其基本任务是采用某种设计方法&#xff0c;将一个复杂的系统按功能划分成模块&#xff1b; 确定每个模块的功能&#xff1b;确定模块之间的调用关系…

Stable Diffusion之Ubuntu下部署

1、安装conda环境 conda create -n webui python3.10.6 2、激活环境 每次使用都要激活 conda activate webui 注意开始位置的变换 关闭环境 conda deactivate webui 3、离线下载SD 代码 https://github.com/AUTOMATIC1111/stable-diffusion-webui https://github.com/Stabilit…

ZISUOJ 高级语言程序设计实训-基础A

说明&#xff1a; 我这次代码以尽可能简洁的C代码形式给出。 题目列表&#xff1a; 问题 A: 比较大小 思路&#xff1a; 一道简单的if条件判断题。 参考题解&#xff1a; #include <bits/stdc.h> #define endl \n using namespace std; using ll long long; using …

数据治理项目——深铁集团数据治理规划

目录 一、前言 二、数据治理内容与主要措施 2.1 实施背景 2.2 主要举措 2.2.1 制定数据战略目标 2.2.2 绘制数据治理蓝图 2.2.3 绘制数据治理制度 2.2.4 梳理数据资产目录 三、 应用效果 3.1 数据资产可视化管理 3.2 数据标准治理 3.3 集团大数据平台优化建设 一、…

前端服务请求跨域被拦截,Java后端Springboot服务解决办法

跨域问题 跨域前端遇到的问题&#xff1a; Access to XMLHttpRequest at ‘http://www.xxx.xxxx/api/x/d/xc’ from origin ‘http://127.0.0.1:3000’ has been blocked by cors policy: No ‘Access-Contorl-Allow-Origin’ header is present on the requested resource. …

[大模型]Qwen1.5-7B-Chat-GPTQ-Int4 部署环境

Qwen1.5-7B-Chat-GPTQ-Int4 部署环境 说明 Qwen1.5-72b 版本有BF16、INT8、INT4三个版本&#xff0c;三个版本性能接近。由于BF16版本需要144GB的显存&#xff0c;让普通用户忘却止步&#xff0c;而INT4版本只需要48GB即可推理&#xff0c;给普通用户本地化部署创造了机会。&…