Linux server19.dn-server.com 3.10.0-962.3.2.lve1.5.88.el7.x86_64 #1 SMP Fri Sep 26 14:06:42 UTC 2025 x86_64
LiteSpeed
Server IP : 46.209.20.154 & Your IP : 216.73.217.55
Domains :
Cant Read [ /etc/named.conf ]
User : emadteam
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
paste /
Delete
Unzip
Name
Size
Permission
Date
Action
auth
[ DIR ]
drwxr-xr-x
2022-08-06 15:50
cowbell
[ DIR ]
drwxr-xr-x
2022-08-06 15:50
debug
[ DIR ]
drwxr-xr-x
2022-08-06 15:50
evalexception
[ DIR ]
drwxr-xr-x
2022-08-06 15:50
exceptions
[ DIR ]
drwxr-xr-x
2022-08-06 15:50
util
[ DIR ]
drwxr-xr-x
2022-08-06 15:50
cascade.py
4.4
KB
-rw-r--r--
2011-12-21 20:42
cascade.pyc
4.23
KB
-rw-r--r--
2014-09-17 20:43
cascade.pyo
4.23
KB
-rw-r--r--
2014-09-17 20:43
cgiapp.py
9.37
KB
-rw-r--r--
2011-12-21 20:42
cgiapp.pyc
8.08
KB
-rw-r--r--
2014-09-17 20:43
cgiapp.pyo
7.87
KB
-rw-r--r--
2014-09-17 20:43
cgitb_catcher.py
3.66
KB
-rw-r--r--
2011-12-21 20:42
cgitb_catcher.pyc
3.64
KB
-rw-r--r--
2014-09-17 20:43
cgitb_catcher.pyo
3.64
KB
-rw-r--r--
2014-09-17 20:43
config.py
4.21
KB
-rw-r--r--
2011-12-21 20:42
config.pyc
4.99
KB
-rw-r--r--
2014-09-17 20:43
config.pyo
4.99
KB
-rw-r--r--
2014-09-17 20:43
errordocument.py
13.45
KB
-rw-r--r--
2011-12-21 20:42
errordocument.pyc
12.47
KB
-rw-r--r--
2014-09-17 20:43
errordocument.pyo
12.47
KB
-rw-r--r--
2014-09-17 20:43
fileapp.py
13.29
KB
-rw-r--r--
2011-12-21 20:42
fileapp.pyc
12.6
KB
-rw-r--r--
2014-09-17 20:43
fileapp.pyo
12.48
KB
-rw-r--r--
2014-09-17 20:43
fixture.py
56.63
KB
-rw-r--r--
2014-09-17 20:43
fixture.py.stdlib
56.71
KB
-rw-r--r--
2011-12-21 20:42
fixture.pyc
57.42
KB
-rw-r--r--
2014-09-17 20:43
fixture.pyo
55.18
KB
-rw-r--r--
2014-09-17 20:43
flup_session.py
3.85
KB
-rw-r--r--
2011-12-21 20:42
flup_session.pyc
3.77
KB
-rw-r--r--
2014-09-17 20:43
flup_session.pyo
3.77
KB
-rw-r--r--
2014-09-17 20:43
gzipper.py
3.61
KB
-rw-r--r--
2011-12-21 20:42
gzipper.pyc
4.28
KB
-rw-r--r--
2014-09-17 20:43
gzipper.pyo
4.28
KB
-rw-r--r--
2014-09-17 20:43
httpexceptions.py
23.65
KB
-rw-r--r--
2011-12-21 20:42
httpexceptions.pyc
26.94
KB
-rw-r--r--
2014-09-17 20:43
httpexceptions.pyo
26.2
KB
-rw-r--r--
2014-09-17 20:43
httpheaders.py
42.08
KB
-rw-r--r--
2011-12-21 20:42
httpheaders.pyc
43.1
KB
-rw-r--r--
2014-09-17 20:43
httpheaders.pyo
41.88
KB
-rw-r--r--
2014-09-17 20:43
httpserver.py
54.36
KB
-rw-r--r--
2011-12-21 20:42
httpserver.pyc
46.26
KB
-rw-r--r--
2014-09-17 20:43
httpserver.pyo
45.61
KB
-rw-r--r--
2014-09-17 20:43
lint.py
14.65
KB
-rw-r--r--
2011-12-21 20:42
lint.pyc
16.94
KB
-rw-r--r--
2014-09-17 20:43
lint.pyo
12.91
KB
-rw-r--r--
2014-09-17 20:43
modpython.py
7.79
KB
-rw-r--r--
2011-12-21 20:42
modpython.pyc
8.44
KB
-rw-r--r--
2014-09-17 20:43
modpython.pyo
8.44
KB
-rw-r--r--
2014-09-17 20:43
pony.py
2.23
KB
-rw-r--r--
2011-12-21 20:42
pony.pyc
2.62
KB
-rw-r--r--
2014-09-17 20:43
pony.pyo
2.62
KB
-rw-r--r--
2014-09-17 20:43
progress.py
7.97
KB
-rw-r--r--
2011-12-21 20:42
progress.pyc
8.93
KB
-rw-r--r--
2014-09-17 20:43
progress.pyo
8.93
KB
-rw-r--r--
2014-09-17 20:43
proxy.py
9.94
KB
-rw-r--r--
2011-12-21 20:42
proxy.pyc
8.33
KB
-rw-r--r--
2014-09-17 20:43
proxy.pyo
8.33
KB
-rw-r--r--
2014-09-17 20:43
recursive.py
14.32
KB
-rw-r--r--
2011-12-21 20:42
recursive.pyc
17.1
KB
-rw-r--r--
2014-09-17 20:43
recursive.pyo
16.79
KB
-rw-r--r--
2014-09-17 20:43
registry.py
21.67
KB
-rw-r--r--
2011-12-21 20:42
registry.pyc
21.76
KB
-rw-r--r--
2014-09-17 20:43
registry.pyo
21.76
KB
-rw-r--r--
2014-09-17 20:43
reloader.py
5.87
KB
-rw-r--r--
2011-12-21 20:42
reloader.pyc
5.82
KB
-rw-r--r--
2014-09-17 20:43
reloader.pyo
5.82
KB
-rw-r--r--
2014-09-17 20:43
request.py
13.81
KB
-rw-r--r--
2011-12-21 20:42
request.pyc
13.33
KB
-rw-r--r--
2014-09-17 20:43
request.pyo
13.24
KB
-rw-r--r--
2014-09-17 20:43
response.py
7.48
KB
-rw-r--r--
2011-12-21 20:42
response.pyc
8.9
KB
-rw-r--r--
2014-09-17 20:43
response.pyo
8.82
KB
-rw-r--r--
2014-09-17 20:43
session.py
11.07
KB
-rw-r--r--
2011-12-21 20:42
session.pyc
11.34
KB
-rw-r--r--
2014-09-17 20:43
session.pyo
11.34
KB
-rw-r--r--
2014-09-17 20:43
transaction.py
4.26
KB
-rw-r--r--
2011-12-21 20:42
transaction.pyc
5.49
KB
-rw-r--r--
2014-09-17 20:43
transaction.pyo
5.49
KB
-rw-r--r--
2014-09-17 20:43
translogger.py
4.7
KB
-rw-r--r--
2011-12-21 20:42
translogger.pyc
4.15
KB
-rw-r--r--
2014-09-17 20:43
translogger.pyo
4.15
KB
-rw-r--r--
2014-09-17 20:43
url.py
14.28
KB
-rw-r--r--
2011-12-21 20:42
url.pyc
17.29
KB
-rw-r--r--
2014-09-17 20:43
url.pyo
17.29
KB
-rw-r--r--
2014-09-17 20:43
urlmap.py
8.82
KB
-rw-r--r--
2011-12-21 20:42
urlmap.pyc
9.15
KB
-rw-r--r--
2014-09-17 20:43
urlmap.pyo
9.01
KB
-rw-r--r--
2014-09-17 20:43
urlparser.py
25.8
KB
-rw-r--r--
2011-12-21 20:42
urlparser.pyc
21.52
KB
-rw-r--r--
2014-09-17 20:43
urlparser.pyo
21.34
KB
-rw-r--r--
2014-09-17 20:43
wsgilib.py
19.66
KB
-rw-r--r--
2011-12-21 20:42
wsgilib.pyc
20.91
KB
-rw-r--r--
2014-09-17 20:43
wsgilib.pyo
20.86
KB
-rw-r--r--
2014-09-17 20:43
wsgiwrappers.py
21.65
KB
-rw-r--r--
2011-12-21 20:42
wsgiwrappers.pyc
23.21
KB
-rw-r--r--
2014-09-17 20:43
wsgiwrappers.pyo
23.21
KB
-rw-r--r--
2014-09-17 20:43
Save
Rename
# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php """ Application that runs a CGI script. """ import os import sys import subprocess import urllib try: import select except ImportError: select = None from paste.util import converters __all__ = ['CGIError', 'CGIApplication'] class CGIError(Exception): """ Raised when the CGI script can't be found or doesn't act like a proper CGI script. """ class CGIApplication(object): """ This object acts as a proxy to a CGI application. You pass in the script path (``script``), an optional path to search for the script (if the name isn't absolute) (``path``). If you don't give a path, then ``$PATH`` will be used. """ def __init__(self, global_conf, script, path=None, include_os_environ=True, query_string=None): if global_conf: raise NotImplemented( "global_conf is no longer supported for CGIApplication " "(use make_cgi_application); please pass None instead") self.script_filename = script if path is None: path = os.environ.get('PATH', '').split(':') self.path = path if '?' in script: assert query_string is None, ( "You cannot have '?' in your script name (%r) and also " "give a query_string (%r)" % (script, query_string)) script, query_string = script.split('?', 1) if os.path.abspath(script) != script: # relative path for path_dir in self.path: if os.path.exists(os.path.join(path_dir, script)): self.script = os.path.join(path_dir, script) break else: raise CGIError( "Script %r not found in path %r" % (script, self.path)) else: self.script = script self.include_os_environ = include_os_environ self.query_string = query_string def __call__(self, environ, start_response): if 'REQUEST_URI' not in environ: environ['REQUEST_URI'] = ( urllib.quote(environ.get('SCRIPT_NAME', '')) + urllib.quote(environ.get('PATH_INFO', ''))) if self.include_os_environ: cgi_environ = os.environ.copy() else: cgi_environ = {} for name in environ: # Should unicode values be encoded? if (name.upper() == name and isinstance(environ[name], str)): cgi_environ[name] = environ[name] if self.query_string is not None: old = cgi_environ.get('QUERY_STRING', '') if old: old += '&' cgi_environ['QUERY_STRING'] = old + self.query_string cgi_environ['SCRIPT_FILENAME'] = self.script proc = subprocess.Popen( [self.script], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=cgi_environ, cwd=os.path.dirname(self.script), ) writer = CGIWriter(environ, start_response) if select and sys.platform != 'win32': proc_communicate( proc, stdin=StdinReader.from_environ(environ), stdout=writer, stderr=environ['wsgi.errors']) else: stdout, stderr = proc.communicate(StdinReader.from_environ(environ).read()) if stderr: environ['wsgi.errors'].write(stderr) writer.write(stdout) if not writer.headers_finished: start_response(writer.status, writer.headers) return [] class CGIWriter(object): def __init__(self, environ, start_response): self.environ = environ self.start_response = start_response self.status = '200 OK' self.headers = [] self.headers_finished = False self.writer = None self.buffer = '' def write(self, data): if self.headers_finished: self.writer(data) return self.buffer += data while '\n' in self.buffer: if '\r\n' in self.buffer and self.buffer.find('\r\n') < self.buffer.find('\n'): line1, self.buffer = self.buffer.split('\r\n', 1) else: line1, self.buffer = self.buffer.split('\n', 1) if not line1: self.headers_finished = True self.writer = self.start_response( self.status, self.headers) self.writer(self.buffer) del self.buffer del self.headers del self.status break elif ':' not in line1: raise CGIError( "Bad header line: %r" % line1) else: name, value = line1.split(':', 1) value = value.lstrip() name = name.strip() if name.lower() == 'status': if ' ' not in value: # WSGI requires this space, sometimes CGI scripts don't set it: value = '%s General' % value self.status = value else: self.headers.append((name, value)) class StdinReader(object): def __init__(self, stdin, content_length): self.stdin = stdin self.content_length = content_length def from_environ(cls, environ): length = environ.get('CONTENT_LENGTH') if length: length = int(length) else: length = 0 return cls(environ['wsgi.input'], length) from_environ = classmethod(from_environ) def read(self, size=None): if not self.content_length: return '' if size is None: text = self.stdin.read(self.content_length) else: text = self.stdin.read(min(self.content_length, size)) self.content_length -= len(text) return text def proc_communicate(proc, stdin=None, stdout=None, stderr=None): """ Run the given process, piping input/output/errors to the given file-like objects (which need not be actual file objects, unlike the arguments passed to Popen). Wait for process to terminate. Note: this is taken from the posix version of subprocess.Popen.communicate, but made more general through the use of file-like objects. """ read_set = [] write_set = [] input_buffer = '' trans_nl = proc.universal_newlines and hasattr(open, 'newlines') if proc.stdin: # Flush stdio buffer. This might block, if the user has # been writing to .stdin in an uncontrolled fashion. proc.stdin.flush() if input: write_set.append(proc.stdin) else: proc.stdin.close() else: assert stdin is None if proc.stdout: read_set.append(proc.stdout) else: assert stdout is None if proc.stderr: read_set.append(proc.stderr) else: assert stderr is None while read_set or write_set: rlist, wlist, xlist = select.select(read_set, write_set, []) if proc.stdin in wlist: # When select has indicated that the file is writable, # we can write up to PIPE_BUF bytes without risk # blocking. POSIX defines PIPE_BUF >= 512 next, input_buffer = input_buffer, '' next_len = 512-len(next) if next_len: next += stdin.read(next_len) if not next: proc.stdin.close() write_set.remove(proc.stdin) else: bytes_written = os.write(proc.stdin.fileno(), next) if bytes_written < len(next): input_buffer = next[bytes_written:] if proc.stdout in rlist: data = os.read(proc.stdout.fileno(), 1024) if data == "": proc.stdout.close() read_set.remove(proc.stdout) if trans_nl: data = proc._translate_newlines(data) stdout.write(data) if proc.stderr in rlist: data = os.read(proc.stderr.fileno(), 1024) if data == "": proc.stderr.close() read_set.remove(proc.stderr) if trans_nl: data = proc._translate_newlines(data) stderr.write(data) try: proc.wait() except OSError, e: if e.errno != 10: raise def make_cgi_application(global_conf, script, path=None, include_os_environ=None, query_string=None): """ Paste Deploy interface for :class:`CGIApplication` This object acts as a proxy to a CGI application. You pass in the script path (``script``), an optional path to search for the script (if the name isn't absolute) (``path``). If you don't give a path, then ``$PATH`` will be used. """ if path is None: path = global_conf.get('path') or global_conf.get('PATH') include_os_environ = converters.asbool(include_os_environ) return CGIApplication( None, script, path=path, include_os_environ=include_os_environ, query_string=query_string)