electron-dllinjector
v1.0.1
Published
v8 (Node.js & Electron) wrapper around a Windows C++ DLL to inject DLLs into running processes
Downloads
3
Maintainers
Readme
dllinjector
npm install dllinjector
npm install [email protected]
A wrapper around an electron native addon. Built for use on Windows OS. Currently compiled for use in Electron version 7.1.0, but it may work for newer versions.
For use with Electron, use npm electron-rebuild
//Access to the injector class
const dllinjector = require('electron-dllinjector')
Electron in production will usually put this package inside an asar file. That could cause issues, so you may want to move this entire package into a resources folder to keep it outside of the asar file.
Class methods
InjectDLL(<string> DLLFilePath, <int>ProcessID)
//Injects the dll at the specified path into the process with specified id
//Returns true if no error
GetProcessIDByName(<string> ProcessName)
//Searches process list for the first occurance of the specified process name and returns the process id
KillProcess(<int> ProcessID)
//Kills the process with the specified ID
//Returns true if killed, false otherwise
GetRunningApplications()
//Returns array of objects. Ex. [{pid: 0, name:"notepad.exe"},{pid: 1, name:"program.exe"},...]
&more