Skip to content

webshell is a server that listens for http requests from localhost, translates them to commands, and executes the result.

License

Notifications You must be signed in to change notification settings

ccollins476ad/webshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webshell

webshell is a server that listens for http requests from localhost, translates them to commands, and executes the result. By default, it listens for http requests on port 9901.

The intent is to enable browser scripts to execute arbitrary commands. Such scripts are prohibited from executing commands directly, but are allowed to send GET http requests.

Example

  1. Start webshell
$ ./webshell
  1. In another terminal, ask webshell for the current UTC time
$ curl localhost:9901/webshell/v1/date/-u
Sun Oct 19 22:49:36 UTC 2025

Request format

webshell accepts http requests of any method. A request encodes the command to execute in the url path, as follows:

/webshell/v1/<command>/<arg1>/<arg2>/...

The command and arguments are url-escaped. The request body is empty.

About

webshell is a server that listens for http requests from localhost, translates them to commands, and executes the result.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages