在上一集中,我们已经获得了表单参数加密,请求头参数加密,现在需要对返回的数据进行解密。
跟栈分析,直接进入第三个
在疑似断点位置打上断点,已然发现解密位置。
function接收参数t是加密的密文,接着返回的a.parseData(t)是明文
所以解密函数是a.parseData()
进入这个函数,再打上断点,result是明文
,进入上面的BIRDREPORT_APIJS.decode这个解密函数发现是一个AES解密
前面去找密钥和IV
开始写代码
完整代码:
const CryptoJS = require('crypto-js')
function get_decrypted(encrypted) {
var key = CryptoJS.enc.Utf8.parse('C8EB5514AF5ADDB94B2207B08C66601C')
var iv = CryptoJS.enc.Utf8.parse('55DD79C6F04E1A67')
var decrypted = CryptoJS.AES.decrypt(encrypted, key , {
iv: iv,
mode: CryptoJS.mode.CBC,
padding: CryptoJS.pad.Pkcs7,
})
return JSON.parse(decrypted.toString(CryptoJS.enc.Utf8))
};
encrypted_data = 'ncDfst+MbXleweHKbOyKB7gre10rA2aMmrcyL07nR1crexENNnYCrso/uyZFhSIREMhzFyelOdlUueoJccMoTXpDHAMEgQXOBwWtI4Lq82AXd6Ugtqeq6CK1P/g4yHrGqVJw2UABZozScMBnhILeOpdvxD/aNXK3L8kNZjJNOjSabb1rBI0W8K0ESiQi5v2o0GefuTFnExhpyr/V7Ap9lZUkO5hLUVPSd7IFF04maWRELB4RIkLbt4CHMDqo8cNT8afFqoCksdCU+duwqX0D1wrWgV13j077e7DTn3Z8VIZxzOFE5FLpJJgO/3qa6laJWma87X4c2XDUfB9SLA5/nd3+auErBfRr32JPUhpry5LKsYi2AVBuy4s7IePhpvGfTc85rWyTMPkzTM/8W9kQX2c8uibICm6a2QP6RgIvBOptX1h0/0StGyMLC3I0Zehij18HLXp+oyRZmN5XZo16Mh/utqLHgeweNstM3z50zIRTyIteZCYkpFLKZV7/lfWwcLqOLRf4NbXjSSXrc45ojN9u1q3r3SCzXgucDh69z4bAhgvdcyTNRVcPN/9V7l4QehcqXgdEKzU8kyNVQdyv26Z26IkA5EuW7q6ZN1co8Kb4M4CyMakEM7lHAlhI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G4tHU5vkIzsjfGp3BWF2LsRkaMjZivDnyM6Yag6BwiIkXKxgSF01dXOv2hr7GYbBXCkmICGj7JPKKlGwigyjZ1UrFwX8uDxJJcWTXKbMXlbzI+6e1qHeATRslhdJPW2I/GbAvodJSh398T+iG+qkWBDOh7XRio+t6c7N/aGnGVzSxiyZ/5gtK0Y+DaQKo7ZoUI/VkuzYg9RE2KI+/1cSTy2ztmEAsBesK+ZoHNkNTfOv5q21D5DS9xmIO7q10qdcSG4QXLE3tL9/1ZKSjLxA7m/R0vLSkvY2+iUrIzL8QqnZsBcn4KBYlrfbL/eDu7veTZnt5zH62Xle0XUh3pYBUdmY3naEbgMEYUe6ZOXBA4y8Wt1gkHJs='
console.log(get_decrypted(encrypted_data))
标签:逆向,decrypted,encrypted,解密,iv,CryptoJS,观鸟,断点 From: https://blog.csdn.net/m0_57265868/article/details/140568620