⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.67
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib64
/
python3.9
/
asyncio
/
__pycache__
/
View File Name :
sslproto.cpython-39.opt-1.pyc
a DOgCk @ s d dl Z d dlZzd dlZW n ey2 dZY n0 ddlmZ ddlmZ ddlmZ ddlm Z dd Z d Zd ZdZ dZG d d deZG dd dejejZG dd dejZdS ) N ) constants) protocols) transports)loggerc C s" | rt dt }|sd|_|S )Nz(Server side SSL needs a valid SSLContextF) ValueErrorsslZcreate_default_contextZcheck_hostname)server_sideserver_hostname sslcontext r (/usr/lib64/python3.9/asyncio/sslproto.py_create_transport_context s r Z UNWRAPPEDZDO_HANDSHAKEZWRAPPEDZSHUTDOWNc @ s~ e Zd ZdZdZdddZedd Zedd Zed d Z edd Z dddZdddZdd Z dddZdddZdS )_SSLPipea An SSL "Pipe". An SSL pipe allows you to communicate with an SSL/TLS protocol instance through memory buffers. It can be used to implement a security layer for an existing connection where you don't have access to the connection's file descriptor, or for some reason you don't want to use it. An SSL pipe can be in "wrapped" and "unwrapped" mode. In unwrapped mode, data is passed through untransformed. In wrapped mode, application level data is encrypted to SSL record level data and vice versa. The SSL record level is the lowest level in the SSL protocol suite and is what travels as-is over the wire. An SslPipe initially is in "unwrapped" mode. To start SSL, call do_handshake(). To shutdown SSL again, call unwrap(). i Nc C sH || _ || _|| _t| _t | _t | _d| _ d| _ d| _d| _dS )a The *context* argument specifies the ssl.SSLContext to use. The *server_side* argument indicates whether this is a server side or client side transport. The optional *server_hostname* argument can be used to specify the hostname you are connecting to. You may only specify this parameter if the _ssl module supports Server Name Indication (SNI). NF) _context_server_side_server_hostname _UNWRAPPED_stater Z MemoryBIO _incoming _outgoing_sslobj _need_ssldata _handshake_cb_shutdown_cb)selfcontextr r r r r __init__7 s z_SSLPipe.__init__c C s | j S )z*The SSL context passed to the constructor.)r r r r r r M s z_SSLPipe.contextc C s | j S )z^The internal ssl.SSLObject instance. Return None if the pipe is not wrapped. )r r r r r ssl_objectR s z_SSLPipe.ssl_objectc C s | j S )zgWhether more record level data is needed to complete a handshake that is currently in progress.)r r r r r need_ssldataZ s z_SSLPipe.need_ssldatac C s | j tkS )zj Whether a security layer is currently in effect. Return False during handshake. )r _WRAPPEDr r r r wrapped` s z_SSLPipe.wrappedc C sR | j tkrtd| jj| j| j| j| jd| _ t | _ || _| jddd\}}|S )aL Start the SSL handshake. Return a list of ssldata. A ssldata element is a list of buffers The optional *callback* argument can be used to install a callback that will be called when the handshake is complete. The callback will be called with None if successful, else an exception instance. z"handshake in progress or completed)r r T)only_handshake) r r RuntimeErrorr Zwrap_bior r r r r _DO_HANDSHAKEr feed_ssldatar callbackssldataappdatar r r do_handshakei s z_SSLPipe.do_handshakec C sB | j tkrtd| j tkr$tdt| _ || _| d\}}|S )a1 Start the SSL shutdown sequence. Return a list of ssldata. A ssldata element is a list of buffers The optional *callback* argument can be used to install a callback that will be called when the shutdown is complete. The callback will be called without arguments. zno security layer presentzshutdown in progressr# )r r r% _SHUTDOWNr r' r( r r r shutdown~ s z_SSLPipe.shutdownc C s | j | d\}}dS )zSend a potentially "ragged" EOF. This method will raise an SSL_ERROR_EOF exception if the EOF is unexpected. r# N)r Z write_eofr' )r r* r+ r r r feed_eof s z_SSLPipe.feed_eofFc C s | j tkr"|r|g}ng }g |fS d| _|r8| j| g }g }z| j tkrz| j t| _ | j rl| d |rz||fW S | j tkr| j | j}|| |sqqnJ| j t kr| j d| _t| _ | jr| n| j tkr|| j W n| tjtjfyn } zZt|dd}|tjtjtjfvrN| j tkrL| j rL| | |tjk| _W Y d}~n d}~0 0 | jjr|| j ||fS )a Feed SSL record level data into the pipe. The data must be a bytes instance. It is OK to send an empty bytes instance. This can be used to get ssldata for a handshake initiated by this endpoint. Return a (ssldata, appdata) tuple. The ssldata element is a list of buffers containing SSL data that needs to be sent to the remote SSL. The appdata element is a list of buffers containing plaintext data that needs to be forwarded to the application. The appdata list may contain an empty buffer indicating an SSL "close_notify" alert. This alert must be acknowledged by calling shutdown(). FNerrno)r r r r writer&