- Express.js API to kill target PCs.
- Usage:
http://localhost:5000/kill/60in seconds.
http://localhost:5000/kill/1minin minutes.
http://localhost:5000/mercyto cancel shutdown.
Since the server is running on 0.0.0.0, the server can be accessible for any computer in the network, you can use ipconfig to see the IP of the machine you want to shutdown and do it via another device by doing the request.
Install:
npm install @metalbotics/killmeProgrammatic usage:
import { KillMeConfig } from '@metalbotics/killme';
import KillMe from '@metalbotics/killme';
const config: KillMeConfig = {
port:5000,
host:"0.0.0.0"
}
const killMe = new KillMe(config)
killMe.startServer()
// later
killMe.stopServer();CLI / Run locally:
npm install
npm run build
npm startDevelopment (fast reload):
npm install
npm run devSecurity warning: This package runs OS shutdown commands. Do NOT publish or use this on untrusted networks. Use only for local, internal, or testing purposes.