Skip to content
Back to search

AntiDebug_Breaker

JavaScript Reverse Tools -- JS逆向工具

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/0xsdeo--antidebug-breaker/badge.svg)](/listings/0xsdeo--antidebug-breaker)

HTML

<a href="/listings/0xsdeo--antidebug-breaker"><img src="/api/listings/0xsdeo--antidebug-breaker/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 317 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. ![Antidebug_Breaker](https://socialify.git.ci/0xsdeo/Antidebug_Breaker/image?description=1&font=Bitter&forks=1&language=1&logo=https%3A%2F%2Fp3-flow-imagex-sign.byteimg.com%2Ftos-cn-i-a9rns2rl98%2Frc_gen_image%2F83c1cf6f637940bba9ecb828b7f58ebc.jpeg%7Etplv-a9rns2rl98-image_raw_b.png%3Frcl%3D2025112123094019020B8768AB108FBE9E%26rk3s%3D8e244e95%26rrcfp%3D827586d3%26x-expires%3D2079097789%26x-signature%3DK1FvDsOfH%252BFlP1DmNm1nns1vAaM%253D&name=1&owner=1&pattern=Overlapping+Hexagons&stargazers=1&theme=Light)
  2. [简体中文](README.md) · [English](README.en.md)
  3. 界面语言可在左上角 **辅助配置 → 语言** 中选择自动(跟随浏览器)、简体中文或 English。英文安装和工具说明见 [English 安装说明](docs/agent-install.en.md) 与 [English MCP 文档](mcp/README.en.md)。
  4. ## Intro
  5. 本插件是基于<a href="https://github.com/0xsdeo/Hook_JS">Hook_JS</a>库所写的Google插件,将致力于辅助前端JavaScript逆向以及渗透测试信息收集。
  6. 如何提交您自己的脚本:<a href="https://github.com/0xsdeo/AntiDebug_Breaker/wiki/%E6%8F%90%E4%BA%A4%E6%82%A8%E8%87%AA%E5%B7%B1%E7%9A%84hook%E8%84%9A%E6%9C%AC">AntiDebug_Breaker wiki</a>
  7. 新增 **MCP** 和 **Skills** 功能,使用说明请参考 [MCP 文档](mcp/README.md) 和 [Skills 目录](skills/antidebug-breaker-skills/)。
  8. ## 赞助商
  9. 感谢以下朋友与伙伴对 AntiDebug Breaker 的支持。
  10. | Logo | 赞助商 | 介绍 | 邀请码 | 官网 |
  11. | :--- | :--- | :--- | :--- | :--- |
  12. | [![BirdProxies](image/README/1779357961398.png)](https://birdproxies.com/@ANTIDEBUG_BREAKER) | BirdProxies | 代理不该复杂也不该贵。覆盖 195+ 地区的快速住宅代理和 ISP 代理,价格公道,支持到位。官网首页玩 FlappyBird 小游戏可免费领流量。 | 首单10%折扣 + 额外15%住宅代理免费流量<br>测试联系:https://discord.com/invite/birdproxies | [立即注册](https://birdproxies.com/@ANTIDEBUG_BREAKER) |
  13. ## 教学视频
  14. 反调试:https://www.bilibili.com/video/BV1gQ4mzMEA4
  15. Vue:https://www.bilibili.com/video/BV12148z7EnP
  16. Hook CryptoJS对称加密 快速出key、iv、mode、padding:https://www.bilibili.com/video/BV1MPW1zDEK8
  17. JS逆向快速定位加密位置以及获取加密密文等加密参数:https://www.bilibili.com/video/BV1cRyXBaEJX
  18. SpiderDemo 靶场练习网站:https://www.spiderdemo.cn
  19. ## 插件安装
  20. ### 谷歌插件应用商店安装
  21. 地址:https://chromewebstore.google.com/detail/antidebug-breaker/opkclndfcbafdaecbbaklefnaadopcln
  22. ### 手动安装
  23. 将源码下载到本地后打开chrome,访问`chrome://extensions/`,点击左上角的`加载未打包的扩展程序`,然后选中源码文件夹即可:
  24. ![1753669187234](image/README/1753669187234.png)
  25. ### MCP 与 Skills
  26. 在插件的 **MCP** 页面点击 **“下载 MCP + Skills”**,前往 GitHub 发布页获取配套包,安装步骤见 [安装说明](docs/agent-install.md)。
  27. ## 脚本使用场景
  28. >AntiDebug
  29. - <a href="#Bypass_Debugger">Bypass Debugger</a>
  30. - <a href="#hook_log">hook log</a>
  31. - <a href="#Hook_table">Hook table</a>
  32. - <a href="#hook_clear">hook clear</a>
  33. - <a href="#hook_close">hook close</a>
  34. - <a href="#hook_history">hook history</a>
  35. - <a href="#Fixed_window_size">Fixed window size</a>
  36. - <a href="#location_href">页面跳转JS代码定位通杀方案</a>
  37. - <a href="#Hook_CryptoJS">Hook CryptoJS</a>
  38. - <a href="#Hook_JSEncrypt_RSA">Hook JSEncrypt RSA</a>
  39. - <a href="#Hook_SMcrypto">Hook SM-crypto</a>
  40. >Hook
  41. - <a href="#document.cookie">document.cookie</a>
  42. - <a href="#XMLHttpRequest.setRequestHeader">XMLHttpRequest.setRequestHeader</a>
  43. - <a href="#XMLHttpRequest.open">XMLHttpRequest.open</a>
  44. - <a href="#localStorage.setItem">localStorage.setItem</a>
  45. - <a href="#localStorage.getItem">localStorage.getItem</a>
  46. - <a href="#localStorage.removeItem">localStorage.removeItem</a>
  47. - <a href="#localStorage.clear">localStorage.clear</a>
  48. - <a href="#sessionStorage.setItem">sessionStorage.setItem</a>
  49. - <a href="#sessionStorage.getItem">sessionStorage.getItem</a>
  50. - <a href="#sessionStorage.removeItem">sessionStorage.removeItem</a>
  51. - <a href="#sessionStorage.clear">sessionStorage.clear</a>
  52. - <a href="#fetch">fetch</a>
  53. - <a href="#JSON.parse">JSON.parse</a>
  54. - <a href="#JSON.stringify">JSON.stringify</a>
  55. - <a href="#Promise">Promise</a>
  56. - <a href="#Math.random">Math.random</a>
  57. - <a href="#Date.now">Date.now</a>
  58. - <a href="#performance.now">performance.now</a>
  59. > Vue
  60. - <a href="#Get_Vue_0">获取路由</a>
  61. - <a href="#Get_Vue_1">清除跳转</a>
  62. - <a href="#Clear_vue_Navigation_Guards">清除路由守卫</a>
  63. - <a href="#detectorExec">激活Vue Devtools</a>
  64. > React
  65. - <a href="#Get_React_0">获取路由</a>
  66. ### 反调试
  67. - <a id="Bypass_Debugger" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/Bypass_Debugger.js">Bypass Debugger</a>
  68. 该脚本用于绕过**无限Debugger**,目前引起无限Debugger的三种核心方式为:
  69. > eval
  70. > Function
  71. > Function.prototype.constructor
  72. 本脚本通过 Hook 以上核心函数有效绕过大部分前端无限 debugger。但因 eval 作用域问题,某些网站可能会报错。此时可切换至火狐浏览器无视debugger进行调试。
  73. 注:极少数网站可能采用特殊反制措施(如故意引发eval作用域问题或其他问题),导致前端报错或依然能引起debugger,这种情况需针对性解决。总体而言,**本脚本能覆盖绝大多数场景**。
  74. 脚本原理:<a href="https://mp.weixin.qq.com/s/3xagT-PXCgGrw9YiaCe__g">JS逆向系列14-Bypass Debugger</a>
  75. - <a id="hook_log" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_log.js">hook log</a>
  76. 本脚本为<a href="https://github.com/lyousan">Yosan</a>师傅所作,用于防止js重写console.log等方法。
  77. - <a id="Hook_table" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_table.js">Hook table</a>
  78. 绕过js检测运行时间差来实现反调试。
  79. 本脚本将针对以下这三种特征的反调试网站(注:包括但不仅限于这以下三种特征,需根据实际情况去判断是否需要使用本脚本):
  80. > 频繁调用console.clear清除控制台数据
  81. > 控制台频繁输出大量内容
  82. > 进行完以上两种操作后直接使用location.href进行跳转,一般跳转到主域名为github.io的网站。
  83. 如存在以上特征的网站,均可尝试使用本脚本去进行绕过。
  84. 脚本原理:<a href="https://mp.weixin.qq.com/s/JZu-fknVdEpaI5anzSlLjg">JS逆向系列19-无感绕过一类运行时间差反调试</a>
  85. - <a id="hook_clear" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_clear.js">hook clear</a>
  86. 禁止js清除控制台数据。
  87. 脚本原理:<a href="https://mp.weixin.qq.com/s/r-ZcP2knpmoVEK0y_26xBw">JS逆向系列10-反调试与反反调试</a>
  88. - <a id="hook_close" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_close.js">hook close</a>
  89. 重写close,以此来避免网站反调试关闭当前页面。
  90. 脚本原理:<a href="https://mp.weixin.qq.com/s/r-ZcP2knpmoVEK0y_26xBw">JS逆向系列10-反调试与反反调试</a>
  91. - <a id="hook_history" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_history.js">hook history</a>
  92. 避免网站反调试返回上一页或某个特定历史页面。
  93. 脚本原理:<a href="https://mp.weixin.qq.com/s/r-ZcP2knpmoVEK0y_26xBw">JS逆向系列10-反调试与反反调试</a>
  94. - <a id="Fixed_window_size" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/Fixed_window_size.js">Fixed window size</a>
  95. 固定浏览器高度宽度值以绕过前端检测用户是否打开控制台。
  96. 固定的宽度高度值:
  97. ```text
  98. innerHeight:660
  99. innerWidth:1366
  100. outerHeight:760
  101. outerWidth:1400
  102. ```
  103. - <a id="location_href" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/location_href.js">页面跳转JS代码定位通杀方案</a>
  104. 本脚本为<a href="https://github.com/CC11001100">CC11001100</a>师傅所作,脚本原地址:`https://github.com/JSREI/page-redirect-code-location-hook`,用于阻断页面跳转,留在当前页面分析。
  105. - <a id="Hook_CryptoJS" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/Hook_CryptoJS.js">Hook CryptoJS</a>
  106. Hook CryptoJS当中的所有 对称&哈希&HMAC算法,例如AES、DES、MD5、SHA等。如果未打印请自查目标站点是否清除了console.log或是否使用的是CryptoJS的加密算法,如果确认使用的是CryptoJS库进行的加密而无法打印可联系我。
  107. - <a id="Hook_JSEncrypt_RSA" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/Hook_JSEncrypt.js">Hook JSEncrypt RSA</a>
  108. Hook JSEncrypt加密库中的RSA算法,加密时将在控制台打印公钥、原始数据、加密后的密文。解密时将在控制台打印私钥、原始数据、解密后的明文。如果未打印请自查目标站点是否清除了console.log或是否使用的是JSEncrypt的RSA算法,如果确认使用的是JSEncrypt库进行的RSA加密而无法打印可联系我。
  109. - <a id="Hook_SMcrypto" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/Hook_SMcrypto.js">Hook SM-crypto</a>
  110. 本脚本思路与初始形态为<a href="https://github.com/Hosinoharu">魔法少女☆ホシノ</a>所作。
  111. Hook SM-crypto加密库当中的 SM2、SM3、SM4算法。如果未打印请自查目标站点是否清除了console.log或是否使用的是sm-crypto的加密算法,如果清除了console.log可以尝试使用hook log脚本防止js重写log方法,如果确认使用的是sm-crypto库进行的加密而无法打印可联系我。
  112. ### Hook
  113. - <a id="document.cookie" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/Hook_cookie.js">document.cookie</a>
  114. 开启本脚本后默认将在控制台打印设置的cookie,如果需要打印特定cookie请在下方输入框中输入cookie名称,脚本将会捕获这些特定cookie名。
  115. - <a id="XMLHttpRequest.setRequestHeader" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_xhr_setRequestHeader.js">XMLHttpRequest.setRequestHeader</a>
  116. 开启本脚本后默认将在控制台打印设置的请求头,如果需要打印特定请求头请在下方输入框中输入请求头名称,脚本将会捕获这些特定请求头名。
  117. - <a id="XMLHttpRequest.open" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_xhr_open.js">XMLHttpRequest.open</a>
  118. 开启本脚本后默认将在控制台打印初始化xhr请求配置(url,method),如果需要捕获特定url请在下方输入框中输入url名称,脚本将会捕获这些特定url名称。
  119. - <a id="localStorage.setItem" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_localStorage_setItem.js">localStorage.setItem</a>
  120. 开启本脚本后默认将在控制台打印设置的localStorage键值,如果需要捕获特定键请在下方输入框中输入键名,脚本将会捕获这些特定键名。
  121. - <a id="localStorage.getItem" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_localStorage_getItem.js">localStorage.getItem</a>
  122. 开启本脚本后默认将在控制台打印站点读取的localStorage键名,如果需要捕获特定键名请在下方输入框中输入键名,脚本将会捕获这些特定键名。
  123. - <a id="localStorage.removeItem" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_localStorage_removeItem.js">localStorage.removeItem</a>
  124. 开启本脚本后默认将在控制台打印移除的localStorage键名,如果需要捕获特定键名请在下方输入框中输入键名,脚本将会捕获这些特定键名。
  125. - <a id="localStorage.clear" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_localStorage_clear.js">localStorage.clear</a>
  126. 开启本脚本后如果站点进行了清空localStorage动作,默认会在控制台打印消息。
  127. - <a id="sessionStorage.setItem" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_sessionStorage_setItem.js">sessionStorage.setItem</a>
  128. 开启本脚本后默认将在控制台打印设置的sessionStorage键值,如果需要捕获特定键请在下方输入框中输入键名,脚本将会捕获这些特定键名。
  129. - <a id="sessionStorage.getItem" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_sessionStorage_getItem.js">sessionStorage.getItem</a>
  130. 开启本脚本后默认将在控制台打印站点读取的sessionStorage键名,如果需要捕获特定键名请在下方输入框中输入键名,脚本将会捕获这些特定键名。
  131. - <a id="sessionStorage.removeItem" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_sessionStorage_removeItem.js">sessionStorage.removeItem</a>
  132. 开启本脚本后默认将在控制台打印移除的sessionStorage键名,如果需要捕获特定键名请在下方输入框中输入键名,脚本将会捕获这些特定键名。
  133. - <a id="sessionStorage.clear" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_sessionStorage_clear.js">sessionStorage.clear</a>
  134. 开启本脚本后如果站点进行了清空sessionStorage动作,默认会在控制台打印消息。
  135. - <a id="fetch" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_fetch.js">fetch</a>
  136. 开启本脚本后默认将在控制台打印fetch请求设置。
  137. - <a id="JSON.parse" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_json_parse.js">JSON.parse</a>
  138. 开启本脚本后默认将在控制台打印传入的JSON,如果需要捕获特定JSON请在下方输入框中输入JSON,脚本将会捕获这些特定JSON字符串。
  139. - <a id="JSON.stringify" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_json_stringify.js">JSON.stringify</a>
  140. 开启本脚本后默认将在控制台打印传入JSON.stringify的值。
  141. - <a id="Promise" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_Promise.js">Promise</a>
  142. 本脚本为<a href="https://github.com/lyousan">Yosan</a>师傅所作。
  143. 将在控制台打印Promise的resolve参数,可快速定位异步回调位置。
  144. - <a id="Math.random" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_random.js">Math.random</a>
  145. 固定Math.random返回值
  146. - <a id="Date.now" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/Hook_Date_now.js">Date.now</a>
  147. 固定Date.now返回值
  148. - <a id="performance.now" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/hook_performance_now.js">performance.now</a>
  149. 固定performance.now返回值
  150. ### Vue
  151. - <a id="Get_Vue_0" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/Get_Vue_0.js">获取路由</a>
  152. 获取已加载的路由并显示在下方的表格中,注意未加载的路由不会被获取到,如果长时间未获取到可能是由于目标站点未使用vue router,也可能是因为目标站点未加载完毕。
  153. - <a id="Get_Vue_1" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/Get_Vue_1.js">清除跳转</a>
  154. 本脚本将清除vue router的跳转方法,如果清除后依然会跳转,一方面可能是由于注入的脚本还未清除跳转方法,网站就调用了方法进行跳转,此时可以考虑手动替换js清除跳转方法。另一方面可能是由于在代码中调用的不是vue router的跳转方法,此时可以考虑开启反调试板块中的hook close或hook history脚本,再或者打开页面跳转JS代码定位通杀方案脚本,定位到跳转的函数并替换清除。
  155. - <a id="Clear_vue_Navigation_Guards" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/Clear_vue_Navigation_Guards.js">清除路由守卫</a>
  156. 仅清除全局前置守卫(beforeEach)和全局解析守卫(beforeResolve),如果清除后网站控制台显示报错,可能是由于在路由守卫中做了动态加载等其他操作,此时可以考虑关闭本脚本并亲自替换js逻辑实现绕过。
  157. 脚本原理:<a href="https://mp.weixin.qq.com/s/klhBr2V7UJpspiAmRY1DXQ">最大化收集Vue框架(SPA类型)下的js</a>
  158. - <a id="detectorExec" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/detectorExec.js">激活Vue Devtools</a>
  159. 本脚本引用自<a href="https://github.com/hzmming/vue-force-dev">vue-force-dev</a>。
  160. 当开启本脚本后将激活Vue Devtools。Vue2需开启Vue.js devtools(v5),Vue3需开启Vue.js devtools,可自行去谷歌插件商店安装上述两个插件。注:1.上述两个插件不能同时开。2.当下方没有检测到Vue Router时并不能代表网站不是Vue框架,只能说明网站并没有使用Vue Router。
  161. ### React
  162. - <a id="Get_React_0" href="https://github.com/0xsdeo/AntiDebug_Breaker/blob/main/scripts/Get_React_0.js">获取路由</a>
  163. 获取已加载的路由并显示在下方的表格中,注意未加载的路由不会被获取到,如果长时间未获取到可能是由于目标站点未使用react router,也可能是因为目标站点未加载完毕。
  164. ## 插件使用注意事项
  165. 1. 本插件目前不支持火狐。
  166. 2. 进入网页后,无论是开启脚本还是关闭脚本,需刷新页面后才会生效。
  167. 3. **商店版本通过原条目升级;手动版本替换原目录文件后在扩展管理页重新加载。**新增调试权限可能需要确认并重新启用扩展。卸载扩展会删除它的本地配置,请勿为普通升级先卸载旧版。
  168. ## 致谢
  169. 致谢个人:<a href="https://github.com/Hosinoharu">魔法少女☆ホシノ</a>、<a href="https://github.com/CC11001100">CC11001100</a>、<a href="https://github.com/mingheyan">Dexter</a>、<a href="https://github.com/d1sbb">d1sbb</a>、<a href="https://github.com/lyousan">Yosan</a>
  170. 本项目参考过、引用过或正在引用的优质项目:<a href="https://github.com/Ad1euDa1e/VueCrack">VueCrack</a>、<a href="https://github.com/keecth/FakeCryptoJS">FakeCryptoJS</a>、<a href="https://github.com/hzmming/vue-force-dev">vue-force-dev</a>
  171. ## Contact
  172. 如有bug或其他问题可提交issues,或者关注公众号Spade sec联系我。
  173. 如需添加交流群可加我微信:I-0xsdeo。
  174. ## 使用许可
  175. 本工具禁止未授权商业用途,禁止二次开发后进行未授权商业用途。
  176. ## 404星链计划
  177. <img src="https://github.com/knownsec/404StarLink-Project/raw/master/logo.png" width="30%">
  178. AntiDebug_Breaker 现已加入 [404星链计划](https://github.com/knownsec/404StarLink)
  179. ## Star History
  180. [![Stargazers over time](https://starchart.cc/0xsdeo/AntiDebug_Breaker.svg?variant=adaptive)](https://starchart.cc/0xsdeo/AntiDebug_Breaker)

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.