原文链接
https://github.com/DiamondHunters/NodeInject_Hook_example
https://github.com/abrance/NodeInject_Hook_example
材料
Ubuntu22.04
typora 1.7.6
win10
todo
步骤
Ubuntu
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| git clone https://github.com/abrance/NodeInject_Hook_example.git git clone https://github.com/abrance/NodeInject.git
cd NodeInject_Hook_example && git reset --hard 81f8612 cp NodeInject_Hook_example/hook.js NodeInject/src/hooklog.js
cd NodeInject && cargo build cd NodeInject_Hook_example/license-gen && cargo build
cp NodeInject/target/debug/node_inject /usr/share/typora
cd /usr/share/typora/ && sudo ./node_inject
sudo NodeInject_Hook_example/license-gen/target/debug/license-gen
|