Skip to content

MetalBotics/KillMe

Repository files navigation

KillMe

  • Express.js API to kill target PCs.
  • Usage:

    http://localhost:5000/kill/60 in seconds.
    http://localhost:5000/kill/1min in minutes.
    http://localhost:5000/mercy to 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.

npm package

Install:

npm install @metalbotics/killme

Programmatic 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 start

Development (fast reload):

npm install
npm run dev

Security warning: This package runs OS shutdown commands. Do NOT publish or use this on untrusted networks. Use only for local, internal, or testing purposes.

About

API for turning the Windows Host machine off.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors