Skip to content

Forward a parameter sent to a webserver to a local shell; example usage include using sqlmap to test other services than webservers.

License

Notifications You must be signed in to change notification settings

codecentric/webserver-shell-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Webserver Shell Bridge

Forward a parameter sent to a webserver to a local shell. For the webserver we use NodeJS. In there we define our shell command.

The purpose is to enable automatic tools which only work on urls to forward their input to a shell. Example usage is running sqlmap against (legacy) shell tools.

Install / usage

  • Clone or download
  • Set parameters in server.js.
    • shellCommand should be the shell command to test, PAYLOAD_PARAM will be substituted by the param sent to the server.
    • filterRegexes should contain input not accepted by your shell command, for example if cannot handle leading dashes or double quotes.
  • nodejs server.js
  • Test your webserver, there's a form with param param or you can access it directly by using http://localhost:8080/?param=hello. Output will be echo'd on the page for tool parsing.

About

Forward a parameter sent to a webserver to a local shell; example usage include using sqlmap to test other services than webservers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published