Skip to content

alfredwesterveld/node-url-to-exec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url to exec

do NOT use this module in PRODUCTION. It should NOT be accessible over internet(insecure)!

Requirements

  • node.js

Installation

$ [sudo] npm install -g url-to-exec

Although it is really not advised to install with sudo. I would advise to install via nvm

Usage

Starting server:

url-to-exec --port=<port> --host=<host>

if no port and host it will default bind to http://127.0.0.1:1234

For this example we assume $ which whoami | wc -m will return number greater than 0.

When you have not specified a port and host and you do $ curl "http://localhost:1234?cmd=whoami" it will return your username => alfredwesterveld\n

About

Exec command corresponding to url. do NOT use this in PRODUCTION.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published