A simple cross-environment debugging and logging tool that supports remote logging and debugging in different environments (Node.js, web, WeChat Mini Program, etc.). Mainly used in situations where it's inconvenient to view logs, such as when reverse engineering other apps and needing to view logs.
- Supports multiple runtime environments: Node.js, web, WeChat Mini Program, or other scenarios where JavaScript is supported.
- If the application you're trying to reverse engineer doesn't support JavaScript, you can use AI agents to translate and generate request code for your target environment, such as Lua, Python, etc.
- Supports WeChat Mini Program wx.login hook!
npm install -g hecho
hecho server
By default, the server will start on port 9191. You can change the default port by specifying a port number:
hecho server 8080
hecho client
Or
hecho cli
- For WeChat Mini Program environment, paste the code into the first line of game.js in the developer tool
hecho wxlogin
- For WeChat Mini Program environment, paste the code into the first line of game.js in the real device environment
hecho wxclient
- Default IP and port for the client
(function hookConsole(baseUrl, myhook){
...
})("http://127.0.0.1:9191");
- If your target environment doesn't support IP access, you can set a URL instead. Use a domain that is trusted by the app, then use reverse proxy (charles, proxyman etc.) to your server
(function hookConsole(baseUrl, myhook){
...
})("https://xxxx.xxxx.com/echo");
MIT