Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 18.118.95.74
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
snap /
core24 /
888 /
usr /
lib /
python3.12 /
__pycache__ /
[ HOME SHELL ]
Name
Size
Permission
Action
__future__.cpython-312.pyc
4.59
KB
-rw-r--r--
__hello__.cpython-312.pyc
870
B
-rw-r--r--
_aix_support.cpython-312.pyc
4.65
KB
-rw-r--r--
_collections_abc.cpython-312.p...
44.84
KB
-rw-r--r--
_compat_pickle.cpython-312.pyc
7.05
KB
-rw-r--r--
_compression.cpython-312.pyc
7.32
KB
-rw-r--r--
_distutils_system_mod.cpython-...
7.63
KB
-rw-r--r--
_markupbase.cpython-312.pyc
11.99
KB
-rw-r--r--
_osx_support.cpython-312.pyc
17.32
KB
-rw-r--r--
_py_abc.cpython-312.pyc
6.89
KB
-rw-r--r--
_pydatetime.cpython-312.pyc
91.99
KB
-rw-r--r--
_pydecimal.cpython-312.pyc
222.47
KB
-rw-r--r--
_pyio.cpython-312.pyc
107.68
KB
-rw-r--r--
_pylong.cpython-312.pyc
9.75
KB
-rw-r--r--
_sitebuiltins.cpython-312.pyc
4.65
KB
-rw-r--r--
_strptime.cpython-312.pyc
23.55
KB
-rw-r--r--
_sysconfigdata__linux_x86_64-l...
57.28
KB
-rw-r--r--
_sysconfigdata__x86_64-linux-g...
57.27
KB
-rw-r--r--
_threading_local.cpython-312.p...
8.1
KB
-rw-r--r--
_weakrefset.cpython-312.pyc
11.48
KB
-rw-r--r--
abc.cpython-312.pyc
7.87
KB
-rw-r--r--
aifc.cpython-312.pyc
41.86
KB
-rw-r--r--
antigravity.cpython-312.pyc
1003
B
-rw-r--r--
argparse.cpython-312.pyc
99.3
KB
-rw-r--r--
ast.cpython-312.pyc
97.93
KB
-rw-r--r--
base64.cpython-312.pyc
23.84
KB
-rw-r--r--
bdb.cpython-312.pyc
36.48
KB
-rw-r--r--
bisect.cpython-312.pyc
3.56
KB
-rw-r--r--
bz2.cpython-312.pyc
14.78
KB
-rw-r--r--
cProfile.cpython-312.pyc
8.39
KB
-rw-r--r--
calendar.cpython-312.pyc
38.69
KB
-rw-r--r--
cgi.cpython-312.pyc
39.29
KB
-rw-r--r--
cgitb.cpython-312.pyc
16.93
KB
-rw-r--r--
chunk.cpython-312.pyc
7.14
KB
-rw-r--r--
cmd.cpython-312.pyc
18.18
KB
-rw-r--r--
code.cpython-312.pyc
12.75
KB
-rw-r--r--
codecs.cpython-312.pyc
41.28
KB
-rw-r--r--
codeop.cpython-312.pyc
6.75
KB
-rw-r--r--
colorsys.cpython-312.pyc
4.53
KB
-rw-r--r--
compileall.cpython-312.pyc
20.02
KB
-rw-r--r--
configparser.cpython-312.pyc
62.09
KB
-rw-r--r--
contextlib.cpython-312.pyc
29.66
KB
-rw-r--r--
contextvars.cpython-312.pyc
261
B
-rw-r--r--
copy.cpython-312.pyc
9.57
KB
-rw-r--r--
copyreg.cpython-312.pyc
7.24
KB
-rw-r--r--
crypt.cpython-312.pyc
5.24
KB
-rw-r--r--
csv.cpython-312.pyc
17.37
KB
-rw-r--r--
dataclasses.cpython-312.pyc
43.63
KB
-rw-r--r--
datetime.cpython-312.pyc
409
B
-rw-r--r--
decimal.cpython-312.pyc
406
B
-rw-r--r--
difflib.cpython-312.pyc
73.73
KB
-rw-r--r--
dis.cpython-312.pyc
33.75
KB
-rw-r--r--
doctest.cpython-312.pyc
103.21
KB
-rw-r--r--
enum.cpython-312.pyc
78.82
KB
-rw-r--r--
filecmp.cpython-312.pyc
14.32
KB
-rw-r--r--
fileinput.cpython-312.pyc
19.8
KB
-rw-r--r--
fnmatch.cpython-312.pyc
6.34
KB
-rw-r--r--
fractions.cpython-312.pyc
35.81
KB
-rw-r--r--
ftplib.cpython-312.pyc
41.64
KB
-rw-r--r--
functools.cpython-312.pyc
39.56
KB
-rw-r--r--
genericpath.cpython-312.pyc
6.05
KB
-rw-r--r--
getopt.cpython-312.pyc
8.17
KB
-rw-r--r--
getpass.cpython-312.pyc
6.69
KB
-rw-r--r--
gettext.cpython-312.pyc
21.63
KB
-rw-r--r--
glob.cpython-312.pyc
9.61
KB
-rw-r--r--
graphlib.cpython-312.pyc
10.08
KB
-rw-r--r--
gzip.cpython-312.pyc
31.26
KB
-rw-r--r--
hashlib.cpython-312.pyc
7.9
KB
-rw-r--r--
heapq.cpython-312.pyc
17.54
KB
-rw-r--r--
hmac.cpython-312.pyc
10.45
KB
-rw-r--r--
imaplib.cpython-312.pyc
61.42
KB
-rw-r--r--
imghdr.cpython-312.pyc
6.78
KB
-rw-r--r--
inspect.cpython-312.pyc
130.32
KB
-rw-r--r--
io.cpython-312.pyc
4.04
KB
-rw-r--r--
ipaddress.cpython-312.pyc
88.63
KB
-rw-r--r--
keyword.cpython-312.pyc
1.02
KB
-rw-r--r--
linecache.cpython-312.pyc
6.25
KB
-rw-r--r--
locale.cpython-312.pyc
58.14
KB
-rw-r--r--
lzma.cpython-312.pyc
15.48
KB
-rw-r--r--
mailbox.cpython-312.pyc
109
KB
-rw-r--r--
mailcap.cpython-312.pyc
10.89
KB
-rw-r--r--
mimetypes.cpython-312.pyc
23.62
KB
-rw-r--r--
modulefinder.cpython-312.pyc
27.29
KB
-rw-r--r--
netrc.cpython-312.pyc
8.69
KB
-rw-r--r--
nntplib.cpython-312.pyc
43.89
KB
-rw-r--r--
ntpath.cpython-312.pyc
26.46
KB
-rw-r--r--
nturl2path.cpython-312.pyc
2.96
KB
-rw-r--r--
numbers.cpython-312.pyc
13.64
KB
-rw-r--r--
opcode.cpython-312.pyc
14.37
KB
-rw-r--r--
operator.cpython-312.pyc
16.96
KB
-rw-r--r--
optparse.cpython-312.pyc
65.96
KB
-rw-r--r--
os.cpython-312.pyc
42.46
KB
-rw-r--r--
pathlib.cpython-312.pyc
60.64
KB
-rw-r--r--
pdb.cpython-312.pyc
82.93
KB
-rw-r--r--
pickle.cpython-312.pyc
74.39
KB
-rw-r--r--
pickletools.cpython-312.pyc
79.23
KB
-rw-r--r--
pipes.cpython-312.pyc
10.66
KB
-rw-r--r--
pkgutil.cpython-312.pyc
19.49
KB
-rw-r--r--
platform.cpython-312.pyc
40.63
KB
-rw-r--r--
plistlib.cpython-312.pyc
40.11
KB
-rw-r--r--
poplib.cpython-312.pyc
18.01
KB
-rw-r--r--
posixpath.cpython-312.pyc
17.61
KB
-rw-r--r--
pprint.cpython-312.pyc
28.78
KB
-rw-r--r--
profile.cpython-312.pyc
22.01
KB
-rw-r--r--
pstats.cpython-312.pyc
37.03
KB
-rw-r--r--
pty.cpython-312.pyc
7.19
KB
-rw-r--r--
py_compile.cpython-312.pyc
9.84
KB
-rw-r--r--
pyclbr.cpython-312.pyc
14.54
KB
-rw-r--r--
pydoc.cpython-312.pyc
139.6
KB
-rw-r--r--
queue.cpython-312.pyc
14.39
KB
-rw-r--r--
quopri.cpython-312.pyc
9.1
KB
-rw-r--r--
random.cpython-312.pyc
32.38
KB
-rw-r--r--
reprlib.cpython-312.pyc
9.68
KB
-rw-r--r--
rlcompleter.cpython-312.pyc
8.09
KB
-rw-r--r--
runpy.cpython-312.pyc
14.05
KB
-rw-r--r--
sched.cpython-312.pyc
7.55
KB
-rw-r--r--
secrets.cpython-312.pyc
2.5
KB
-rw-r--r--
selectors.cpython-312.pyc
25.52
KB
-rw-r--r--
shelve.cpython-312.pyc
12.61
KB
-rw-r--r--
shlex.cpython-312.pyc
13.83
KB
-rw-r--r--
shutil.cpython-312.pyc
66.52
KB
-rw-r--r--
signal.cpython-312.pyc
4.34
KB
-rw-r--r--
site.cpython-312.pyc
28.38
KB
-rw-r--r--
sitecustomize.cpython-312.pyc
300
B
-rw-r--r--
smtplib.cpython-312.pyc
47.09
KB
-rw-r--r--
sndhdr.cpython-312.pyc
10.46
KB
-rw-r--r--
socket.cpython-312.pyc
40.84
KB
-rw-r--r--
socketserver.cpython-312.pyc
33.46
KB
-rw-r--r--
sre_compile.cpython-312.pyc
625
B
-rw-r--r--
sre_constants.cpython-312.pyc
628
B
-rw-r--r--
sre_parse.cpython-312.pyc
621
B
-rw-r--r--
ssl.cpython-312.pyc
61.53
KB
-rw-r--r--
stat.cpython-312.pyc
5.11
KB
-rw-r--r--
statistics.cpython-312.pyc
54.12
KB
-rw-r--r--
string.cpython-312.pyc
11.21
KB
-rw-r--r--
stringprep.cpython-312.pyc
24.57
KB
-rw-r--r--
struct.cpython-312.pyc
325
B
-rw-r--r--
subprocess.cpython-312.pyc
77.33
KB
-rw-r--r--
sunau.cpython-312.pyc
24.83
KB
-rw-r--r--
symtable.cpython-312.pyc
18.34
KB
-rw-r--r--
sysconfig.cpython-312.pyc
29.3
KB
-rw-r--r--
tabnanny.cpython-312.pyc
11.87
KB
-rw-r--r--
tarfile.cpython-312.pyc
117.12
KB
-rw-r--r--
telnetlib.cpython-312.pyc
27.76
KB
-rw-r--r--
tempfile.cpython-312.pyc
46.23
KB
-rw-r--r--
textwrap.cpython-312.pyc
17.86
KB
-rw-r--r--
this.cpython-312.pyc
1.38
KB
-rw-r--r--
threading.cpython-312.pyc
63.81
KB
-rw-r--r--
timeit.cpython-312.pyc
14.52
KB
-rw-r--r--
token.cpython-312.pyc
3.47
KB
-rw-r--r--
tokenize.cpython-312.pyc
24.19
KB
-rw-r--r--
trace.cpython-312.pyc
32.25
KB
-rw-r--r--
traceback.cpython-312.pyc
50.32
KB
-rw-r--r--
tracemalloc.cpython-312.pyc
26.28
KB
-rw-r--r--
tty.cpython-312.pyc
2.61
KB
-rw-r--r--
turtle.cpython-312.pyc
180.3
KB
-rw-r--r--
types.cpython-312.pyc
14.59
KB
-rw-r--r--
typing.cpython-312.pyc
138.54
KB
-rw-r--r--
uu.cpython-312.pyc
7.63
KB
-rw-r--r--
uuid.cpython-312.pyc
32.23
KB
-rw-r--r--
warnings.cpython-312.pyc
23.23
KB
-rw-r--r--
wave.cpython-312.pyc
31.33
KB
-rw-r--r--
weakref.cpython-312.pyc
30.61
KB
-rw-r--r--
webbrowser.cpython-312.pyc
25.74
KB
-rw-r--r--
xdrlib.cpython-312.pyc
11.56
KB
-rw-r--r--
zipapp.cpython-312.pyc
9.74
KB
-rw-r--r--
zipimport.cpython-312.pyc
23.9
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : socketserver.cpython-312.pyc
� �(�g�l � �\ � d Z dZddlZddlZddlZddlZddlZddlmZ ddl m Z g d�Z eed� rej g d�� eed � r/ej g d �� eed� rej ddg� eed � r ej Znej Z G d� d� Z G d� de� Z G d� de� Z eed� r G d� d� Z G d� de� Z G d� d� Z G d� d� Z eed� r G d� dee� Z G d� dee� Z G d � d!ee� Z G d"� d#ee� Z eed � rO G d$� d%e� Z G d&� d'e� Z G d(� d)ee� Z G d*� d+ee� Z eed� r G d,� dee� Z! G d-� dee� Z" G d.� d/� Z# G d0� d1e#� Z$ G d2� d3e� Z% G d4� d5e#� Z&y)6aq Generic socket server classes. This module tries to capture the various aspects of defining a server: For socket-based servers: - address family: - AF_INET{,6}: IP (Internet Protocol) sockets (default) - AF_UNIX: Unix domain sockets - others, e.g. AF_DECNET are conceivable (see <socket.h> - socket type: - SOCK_STREAM (reliable stream, e.g. TCP) - SOCK_DGRAM (datagrams, e.g. UDP) For request-based servers (including socket-based): - client address verification before further looking at the request (This is actually a hook for any processing that needs to look at the request before anything else, e.g. logging) - how to handle multiple requests: - synchronous (one request is handled at a time) - forking (each request is handled by a new process) - threading (each request is handled by a new thread) The classes in this module favor the server type that is simplest to write: a synchronous TCP/IP server. This is bad class design, but saves some typing. (There's also the issue that a deep class hierarchy slows down method lookups.) There are five classes in an inheritance diagram, four of which represent synchronous servers of four types: +------------+ | BaseServer | +------------+ | v +-----------+ +------------------+ | TCPServer |------->| UnixStreamServer | +-----------+ +------------------+ | v +-----------+ +--------------------+ | UDPServer |------->| UnixDatagramServer | +-----------+ +--------------------+ Note that UnixDatagramServer derives from UDPServer, not from UnixStreamServer -- the only difference between an IP and a Unix stream server is the address family, which is simply repeated in both unix server classes. Forking and threading versions of each type of server can be created using the ForkingMixIn and ThreadingMixIn mix-in classes. For instance, a threading UDP server class is created as follows: class ThreadingUDPServer(ThreadingMixIn, UDPServer): pass The Mix-in class must come first, since it overrides a method defined in UDPServer! Setting the various member variables also changes the behavior of the underlying server mechanism. To implement a service, you must derive a class from BaseRequestHandler and redefine its handle() method. You can then run various versions of the service by combining one of the server classes with your request handler class. The request handler class must be different for datagram or stream services. This can be hidden by using the request handler subclasses StreamRequestHandler or DatagramRequestHandler. Of course, you still have to use your head! For instance, it makes no sense to use a forking server if the service contains state in memory that can be modified by requests (since the modifications in the child process would never reach the initial state kept in the parent process and passed to each child). In this case, you can use a threading server, but you will probably have to use locks to avoid two requests that come in nearly simultaneous to apply conflicting changes to the server state. On the other hand, if you are building e.g. an HTTP server, where all data is stored externally (e.g. in the file system), a synchronous class will essentially render the service "deaf" while one request is being handled -- which may be for a very long time if a client is slow to read all the data it has requested. Here a threading or forking server is appropriate. In some cases, it may be appropriate to process part of a request synchronously, but to finish processing in a forked child depending on the request data. This can be implemented by using a synchronous server and doing an explicit fork in the request handler class handle() method. Another approach to handling multiple simultaneous requests in an environment that supports neither threads nor fork (or where these are too expensive or inappropriate for the service) is to maintain an explicit table of partially finished requests and to use a selector to decide which request to work on next (or whether to handle a new incoming request). This is particularly important for stream services where each client can potentially be connected for a long time (if threads or subprocesses cannot be used). Future work: - Standard classes for Sun RPC (which uses either UDP or TCP) - Standard mix-in classes to implement various authentication and encryption schemes XXX Open problems: - What to do with out-of-band data? BaseServer: - split generic "request" functionality out into BaseServer class. Copyright (C) 2000 Luke Kenneth Casson Leighton <lkcl@samba.org> example: read entries from a SQL database (requires overriding get_request() to return a table entry from the database). entry is processed by a RequestHandlerClass. z0.4� N)�BufferedIOBase)� monotonic) � BaseServer� TCPServer� UDPServer�ThreadingUDPServer�ThreadingTCPServer�BaseRequestHandler�StreamRequestHandler�DatagramRequestHandler�ThreadingMixIn�fork)�ForkingUDPServer�ForkingTCPServer�ForkingMixIn�AF_UNIX)�UnixStreamServer�UnixDatagramServer�ThreadingUnixStreamServer�ThreadingUnixDatagramServer�ForkingUnixStreamServer�ForkingUnixDatagramServer�PollSelectorc �| � e Zd ZdZdZd� Zd� Zdd�Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zd� Zd� Zd� Zd� Zd� Zy)r a� Base class for server classes. Methods for the caller: - __init__(server_address, RequestHandlerClass) - serve_forever(poll_interval=0.5) - shutdown() - handle_request() # if you do not use serve_forever() - fileno() -> int # for selector Methods that may be overridden: - server_bind() - server_activate() - get_request() -> request, client_address - handle_timeout() - verify_request(request, client_address) - server_close() - process_request(request, client_address) - shutdown_request(request) - close_request(request) - service_actions() - handle_error() Methods for derived classes: - finish_request(request, client_address) Class variables that may be overridden by derived classes or instances: - timeout - address_family - socket_type - allow_reuse_address - allow_reuse_port Instance variables: - RequestHandlerClass - socket Nc �` � || _ || _ t j � | _ d| _ y)�/Constructor. May be extended, do not override.FN)�server_address�RequestHandlerClass� threading�Event�_BaseServer__is_shut_down�_BaseServer__shutdown_request)�selfr r s �#/usr/lib/python3.12/socketserver.py�__init__zBaseServer.__init__� s) � �,���#6�� �'�o�o�/���"'��� c � � y�zSCalled by constructor to activate the server. May be overridden. N� �r# s r$ �server_activatezBaseServer.server_activate� � � � r&