⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib
/
python3.12
/
email
/
__pycache__
/
View File Name :
utils.cpython-312.pyc
CRh> d Z g dZddlZddlZddlZddlZddlZddlZddlZ ddl mZ ddl mZ ddl mZ ddl mZmZmZ ddlmZ d Zd Zd ZdZdZ ej2 d Z ej2 d Zd Zd Zd'dZd Zd Z dZ!dddZ"d Z#d Z$d Z%d Z&d(dZ'd)dZ(d*dZ)d Z*dddZ+d Z,d! Z-d*d"Z. ej2 d#ej^ Z0d$ Z1 d+d%Z2d*d&Z3y),zMiscellaneous utilities.)collapse_rfc2231_value decode_paramsdecode_rfc2231encode_rfc2231 formataddr formatdateformat_datetimegetaddresses make_msgid mktime_tz parseaddr parsedateparsedate_tzparsedate_to_datetimeunquote N)quote)AddressList)r )r r _parsedate_tz)Charsetz, z 'z[][\\()<>@,:;".]z[\\"]c D | j y# t $ r Y yw xY w)z;Return True if s may contain surrogate-escaped binary data.FT)encodeUnicodeEncodeError)ss "/usr/lib/python3.12/email/utils.py_has_surrogatesr 4 s% s c J | j dd }|j dd S )Nutf-8surrogateescapereplace)r decode)stringoriginal_bytess r _sanitizer% A s( ]]7,=>N )44 c V | \ }}|j d |rM |j d d}t j | rd}t j d| }|||d|dS |S # t $ r7 t |t rt | }|j | }|d|dcY S w xY w)a The inverse of parseaddr(), this takes a 2-tuple of the form (realname, email_address) and returns the string value suitable for an RFC 2822 From, To or Cc header. If the first element of pair is false, then the second element is returned unmodified. The optional charset is the character set that is used to encode realname in case realname is not ASCII safe. Can be an instance of str or a Charset-like object which has a header_encode method. Default is 'utf-8'. asciir "z\\\g<0>z <>) r specialsresearch escapesresubr isinstancestrr header_encode)paircharsetnameaddressquotesencoded_names r r r M s MD'NN7 CKK F &==T2D$*D&'BBN " 7'3'!'*"006L ,g66 7s A( (=B('B(c # K d}d}t | D ]! \ }}|r|d|z f d}|dk( rd}||f # |r|df y y w)Nr F\T) enumerate)addrposescapechs r _iter_escaped_charsr? n sb C FT?Rr ""F 4ZF)O # Dk s >A c d| vr| S d}d}g }t | D ]0 \ }}|dk( s||}||k7 r|j | || |dz }d}2 |t | k r|j | |d dj | S )z Strip real names between quotes.r) r N r )r? appendlenjoin)r; startopen_posresultr<