Linux tsuru-no-tsurugi 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.0.18 & Your IP : 216.73.216.68
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 /
supervisor /
medusa /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2025-02-27 19:58
__init__.py
121
B
-rw-r--r--
2017-07-25 03:57
asynchat_25.py
10.57
KB
-rw-r--r--
2019-04-06 06:19
asyncore_25.py
16.4
KB
-rw-r--r--
2020-08-07 02:43
auth_handler.py
4.87
KB
-rw-r--r--
2019-04-06 06:19
counter.py
1.47
KB
-rw-r--r--
2019-04-06 06:19
default_handler.py
6.21
KB
-rw-r--r--
2019-04-06 06:19
filesys.py
11.1
KB
-rw-r--r--
2019-09-17 02:23
http_date.py
3.15
KB
-rw-r--r--
2019-04-06 06:19
http_server.py
28.86
KB
-rw-r--r--
2019-04-06 06:19
logger.py
6.91
KB
-rw-r--r--
2019-04-06 06:19
producers.py
8.76
KB
-rw-r--r--
2019-04-06 06:19
util.py
1.32
KB
-rw-r--r--
2019-09-17 02:23
xmlrpc_handler.py
3.06
KB
-rw-r--r--
2019-04-06 06:19
Save
Rename
# -*- Mode: Python -*- import re import time def concat (*args): return ''.join (args) def join (seq, field=' '): return field.join (seq) def group (s): return '(' + s + ')' short_days = ['sun','mon','tue','wed','thu','fri','sat'] long_days = ['sunday','monday','tuesday','wednesday','thursday','friday','saturday'] short_day_reg = group (join (short_days, '|')) long_day_reg = group (join (long_days, '|')) daymap = {} for i in range(7): daymap[short_days[i]] = i daymap[long_days[i]] = i hms_reg = join (3 * [group('[0-9][0-9]')], ':') months = ['jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec'] monmap = {} for i in range(12): monmap[months[i]] = i+1 months_reg = group (join (months, '|')) # From draft-ietf-http-v11-spec-07.txt/3.3.1 # Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123 # Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036 # Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format # rfc822 format rfc822_date = join ( [concat (short_day_reg,','), # day group('[0-9][0-9]?'), # date months_reg, # month group('[0-9]+'), # year hms_reg, # hour minute second 'gmt' ], ' ' ) rfc822_reg = re.compile (rfc822_date) def unpack_rfc822(m): g = m.group i = int return ( i(g(4)), # year monmap[g(3)], # month i(g(2)), # day i(g(5)), # hour i(g(6)), # minute i(g(7)), # second 0, 0, 0 ) # rfc850 format rfc850_date = join ( [concat (long_day_reg,','), join ( [group ('[0-9][0-9]?'), months_reg, group ('[0-9]+') ], '-' ), hms_reg, 'gmt' ], ' ' ) rfc850_reg = re.compile (rfc850_date) # they actually unpack the same way def unpack_rfc850(m): g = m.group i = int return ( i(g(4)), # year monmap[g(3)], # month i(g(2)), # day i(g(5)), # hour i(g(6)), # minute i(g(7)), # second 0, 0, 0 ) # parsedate.parsedate - ~700/sec. # parse_http_date - ~1333/sec. def build_http_date (when): return time.strftime ('%a, %d %b %Y %H:%M:%S GMT', time.gmtime(when)) def parse_http_date (d): d = d.lower() tz = time.timezone m = rfc850_reg.match (d) if m and m.end() == len(d): retval = int (time.mktime (unpack_rfc850(m)) - tz) else: m = rfc822_reg.match (d) if m and m.end() == len(d): retval = int (time.mktime (unpack_rfc822(m)) - tz) else: return 0 # Thanks to Craig Silverstein <csilvers@google.com> for pointing # out the DST discrepancy if time.daylight and time.localtime(retval)[-1] == 1: # DST correction retval += tz - time.altzone return retval