Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcoot/node-dll-injector
Native node addon for dll injection in windows
https://github.com/mcoot/node-dll-injector
Last synced: 3 months ago
JSON representation
Native node addon for dll injection in windows
- Host: GitHub
- URL: https://github.com/mcoot/node-dll-injector
- Owner: mcoot
- License: mit
- Created: 2018-04-07T03:22:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-03T07:35:33.000Z (over 5 years ago)
- Last Synced: 2024-11-01T20:46:53.349Z (4 months ago)
- Language: C++
- Size: 22.5 KB
- Stars: 14
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-dll-injector
Native node addon for dll injection in windows.
Requires a working `node-gyp` setup to compile the native addon.
## Usage
```javascript
const injector = require('node-dll-injector');const isNotepadRunning = injector.isProcessRunning('notepad.exe');
if (isNotePadRunning) {
const success = injector.inject('notepad.exe', 'mydll.dll');if (success) {
console.log('Successfully injected!');
} else {
console.log('Injection failed. :(');
}
}```
There are alternative versions of each function `injectPID` and `isProcessRunningPID` that inject based on process id.