Skip to content

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

Notifications You must be signed in to change notification settings

smallmuou/shellserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published