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

极验4 语序验证码 分析 极验4 w

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

逆向过程

def url_to_base64(url):# 将 URL 编码为 base64 字符串base64_encoded_data = base64.b64encode(url.encode('utf-8'))base64_message = base64_encoded_data.decode('utf-8')return base64_message
headers = {"Accept": "*/*","Accept-Language": "zh-CN,zh;q=0.9","Cache-Control": "no-cache","Connection": "keep-alive","Sec-Fetch-Dest": "script","Sec-Fetch-Mode": "no-cors","Sec-Fetch-Site": "cross-site","Sec-Fetch-Storage-Access": "active",
}
url = "load"
captcha_id = "cf1850663be9b904bbe2d01cff0ce0eb"
params = {"callback": f"geetest_1744941101247","captcha_id": captcha_id,"challenge": "","client_type": "web","risk_type": "","lang": "zho"
}
response = requests.get(url, headers=headers, cookies=cookies, params=params)data = json.loads(re.findall('{.*}', response.text)[0])
print(data['data'])
lot_number = data["data"]["lot_number"]
captcha_type = data["data"]["captcha_type"]
if captcha_type != 'phrase':sys.exit(0)imgs = data["data"]["imgs"]
with open('../bg.png', 'wb') as fp:fp.write(requests.get(f"{imgs}").content)captcha_mode = data["data"]["captcha_mode"]
pow_detail = data["data"]["pow_detail"]
payload = data["data"]["payload"]
process_token = data["data"]["process_token"]
print(imgs)with open('../bg.png', 'rb') as f:a = base64.b64encode(f.read()).decode()  ## 图片二进制流base64字符串
dictdata = verify(a).split("|")
print(dictdata)
userresponse = []
for i in dictdata:x, y = i.split(',')userresponse.append([x,y])
print(userresponse)
cp = execjs.compile(open('run.js', 'r', encoding='utf-8').read())
print(data['data'])
w = cp.call('getEncrypt', captcha_id, data["data"], userresponse)
print(w)url = "/verify"
params = {"callback": "geetest","captcha_id": captcha_id,"client_type": "web","lot_number": lot_number,"risk_type": "","payload": payload,"process_token": process_token,"payload_protocol": "1","pt": "1","w": w
}
response = requests.get(url, headers=headers, cookies=cookies, params=params)print(response.text)
print(response)

结果

总结

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

http://www.xdnf.cn/news/265.html

相关文章:

  • WiFi“管家”------hostapd的工作流程
  • Manus AI:突破多语言手写识别技术壁垒之路
  • element-plus添加暗黑模式
  • AI大模型API文档的核心内容概述,以通用框架和典型实现为例
  • 超导材料的应用领域概述
  • UWP特性分析
  • vs如何快速找到多余的#region
  • 吃透LangChain(五):多模态输入与自定义输出
  • 人工智能学习框架完全指南(2025年更新版)
  • 基于VS Code 为核心平台的python语言智能体开发平台搭建
  • mysql collation_database 参数
  • spring:加载配置类
  • linux如何手动设置域名与 IP 地址的映射关系
  • 深入理解React中的Props与State:核心区别与最佳实践
  • AXOP36061S: 60V 高压单通道运算放大器
  • DemoGen:用于数据高效视觉运动策略学习的合成演示生成
  • PCM 参数深度解析:采样率、帧、缓存大小与多通道关系
  • 【C到Java的深度跃迁:从指针到对象,从过程到生态】第二模块·语法迁移篇 —— 第六章 函数革命:从过程到方法的重生
  • Yarn的安装及环境配置
  • PS中制作一张扣洞贴图
  • transient关键字深度解析
  • FA-YOLO:基于FMDS与AGMF的高效目标检测算法解析
  • 社保文档智能处理 python实现 谷歌 Gemini回答
  • 物联网分层架构全解析:从感知到应用的智能生态构建
  • Java漏洞原理与实战
  • 单调队列模板cpp
  • servlet-HTTP协议
  • 每日一题(小白)暴力娱乐篇32
  • 数据类型相关问题导致的索引失效 | OceanBase SQL 优化实践
  • 计算机视觉---相机标定