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

x-vercel-challenge-solution 逆向

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

def get_headers_via_subprocess(token): """ 通过 subprocess 调用 Node.js 脚本获取 headers """ try: # 运行 Node.js 脚本 result = subprocess.run( ['node', 'run.js', token], capture_output=True, text=True, timeout=30 # 设置超时 ) # 检查执行结果 if result.returncode == 0: # 解析 JSON 输出 output = json.loads(result.stdout.strip()) return output['result'] else: print(f"Error: {result.stderr}") return None except subprocess.TimeoutExpired: print("Subprocess execution timed out") return None except Exception as e: print(f"Failed to execute subprocess: {e}") return None solution = get_headers_via_subprocess(token) print(solution) status_code = self._submit_solution(url, token, solution) base_url = url.rstrip('/') self.session.headers.update({ 'accept': '*/*', 'connection': 'keep-alive', 'origin': base_url, 'referer': f'{base_url}/.well-known/vercel/security/static/challenge.v2.min.js', 'sec-fetch-dest': 'empty', 'sec-fetch-mode': 'cors', 'sec-fetch-site': 'same-origin', 'x-vercel-challenge-solution': solution, 'x-vercel-challenge-token': token, 'x-vercel-challenge-version': '2', }) response = self.session.post(f'{base_url}/.well-known/vercel/security/request-challenge') return response.status_code

结果

总结

http://www.jsqmd.com/news/245548/

相关文章:

  • 为什么律师花在汽车和衣服上的钱,比同等收入的大学教授更多?
  • ue5.5 动画 选取 一段使用
  • GB/T 34986《产品加速试验方法》
  • 2026年AI论文工具实操指南:7大神器手把手教学,从开题到查重一站式搞定
  • 【前端基础】04-XSS(跨站脚本攻击,Cross-Site Scripting)
  • 凤希AI提出:FXPA2P - 当P2P技术遇上AI,重新定义数据与服务的边界
  • AI时代,你的企业还在做传统SEO?该升级为“面向AI的运营”了!
  • 更弱智的算法学习 day36
  • 2025年中国专业摄像机行业综合概况
  • 最新AI-Python自然科学领域机器学习与深度学习技术
  • 社会责任验厂里的BSCI,SEDEX,SA8000都需要吗?
  • 从混乱到高效:2026年玄微科技如何重塑孕产门店运营?
  • 2026年:当传统月子中心还在拼人力,玄微子AI智能体已在拼算力
  • 微信社群机器人接口
  • 更弱智的算法学习day 37
  • 服务器用 Linux,和个人电脑用 Linux 有什么不同?
  • 非达霉素Fidaxomicin治愈艰难梭菌感染的时间与复发预防剂量
  • 水质氟化物检测仪:技术原理、行业应用与智能化解决方案深度解析
  • 从背调公司到企业风控能力的内化:一种新的选择
  • python基于vue的汽车租赁系统的续租django flask pycharm
  • 什么是SAC
  • python基于vue的美食外卖点餐平台的设外卖员商家django flask pycharm
  • 成都移动直连中国香港公网线路
  • 为什么经济学里有那么多数学公式?
  • 开源BI天花板!SuperSonic融合Chat BI+Headless BI,自然语言直接查数据
  • 深度学习分析公司文化与业绩关系
  • 演唱会购票系统的设计与实现
  • Windows 11 Hyper-V 虚拟机双网卡网络中断无法恢复问题
  • 背景调查:建立企业与人才间的信任基石
  • AI原生应用开发必知:上下文理解的10个最佳实践