Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.1.1 & Your IP : 3.132.213.245
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
twisted /
web /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
_auth
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
test
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
__init__.py
384
B
-rw-r--r--
2022-02-07 13:12
_element.py
5.8
KB
-rw-r--r--
2022-02-07 13:12
_flatten.py
16.2
KB
-rw-r--r--
2022-02-07 13:12
_http2.py
47.62
KB
-rw-r--r--
2022-02-07 13:12
_newclient.py
62.33
KB
-rw-r--r--
2022-02-07 13:12
_responses.py
2.93
KB
-rw-r--r--
2022-02-07 13:12
_stan.py
10.71
KB
-rw-r--r--
2022-02-07 13:12
_template_util.py
30.76
KB
-rw-r--r--
2024-11-22 17:49
client.py
56.61
KB
-rw-r--r--
2022-02-07 13:12
demo.py
516
B
-rw-r--r--
2022-02-07 13:12
distrib.py
11.58
KB
-rw-r--r--
2022-02-07 13:12
domhelpers.py
8.6
KB
-rw-r--r--
2022-02-07 13:12
error.py
12.72
KB
-rw-r--r--
2022-02-07 13:12
guard.py
587
B
-rw-r--r--
2022-02-07 13:12
html.py
1.51
KB
-rw-r--r--
2022-02-07 13:12
http.py
109.73
KB
-rw-r--r--
2024-11-22 17:49
http_headers.py
8.47
KB
-rw-r--r--
2022-02-07 13:12
iweb.py
27.07
KB
-rw-r--r--
2022-02-07 13:12
microdom.py
36.09
KB
-rw-r--r--
2022-02-07 13:12
proxy.py
9.64
KB
-rw-r--r--
2022-02-07 13:12
resource.py
13.25
KB
-rw-r--r--
2022-02-07 13:12
rewrite.py
1.82
KB
-rw-r--r--
2022-02-07 13:12
script.py
5.57
KB
-rw-r--r--
2022-02-07 13:12
server.py
28.82
KB
-rw-r--r--
2022-02-07 13:12
soap.py
5.11
KB
-rw-r--r--
2022-02-07 13:12
static.py
36.41
KB
-rw-r--r--
2022-02-07 13:12
sux.py
20.39
KB
-rw-r--r--
2022-02-07 13:12
tap.py
10.02
KB
-rw-r--r--
2022-02-07 13:12
template.py
1.27
KB
-rw-r--r--
2022-02-07 13:12
twcgi.py
11.68
KB
-rw-r--r--
2022-02-07 13:12
util.py
749
B
-rw-r--r--
2022-02-07 13:12
vhost.py
4.4
KB
-rw-r--r--
2024-11-22 17:49
wsgi.py
21.45
KB
-rw-r--r--
2022-02-07 13:12
xmlrpc.py
20.65
KB
-rw-r--r--
2022-02-07 13:12
Save
Rename
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. # from twisted.web import resource class RewriterResource(resource.Resource): def __init__(self, orig, *rewriteRules): resource.Resource.__init__(self) self.resource = orig self.rewriteRules = list(rewriteRules) def _rewrite(self, request): for rewriteRule in self.rewriteRules: rewriteRule(request) def getChild(self, path, request): request.postpath.insert(0, path) request.prepath.pop() self._rewrite(request) path = request.postpath.pop(0) request.prepath.append(path) return self.resource.getChildWithDefault(path, request) def render(self, request): self._rewrite(request) return self.resource.render(request) def tildeToUsers(request): if request.postpath and request.postpath[0][:1] == "~": request.postpath[:1] = ["users", request.postpath[0][1:]] request.path = "/" + "/".join(request.prepath + request.postpath) def alias(aliasPath, sourcePath): """ I am not a very good aliaser. But I'm the best I can be. If I'm aliasing to a Resource that generates links, and it uses any parts of request.prepath to do so, the links will not be relative to the aliased path, but rather to the aliased-to path. That I can't alias static.File directory listings that nicely. However, I can still be useful, as many resources will play nice. """ sourcePath = sourcePath.split("/") aliasPath = aliasPath.split("/") def rewriter(request): if request.postpath[: len(aliasPath)] == aliasPath: after = request.postpath[len(aliasPath) :] request.postpath = sourcePath + after request.path = "/" + "/".join(request.prepath + request.postpath) return rewriter