京东随机变速滑块拼图验证码识别(京东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.具体更多细节请看名字进入详情了解更多细节,具体细节要你自己还原,相信你也能调试出来。
相关推荐
AI绘画哇哒哒2 分钟前
【建议收藏!】35岁后端血泪忠告,这3类人别硬转Agent(过来人亲述)
java·人工智能·后端·ai·程序员·大模型·agent
聪明蛋子哟32 分钟前
Stagehand v3多语言SDK:Python/Go/Rust/Java下的浏览器自动化统一方案
python·golang·rust
最强小杰41 分钟前
gpt-5.6-sol 频繁报 503 怎么办?区分容量熔断和限速 429 的排查方法 + 可复用 retry wrapper
java·人工智能·gpt·ai
今天AI了吗1 小时前
Python 基础语法(一):常量、变量、输入输出与运算符
开发语言·数据库·人工智能·python·sql·深度学习·机器学习
风月说与山鬼1 小时前
三、大括号语法
前端·react.js
卷无止境1 小时前
Windows 上丝滑开发 Python,并稳定构建 Docker 镜像
后端·python·docker
liuyicenysabel1 小时前
多服务上线日记三:
运维·服务器·笔记·学习
kyriewen2 小时前
我把最常踩的8个CORS跨域报错整理了一遍——第8个去年还不存在
前端·javascript
TELL5212 小时前
selenium webdriver 第二次初始化的异常
开发语言·python