声明:
本文章中所有内容仅供学习交流使用,不用于其他任何目的,抓包内容、敏感网址、数据接口等均已做脱敏处理,严禁用于商业用途和非法用途,否则由此产生的一切后果均与作者无关!
有相关问题请第一时间头像私信联系我删除博客!
前言
完善补环境代码非淘版本的。
逆向过程
python代码部分
headers = {"Accept": "*/*","Accept-Language": "zh-CN,zh;q=0.9","Cache-Control": "no-cache","Connection": "keep-alive","Pragma": "no-cache","Sec-Fetch-Dest": "script","Sec-Fetch-Mode": "no-cors","Sec-Fetch-Site": "cross-site","User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0","sec-ch-ua": "\"Chromium\";v=\"130\", \"Microsoft Edge\";v=\"130\", \"Not?A_Brand\";v=\"99\"","sec-ch-ua-mobile": "?0","sec-ch-ua-platform": "\"Windows\""
}
url = "/nocaptcha/analyze.jsonp"
cp = execjs.compile(open('./ali231.js','r',encoding='utf-8').read())
n = cp.call('get231')
print(n)
params = {"a": "FFFF0N00000000009296","t": f"FFFF0N00000000009296:{str(int(time.time())*1000)}:{random.random()}","n": n,"p": "{\"key1\":\"code200\",\"ncbtn\":\"368|515.7999877929688|41.60000228881836|33.60000228881836|515.7999877929688|549.3999900817871|368|409.60000228881836\",\"umidToken\":\"T2gAV_j-q53lpoT2kZ99C5ELNOd5ntAdJsYyobkd7-ERG1l2xhjrhdJeeBzenFSsfmY=\",\"ncSessionID\":\"5e701ea15edf\",\"et\":\"1\"}","scene": "nc_other_h5","asyn": "0","lang": "cn","v": "1","callback": "jsonp_09569529228944509"
}
response = requests.get(url, headers=headers, params=params)print(response.text)
print(response)
截图
总结
侵权首页联系删除博客