京东随机变速滑块拼图验证码识别(京东E卡)

声明

本文章中所有内容仅供学习交流使用,不用于其他任何目的,抓包内容、敏感网址、数据接口 等均已做脱敏处理,严禁用于商业用途和非法用途,否则由此产生的一切后果均与作者无关!

侵权通过头像私信或名字简介叫我删除博客谢谢。

部分python代码

复制代码
data = huakuai.call('getBg',.....)
print(data)
 
response = requests.post('/cgi-bin/api/check', cookies=cookies, headers=headers, data=data)
data = response.json()
imgStr = data["img"]
img = json.loads(imgStr)
b1 = img['b1']
b2 = img['b2']
with open('b1.jpg','wb') as f:
    f.write(base64.b64decode(b1.replace('data:image/jpg;base64,','')))
with open('b2.png','wb') as f:
    f.write(base64.b64decode(b2.replace('data:image/png;base64,','')))
# verify(st, sessionId, distance)
with open('b1.jpg','rb') as fp:
    background_bytes = fp.read()
with open('b2.png','rb') as fp:
    target_bytes = fp.read()
res = det.slide_match(target_bytes, background_bytes, simple_target=True)
...............
data = huakuai.call('verify',account,capfp,st,sessionId,imgStr,new_track,img)
response = requests.post('cgi-bin/api/check', cookies=cookies, headers=headers, data=data)
data = response.json()
print(data)

结果

总结

1.出于安全考虑,本章未提供完整流程,调试环节省略较多,只提供大致思路,具体细节要你自己还原,相信你也能调试出来。
2.具体更多细节请看名字进入详情了解更多细节,具体细节要你自己还原,相信你也能调试出来。
相关推荐
爱码少年6 分钟前
一条Shell命令实现文件目录服务器间快速转移
服务器·shell
久久学姐10 分钟前
【AI问答】python引入其他模块的对象
python·绝对导入·相对导入·目录结构·模块导入
laboratory agent开发21 分钟前
智能体多工具串联执行中途失败,部分写入的数据如何回滚
运维·服务器·数据库
晨曦中的暮雨26 分钟前
Virtual Thread 优化 Spring AI 阻塞式 LLM I/O:对照压测报告
java·并发·个人项目
寒水馨31 分钟前
Linux下载、安装protobuf-v35.1(附安装包protoc-35.1-linux-x86_64.zip)
linux·运维·服务器·google·序列化·protobuf·protoc
万少32 分钟前
DeepSeek-V4-Flash 正式版上线了,但这 3 个坑我帮你提前踩了
前端·javascript·后端
明月_清风35 分钟前
🚀 Palantir Foundry 本体论实战:当 Ontology 从"知识图谱"进化为"企业操作系统"
前端·后端
驳是36 分钟前
入坑 Nginx,看这一篇就够了
前端
always_TT37 分钟前
【Python requirements.txt 依赖管理】
开发语言·python
宁风NF1 小时前
JavaScript:网络请求与前端通信
开发语言·前端·javascript·网络·学习·ecmascript