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.js
withhook.js
in this repo (or useno_embed
feature and setNO_EMBED_HOOK_JS_PATH
to the path ofhook.js
) - Run
cargo build
orcargo build --features no_embed
to build a type of executable (If you enabledno_embed
feature, you need to copyhook.js
to 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.log
to remote http server and block override - hook
electron-fetch
for sniffing request
from https://github.com/DiamondHunters/NodeInject_Hook_example
No comments:
Post a Comment