duduke110 发表于 2023-3-16 10:33:01

哪位大佬帮忙看下这个网站JS逆向 AES加密怎么破解

网址:https://www.chanmama.com/authorDetail/99242118718/promotion




哪位大佬帮忙看看,小白刚学习js逆向,希望帮帮忙

huhaba 发表于 2023-3-16 10:33:02

huhaba 发表于 2023-5-4 00:26
let key = CryptoJs.enc.Utf8.parse("cmmgfgehahweuuii")
var enc_data = "ka+WNHBuUPTHPXSmTK/vnmD7GVU3M ...

{"volume_chart":[{"date":"20230401","first":0,"second":64248,"second_text":"5w~7.5w"},{"second":158192,"second_text":"10
w~25w","date":"20230402","first":0},{"date":"20230408","first":0,"second":123907,"second_text":"10w~25w"},{"date":"20230
412","first":0,"second":107826,"second_text":"10w~25w"},{"date":"20230415","first":0,"second":154260,"second_text":"10w~
25w"},{"date":"20230423","first":0,"second":195428,"second_text":"10w~25w"}],"amount_chart":[{"date":"20230401","first":
0,"second":2737909.51,"second_text":"250w~500w"},{"date":"20230402","first":0,"second":10213450.8,"second_text":"1000w~2
500w"},{"date":"20230408","first":0,"second":8599872.58,"second_text":"750w~1000w"},{"second_text":"750w~1000w","date":"
20230412","first":0,"second":8676732.92},{"date":"20230415","first":0,"second":10139499.41,"second_text":"1000w~2500w"},
{"second_text":"1000w~2500w","date":"20230423","first":0,"second":15799242.52}],"aweme_chart":[{"date":"20230401","first
":0,"second":0},{"first":0,"second":0,"date":"20230402"},{"date":"20230408","first":0,"second":0},{"date":"20230412","fi
rst":0,"second":0},{"date":"20230415","first":0,"second":0},{"date":"20230423","first":0,"second":0}],"room_chart":[{"da
te":"20230401","first":64248,"second":2737909.51},{"date":"20230402","first":158192,"second":10213450.8},{"date":"202304
08","first":123907,"second":8599872.58},{"second":8676732.92,"date":"20230412","first":107826},{"date":"20230415","first
":154260,"second":10139499.41},{"second":15799242.52,"date":"20230423","first":195428}]}

liuliangq 发表于 2023-3-16 15:12:47

{"volume_chart":[{"date":"20230215","first":0,"second":151866,"second_text":"10w~25w"},{"date":"20230218","first":0,"second":156161,"second_text":"10w~25w"},{"date":"20230225","first":0,"second":164698,"second_text":"10w~25w"},{"date":"20230302","first":0,"second":137065,"second_text":"10w~25w"},{"date":"20230304","first":0,"second":176305,"second_text":"10w~25w"},{"date":"20230308","first":0,"second":167666,"second_text":"10w~25w"},{"second":331818,"second_text":"25w~50w","date":"20230311","first":0},{"date":"20230315","first":0,"second":111405,"second_text":"10w~25w"}],"amount_chart":[{"first":0,"second":12755077.73,"second_text":"1000w~2500w","date":"20230215"},{"date":"20230218","first":0,"second":14838613.98,"second_text":"1000w~2500w"},{"date":"20230225","first":0,"second":17696599.03,"second_text":"1000w~2500w"},{"date":"20230302","first":0,"second":12715200.54,"second_text":"1000w~2500w"},{"date":"20230304","first":0,"second":13538865.68,"second_text":"1000w~2500w"},{"date":"20230308","first":0,"second":10946373.53,"second_text":"1000w~2500w"},{"first":0,"second":19349235.36,"second_text":"1000w~2500w","date":"20230311"},{"date":"20230315","first":0,"second":10569156.97,"second_text":"1000w~2500w"}],"aweme_chart":[{"second":0,"date":"20230215","first":0},{"first":0,"second":0,"date":"20230218"},{"date":"20230225","first":0,"second":0},{"first":0,"second":0,"date":"20230302"},{"first":0,"second":0,"date":"20230304"},{"date":"20230308","first":0,"second":0},{"date":"20230311","first":0,"second":0},{"first":0,"second":0,"date":"20230315"}],"room_chart":[{"second":12755077.73,"date":"20230215","first":151866},{"date":"20230218","first":156161,"second":14838613.98},{"date":"20230225","first":164698,"second":17696599.03},{"date":"20230302","first":137065,"second":12715200.54},{"second":13538865.68,"date":"20230304","first":176305},{"date":"20230308","first":167666,"second":10946373.53},{"date":"20230311","first":331818,"second":19349235.36},{"date":"20230315","first":111405,"second":10569156.97}]}
解密出来是这样的数据吗?

duduke110 发表于 2023-3-16 16:09:08

liuliangq 发表于 2023-3-16 15:12
{"volume_chart":[{"date":"20230215","first":0,"second":151866,"second_text":"10w~25w"},{"date":"2023 ...

是的,是这些数据,我也找到了数据,但是解密的算法没看懂。大佬是解密出来了吗,求教

huhaba 发表于 2023-5-4 00:26:22

let key = CryptoJs.enc.Utf8.parse("cmmgfgehahweuuii")
var enc_data = "ka+WNHBuUPTHPXSmTK/vnmD7GVU3MIlUFcCxJk3sRMICNxFcF0NVrlkcwXTAqXvl/ZwBgfRW09jyay6iO8z3Poy+FcvgBD5fV3tk0177InpE2xH2shl8DeqN1p2Qz0x+EPhiJxj609ghJGaBKyeUBzzJobWH+pBEFOk0CDCqFUh2HikNsTO3rTJ2vwpovpA6GszQFSSY2Sj/Kp/NYTqTjThCe08TcxtkmctKs+NcvqyweHrk0jRbOec9c1QIcOIaFaAHCCe6oy9I/Hoi3F5kWk+dAErur0W1ZdxxQStMn0C7yx2hi+qxiYxoGtaYvHatKcR9EY3WDvhUmlwS63XOaZ4Gjay2vPNVi8UtF0LZkQE3AmdUa6P1Bmxd1de14WtEP4F/EK/WiEVcrV3AzzS1dy00n+EAkSiWXYApMgI10KbdPxukWn0QXPlk/YT0/sv4fQRXn8Q3hmX3Q/YJ2UAcZA=="
var dec_data = CryptoJs.AES.decrypt(enc_data,key,cfg)
var i_ = O_(dec_data)
console.log(i_)
var res =Fi(i_, {
    to: "string"
})
console.log(res)
把这个模块扣一下就行

duduke110 发表于 2023-6-29 10:45:12

huhaba 发表于 2023-5-4 00:26
let key = CryptoJs.enc.Utf8.parse("cmmgfgehahweuuii")
var enc_data = "ka+WNHBuUPTHPXSmTK/vnmD7GVU3M ...

O_函数和 FI的函数怎么拿到呢

huhaba 发表于 2023-6-30 14:32:12

duduke110 发表于 2023-6-29 10:45
O_函数和 FI的函数怎么拿到呢

打个断点就能看到了吧。FI我记得是webpack打包后的一个独立模块,只要把这个模块扣出来就行。
页: [1]
查看完整版本: 哪位大佬帮忙看下这个网站JS逆向 AES加密怎么破解