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.142.124.64
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
# -*- test-case-name: twisted.web.test.test_html -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """I hold HTML generation helpers. """ from html import escape from io import StringIO from incremental import Version from twisted.python import log from twisted.python.deprecate import deprecated @deprecated(Version("Twisted", 15, 3, 0), replacement="twisted.web.template") def PRE(text): "Wrap <pre> tags around some text and HTML-escape it." return "<pre>" + escape(text) + "</pre>" @deprecated(Version("Twisted", 15, 3, 0), replacement="twisted.web.template") def UL(lst): io = StringIO() io.write("<ul>\n") for el in lst: io.write("<li> %s</li>\n" % el) io.write("</ul>") return io.getvalue() @deprecated(Version("Twisted", 15, 3, 0), replacement="twisted.web.template") def linkList(lst): io = StringIO() io.write("<ul>\n") for hr, el in lst: io.write(f'<li> <a href="{hr}">{el}</a></li>\n') io.write("</ul>") return io.getvalue() @deprecated(Version("Twisted", 15, 3, 0), replacement="twisted.web.template") def output(func, *args, **kw): """output(func, *args, **kw) -> html string Either return the result of a function (which presumably returns an HTML-legal string) or a sparse HTMLized error message and a message in the server log. """ try: return func(*args, **kw) except BaseException: log.msg(f"Error calling {func!r}:") log.err() return PRE("An error occurred.")