smallmuou / shellserver

ShellServer is a server to execute shell command over http request. With it, you can operate remote pc like local pc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ShellServer

ShellServer is a server to execute shell command over http request. With it, you can operate remote pc like local pc.

Startup (server)

git clone https://github.com/smallmuou/shellserver
cd shellserver
./startup 1234

PS: default port is 8000

Usage (client)

curl -X POST http://serverip:port/cgi-bin/cmd.cgi -d 'your shell cmd'

Example

curl -X POST  http://localhost:1234/cgi-bin/cmd.cgi -d 'ls'
curl -X POST  http://localhost:1234/cgi-bin/cmd.cgi -d 'top'

When to use

  • Lack of backend capability. but need to setup a http service quick.
  • Control a remote pc through app.
  • Put some json file to setup a json-rpc service.

About

ShellServer is a server to execute shell command over http request. With it, you can operate remote pc like local pc


Languages

Language:C 93.5%Language:Shell 4.1%Language:Makefile 2.4%