Skip to content

a inject tools for injecting js code into typora (with an activation script example)

License

Notifications You must be signed in to change notification settings

showmethemoney2022/NodeInject

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeInject

a inject tools for injecting js code into typora (with an activating script example)

How it works:

  1. unpack node_modules.asar package (in Typora\resources)
  2. write hook.js into raven package directory (raven will be required at the early stage of startup)
  3. modify index.js of raven,injecting require of hook.js

Currently using embedded javascript file (hook.js)

usage:

  1. modify hook.js if you need
  2. use cargo build to make executable
  3. Move the program to the Typora directory
  4. run (in shell,windows will close window when program exit,you need to get generated fake license in program output)

About hook.js

WARNING

JUST FOR LEARNING!

SUPPORT GENUINE SOFTWARE AND DO NOT SELL PIRATED SOFTWARE !!!

Ability

  • make typora to activate with the generated activation code (Test passed in version 1.4.8 on windows)
  • hook console.log to remote http server and block override
  • hook electron-fetch for sniffing request
  • Full version compatibility (Not tested for older version and may fail in the future)

About

a inject tools for injecting js code into typora (with an activation script example)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.7%
  • Rust 30.3%