A hooking example for NodeInject。
About hook.js
JUST FOR LEARNING!
PLEASE DO NOT ABUSE THIS SCRIPT CAPABILITY FOR THE PURPOSE OF INFRINGEMENT, AND YOU SHALL BEAR ALL CONSEQUENCES CAUSED BY YOUR ACTIONS.
Usage
git clone https://github.com/DiamondHunters/NodeInject.git- Replace
hooklog.jswithhook.jsin this repo (or useno_embedfeature and setNO_EMBED_HOOK_JS_PATHto the path ofhook.js) - Run
cargo buildorcargo build --features no_embedto build a type of executable (If you enabledno_embedfeature, you need to copyhook.jsto the same directory of executable) - Run the executable
If you need a fake license, you can run cargo run in license-gen directory
This fake license is not valid and just used for testing. Please do not use it for any other purpose.
Ability
- make typora to activate with the generated activation code (Test passed in version 1.5.8 on Windows,1.4.7 on Ubuntu)
- hook
console.logto remote http server and block override - hook
electron-fetchfor sniffing request
from https://github.com/DiamondHunters/NodeInject_Hook_example
No comments:
Post a Comment