SILENT KILLERPanel

Current Path: > > opt > alt > python37 > lib64 > python3.7 > wsgiref > __pycache__ >


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python37/lib64/python3.7/wsgiref/__pycache__/

NameTypeSizeLast ModifiedActions
__init__.cpython-37.opt-1.pyc File 735 bytes April 17 2024 17:36:13.
__init__.cpython-37.opt-2.pyc File 142 bytes April 17 2024 17:35:57.
__init__.cpython-37.pyc File 735 bytes April 17 2024 17:36:18.
handlers.cpython-37.opt-1.pyc File 15847 bytes April 17 2024 17:36:13.
handlers.cpython-37.opt-2.pyc File 10413 bytes April 17 2024 17:35:57.
handlers.cpython-37.pyc File 16287 bytes April 17 2024 17:36:18.
headers.cpython-37.opt-1.pyc File 7699 bytes April 17 2024 17:36:13.
headers.cpython-37.opt-2.pyc File 4458 bytes April 17 2024 17:35:57.
headers.cpython-37.pyc File 7756 bytes April 17 2024 17:36:18.
simple_server.cpython-37.opt-1.pyc File 5202 bytes April 17 2024 17:36:13.
simple_server.cpython-37.opt-2.pyc File 4425 bytes April 17 2024 17:35:57.
simple_server.cpython-37.pyc File 5202 bytes April 17 2024 17:36:18.
util.cpython-37.opt-1.pyc File 5177 bytes April 17 2024 17:36:13.
util.cpython-37.opt-2.pyc File 3604 bytes April 17 2024 17:35:57.
util.cpython-37.pyc File 5177 bytes April 17 2024 17:36:18.
validate.cpython-37.opt-1.pyc File 14673 bytes April 17 2024 17:36:13.
validate.cpython-37.opt-2.pyc File 11040 bytes April 17 2024 17:35:57.
validate.cpython-37.pyc File 14673 bytes April 17 2024 17:36:18.

Reading File: //opt/alt/python37/lib64/python3.7/wsgiref/__pycache__//simple_server.cpython-37.pyc

B

� f�	@s dZddlmZmZddlZddlZddlmZddl	m
Z
dZddd	d
gZdeZ
e
�dej��dZe
d
eZGdd�de�ZGdd�de�ZGdd�de�Zdd	�Zeefdd
�Zedk�redde��BZej��Zededdedd�ddlZe�d�e��WdQRXdS)a!BaseHTTPServer that implements the Python WSGI protocol (PEP 3333)

This is both an example of how WSGI can be implemented, and a basis for running
simple web applications on a local machine, such as might be done when testing
or debugging an application.  It has not been reviewed for security issues,
however, and we strongly recommend that you use a "real" web server for
production use.

For example usage, see the 'if __name__=="__main__"' block at the end of the
module.  See also the BaseHTTPServer module docs for other API information.
�)�BaseHTTPRequestHandler�
HTTPServerN)�
SimpleHandler)�python_implementationz0.2�
WSGIServer�WSGIRequestHandler�demo_app�make_serverzWSGIServer/�/� c@seZdZeZdd�ZdS)�
ServerHandlerc	Cs4z"|j�|j�dd�d|j�Wdt�|�XdS)Nr�r)�request_handlerZlog_requestZstatus�splitZ
bytes_sentr�close)�self�r�:/opt/alt/python37/lib64/python3.7/wsgiref/simple_server.pyr szServerHandler.closeN)�__name__�
__module__�__qualname__�software_versionZserver_softwarerrrrrrsrc@s4eZdZdZdZdd�Zdd�Zdd�Zd	d
�ZdS)rz7BaseHTTPServer that implements the Python WSGI protocolNcCst�|�|��dS)z.Override server_bind to store the server name.N)r�server_bind�
setup_environ)rrrrr0s
zWSGIServer.server_bindcCsFi}|_|j|d<d|d<t|j�|d<d|d<d|d<d|d<dS)	NZSERVER_NAMEzCGI/1.1ZGATEWAY_INTERFACEZSERVER_PORT��REMOTE_HOST�CONTENT_LENGTHZSCRIPT_NAME)�base_environZserver_name�strZserver_port)r�envrrrr5s

zWSGIServer.setup_environcCs|jS)N)�application)rrrr�get_app?szWSGIServer.get_appcCs
||_dS)N)r )rr rrr�set_appBszWSGIServer.set_app)	rrr�__doc__r rrr!r"rrrrr*s
c@s,eZdZdeZdd�Zdd�Zdd�ZdS)	rzWSGIServer/cCsT|jj��}|j|d<|j|d<|j|d<d|jkrH|j�dd�\}}n|jd}}tj	�
|d�|d<||d	<|��}||jd
kr�||d<|jd
|d<|j
�d
�dkr�|j
��|d<n|j
d
|d<|j
�d�}|r�||d<xn|j
��D]`\}}|�dd���}|��}||k�rq�d||k�r@|d|d|7<q�||d|<q�W|S)NZSERVER_PROTOCOLZSERVER_SOFTWAREZREQUEST_METHOD�?r
rz
iso-8859-1Z	PATH_INFOZQUERY_STRINGrrZREMOTE_ADDRzcontent-typeZCONTENT_TYPEzcontent-lengthr�-�_ZHTTP_�,)�serverr�copy�request_version�server_version�command�pathr�urllib�parseZunquoteZaddress_stringZclient_addressZheaders�getZget_content_type�items�replace�upper�strip)rrr-Zquery�host�length�k�vrrr�get_environKs8




zWSGIRequestHandler.get_environcCstjS)N)�sys�stderr)rrrr�
get_stderrpszWSGIRequestHandler.get_stderrcCs||j�d�|_t|j�dkr<d|_d|_d|_|�d�dS|��sHdSt	|j|j
|��|���}||_
|�|j���dS)zHandle a single HTTP requestiiri�N)Zrfile�readlineZraw_requestline�lenZrequestliner*r,Z
send_errorZ
parse_requestrZwfiler<r9r�runr(r!)rZhandlerrrr�handless
zWSGIRequestHandler.handleN)rrr�__version__r+r9r<r@rrrrrGs%cCsvddlm}|�}td|d�t|d�t|���}x$|D]\}}t|dt|�|d�q:W|ddg�|���d�gS)	Nr)�StringIOzHello world!)�file�=z200 OK)zContent-Typeztext/plain; charset=utf-8zutf-8)�iorB�print�sortedr1�repr�getvalue�encode)�environZstart_responserB�stdout�hr7r8rrrr�s
cCs|||f|�}|�|�|S)zACreate a new WSGI server listening on `host` and `port` for `app`)r")r5�portZappZserver_classZ
handler_classr(rrrr	�s
�__main__ri@zServing HTTP onrNr
z...zhttp://localhost:8000/xyz?abc) r#Zhttp.serverrrr:Zurllib.parser.Zwsgiref.handlersr�platformrrA�__all__r+�versionr�sys_versionrrrrrr	rZhttpdZsocketZgetsocknameZsarFZ
webbrowser�openZhandle_requestrrrr�<module>s,B





SILENT KILLER Tool