A hooking example for NodeInject
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.
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.
- 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 - Full version compatibility (older version not using
electron-fetch
and may fail in the future) - Multi os compatibility (not work in macOS)