Code Monkey home page Code Monkey logo

prophet's Introduction

prophet

JAVASCRIPT AST HOOK JS逆向快速定位

这个项目是用AST语法树进行改写JavaScript代码,加上Anyproxy代理流量实现hook保存return值等等,以达到快速定位,指定参数值的相关代码位置。核心逻辑代码查看handleCode.js

使用方法

第一步:下载文件 点击Download ZIP 直接下载文件到本地

image

第二步:先安装node环境 在安装依赖库

  • 需要安装的依赖库一键安装命令 npm install --save cheerio @babel/parser @babel/traverse @babel/types @babel/generator
  • anyoroxy安装遇到坑查百度一般都能解决,详细查看官方地址anyoroxy.io里面例子通俗易懂
  • 一般安装完上面几个库就可以了,还有有问题就缺啥补啥。

第三步:启动+使用

  • 打开server.js文件 设置参数主要有 port(代理端口) throttle(传输速度)一般默认无须修改
  • 直接命令启动 node .\server.js 下面是启动成功的输出信息 Http proxy started on port 8001

image

浏览器挂上代理端口8001,打开网站等待加载完成,

image

138J1B5VMOH399(3ET @J

搜索参数值,ting_search(str) ,点击跳转到相应位置

image

极验 geetest

image

最后:安装问题,使用问题等等,有啥疑问可以直接提出来看到会及时解答.

prophet's People

Contributors

71n9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

prophet's Issues

速度问题

我使用代理之后他的处速度会非常慢 我等待了3分钟还没有加载完对应的js文件 [请我是不是我的操作有什么问题呢
Snipaste_2022-07-25_05-57-19
而且他的界面会一直卡在这里
Snipaste_2022-07-25_06-01-23

response gbk转utf-8 去除乱码

/**
* newResponse.body 是二进制数据流buffer
* const iconv = require("iconv-lite")
* body=iconv.decode(newResponse.body,'gbk') 把gbk数据流转为utf-8
*/

html与js同样修改

大佬,登录淘宝搞定了吗?

网上都是模拟登录,我搜JS逆向登录,就搜到了看雪你的文章,你说的ast hook还要安装nodejs,但是安装nodejs需要管理员权限,员工电脑是装不了的。只能个人电脑安装了,安装之后要怎么hook,node /.server.js运行之后,就可以在chrome浏览器devtool页面使用了吗,一顿ctrl+f?

ting_search is not defined

ting_search is not defined
请教一下这个问题怎么解决,我已经成功的执行了node .\server.js
1664681358446_C513DCD2-D6E2-4325-9F86-C0FB10C37195
然后也用SwitchyOmega设置代理了
image
难道是因为我装的SwitchyOmega版本2.5.20太低了吗?我的版本是,是18年发布的,在github下载的,看你的截图版本是2.5.21,比我高
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.