403Webshell
Server IP : 35.236.43.222  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User : deploy ( 1002)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/reportbug/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/reportbug/__pycache__/urlutils.cpython-39.pyc
a

K56a'�@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlmZddlmZdedZdd�ZGd	d
�d
ejj�Zeejd�r�Gdd
�d
ejj�ZGdd�dejj�Zdaddd�Zddd�Zdd�Z dS)�N�)�	NoNetwork)�VERSION_NUMBERz
reportbug/z	 (Debian)cCs�|���d�}|dvr�ddlm}|��}|dkrJddl}||�|��}nddl}|�ddd	||��}t	j
�|d��}t�
d
�}t|�����D]}	|�|	�s�|��|	||	<q�t�|||���}
t|d�r�|j|
_t|d�r�|j|
_|
S|S)
z#gunzip or deflate a compressed pagezContent-Encoding)�gzipzx-gzip�deflater)�StringIOrN��rb�	z(?i)content-encoding:�code�msg)�info�get�ior�read�zlib�
decompressrZGzipFile�http�clientZHTTPMessage�re�compile�list�keys�match�urllibZ
addinfourlZgeturl�hasattrrr)�page�encodingrZcontentr�fpr�headersZceheader�hZnewpage�r!�4/usr/lib/python3/dist-packages/reportbug/urlutils.py�decode-s*



r#c@seZdZdZdd�ZdS)�HttpWithGzipHandler�support gzip encodingcCsttjj�||��S�N)r#r�request�HTTPHandler�	http_open��selfZreqr!r!r"r)NszHttpWithGzipHandler.http_openN)�__name__�
__module__�__qualname__�__doc__r)r!r!r!r"r$Ksr$ZHTTPSc@seZdZdZdd�ZdS)�HttpsWithGzipHandlerr%cCsttjj�||��Sr&)r#rr'�HTTPSHandler�
https_openr*r!r!r"r2VszHttpsWithGzipHandler.https_openN)r,r-r.r/r2r!r!r!r"r0Ssr0c@seZdZdd�ZdS)�handlepasswdcCsbtjj�|||�\}}|dur&||fStd||f�}t�d|||f�}|�||||�||fS)NzEnter username for %s at %s: z#Enter password for %s in %s at %s: )rr'�HTTPPasswordMgrWithDefaultRealm�find_user_password�input�getpassZadd_password)r+ZrealmZauthurl�userZpasswordr!r!r"r5[s�zhandlepasswd.find_user_passwordN)r,r-r.r5r!r!r!r"r3Zsr3�<cCs,|stj��}tdd�}tj||||d�jS)z�Fetch an URL.

    :param url:

        The URL to open, e.g. ``"http://example.com/"``.

    :returns:

        The contents returned by invoking GET on the given URL, as a
        Unicode string, e.g. ``u"Hello"``.

    z)gzip;q=1.0, deflate;q=0.9, identity;q=0.5)z
User-AgentzAccept-Encoding)r�proxies�timeout)rr'�
getproxies�UA_STR�requestsr�text)�urlr:r;�datarr!r!r"�urlopenjs
�rBc

Csnt�|�tj��}|r(||d<||d<zt|||�}W�n.tjjy|}z&|jdvrfWYd}~dS�WYd}~n�d}~0tj	tjtjj
fy�}zt�WYd}~n�d}~0t�y}z:|r�|ddkr�|ddkr�WYd}~dSt�WYd}~npd}~0t
�y&td	tjd
�t�YnDtjj�yh}z&|jj}dt�}	t|	��WYd}~n
d}~00|S)a�:param url:

        The URL to open, e.g. ``"http://example.org/"``.

    :param http_proxy:

        The proxy to use for the http protocol.  By default, use the
        :func:`urllib.request.getproxies()` settings.

    :param timeout:

        Socket timeout, in seconds.

    :returns:

        The contents returned by invoking GET on the given URL, as a
        Unicode string, e.g. ``u"Hello"``.

    rZhttps)�i�i�Nrz
http errorrrCz@http_proxy environment variable must be formatted as a valid URI)�filez.Failed to open %(url)r (%(exc_name)s: %(exc)s))�socketZsetdefaulttimeoutrr'r<rB�errorZ	HTTPErrorrZgaierrorZURLErrorr�IOError�	TypeError�print�sys�stderrrrZ
HTTPException�	__class__r,�vars)
r@Z
http_proxyr;r:r�xrA�excZexc_name�messager!r!r"�open_url�s2



rQcCs<t�d�s&dt�|�}t�|�dStr8t�|�dSdS)Nz#command -v xdg-open >/dev/null 2>&1z	xdg-open )�os�system�shlexZquote�
webbrowser�open)r@�cmdr!r!r"�launch_browser�s


rX)Nr9N)Nr9)!Zhttp.clientrZurllib.requestrZurllib.parseZurllib.errorr7rrErTrRrJrUr>�
exceptionsr�__init__rr=r#r'r(r$rrr1r0r4r3Z_openerrBrQrXr!r!r!r"�<module>s,

/
5

Youez - 2016 - github.com/yon3zu
LinuXploit