当前位置: 首页 > article >正文

京东web 详情 cfe滑块分析

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

data = response.json()
print(data)
fp =data['fp']
st = data['st']
data = cp.call('getBg',st,sid)
url = "/api/check"
response = session.post(url, headers=headers, data=data)
data = response.json()
imgStr = data["img"]
img = json.loads(imgStr)
b1 = img['b1']
b2 = img['b2']
handleImg()
res = det.slide_match(target_bytes, background_bytes, simple_target=True)
distance = round(res['target'][0])
data = cp.call('verify',st,sid,imgStr,distance)
url = "/api/check"
response = session.post(url, headers=headers, data=data)
print(response.text)
data = response.json()
vt = data.get('vt')
if vt:
    cookies.update(response.cookies)
    print(response.cookies)
    for i in range(1, 5):
        cp = execjs.compile(open('h5st.js', 'r', encoding='utf-8').read())
        result = cp.call('getH5st')
        # print(result)
        headers = {
            "accept": "application/json, text/javascript, */*; q=0.01",
            "accept-language": "zh-CN,zh;q=0.9",
            "cache-control": "no-cache",
            "pragma": "no-cache",
            "priority": "u=1, i",
            "sec-ch-ua": "\"Not A(Brand\";v=\"8\", \"Chromium\";v=\"132\", \"Microsoft Edge\";v=\"132\"",
            "sec-ch-ua-mobile": "?0",
            "sec-ch-ua-platform": "\"Windows\"",
            "sec-fetch-dest": "empty",
            "sec-fetch-mode": "cors",
            "sec-fetch-site": "same-site",
            "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0",
            "x-rp-client": "h5_1.0.0"
        }
        url = "api"
        response = session.get(url, headers=headers, params=params,cookies=cookies)
        print(result)
        print(response.text)

结果

拿到详情结果就是成功

总结

1.出于安全考虑,本章未提供完整流程,调试环节省略较多,只提供大致思路,具体细节要你自己还原,相信你也能调试出来。


http://www.kler.cn/a/562361.html

相关文章:

  • 【Elasticsearch】同一台服务器部署集群
  • 从零开始用react + tailwindcs + express + mongodb实现一个聊天程序(三) 实现注册 登录接口
  • HarmonyOS学习第7天: 文本组件点亮界面的文字魔法棒
  • 2025年第16届蓝桥杯嵌入式竞赛学习笔记(十):ADC测量电压
  • 如何实现日志采集以及存储以及问题排查
  • 面试-JVM:JVM的组成及作用
  • 三品PDM管理系统:企业产品数据管理的“智慧大脑”,如何破解安全隐私难题?
  • 微信小程序开发中CSS书写常见问题及最佳实践
  • Node.js 内置模块简介(带示例)
  • 《零基础学会!如何用 sql+Python 绘制柱状图和折线图,数据可视化一看就懂》
  • Vue 异步组件的加载策略
  • 故障诊断 | Matlab实现基于DBO-BP-Bagging多特征分类预测/故障诊断
  • 22、《Spring Boot消息队列:RabbitMQ延迟队列与死信队列深度解析》
  • AcWing 蓝桥杯集训·每日一题2025
  • Part-DB部署
  • redis检测大key
  • 【够用就好006】-PC桌面管理ECS服务器的实操步骤
  • 【C++篇】树影摇曳,旋转无声:探寻AVL树的平衡之道
  • FastAPI高级特性(二):错误处理、中间件与应用生命周期
  • Redis-列表结构实操