Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python2.7 /
dist-packages /
getmailcore /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
923
B
-rwxrwxrwx
2017-11-02 16:52
__init__.pyc
1.08
KB
-rwxrwxrwx
2020-08-24 23:52
_pop3ssl.py
5.8
KB
-rwxrwxrwx
2009-04-05 21:10
_pop3ssl.pyc
5.94
KB
-rwxrwxrwx
2020-08-24 23:52
_retrieverbases.py
70.04
KB
-rwxrwxrwx
2017-11-02 16:52
_retrieverbases.pyc
52.54
KB
-rwxrwxrwx
2020-08-24 23:52
baseclasses.py
14.33
KB
-rwxrwxrwx
2012-06-20 05:27
baseclasses.pyc
16.14
KB
-rwxrwxrwx
2020-08-24 23:52
compatibility.py
2.39
KB
-rwxrwxrwx
2012-06-21 21:24
compatibility.pyc
2.19
KB
-rwxrwxrwx
2020-08-24 23:52
constants.py
222
B
-rwxrwxrwx
2006-01-27 18:13
constants.pyc
348
B
-rwxrwxrwx
2020-08-24 23:52
destinations.py
43.11
KB
-rwxrwxrwx
2016-09-11 17:30
destinations.pyc
37.52
KB
-rwxrwxrwx
2020-08-24 23:52
exceptions.py
2.3
KB
-rwxrwxrwx
2012-06-20 05:27
exceptions.pyc
3.87
KB
-rwxrwxrwx
2020-08-24 23:52
filters.py
19.38
KB
-rwxrwxrwx
2016-10-22 18:46
filters.pyc
17.34
KB
-rwxrwxrwx
2020-08-24 23:52
imap_utf7.py
3.66
KB
-rwxrwxrwx
2012-05-26 20:10
imap_utf7.pyc
5.04
KB
-rwxrwxrwx
2020-08-24 23:52
logging.py
3.47
KB
-rwxrwxrwx
2008-02-17 18:10
logging.pyc
4.84
KB
-rwxrwxrwx
2020-08-24 23:52
message.py
7.69
KB
-rwxrwxrwx
2013-08-03 22:27
message.pyc
6.87
KB
-rwxrwxrwx
2020-08-24 23:52
retrievers.py
20.76
KB
-rwxrwxrwx
2016-10-22 18:46
retrievers.pyc
19.47
KB
-rwxrwxrwx
2020-08-24 23:52
utilities.py
22.36
KB
-rwxrwxrwx
2016-09-11 17:30
utilities.pyc
20.41
KB
-rwxrwxrwx
2020-08-24 23:52
Save
Rename
# -*- coding: utf-8 -*- """ Modified utf-7 encoding as used in IMAP v4r1 for encoding mailbox names. Code from here; couldn't find a license statement: http://www.koders.com/python/fid744B4E448B1689C0963942A7928FA049084FAC86.aspx From the RFC: 5.1.3. Mailbox International Naming Convention By convention, international mailbox names are specified using a modified version of the UTF-7 encoding described in [UTF-7]. The purpose of these modifications is to correct the following problems with UTF-7: 1) UTF-7 uses the "+" character for shifting; this conflicts with the common use of "+" in mailbox names, in particular USENET newsgroup names. 2) UTF-7's encoding is BASE64 which uses the "/" character; this conflicts with the use of "/" as a popular hierarchy delimiter. 3) UTF-7 prohibits the unencoded usage of "\"; this conflicts with the use of "\" as a popular hierarchy delimiter. 4) UTF-7 prohibits the unencoded usage of "~"; this conflicts with the use of "~" in some servers as a home directory indicator. 5) UTF-7 permits multiple alternate forms to represent the same string; in particular, printable US-ASCII chararacters can be represented in encoded form. In modified UTF-7, printable US-ASCII characters except for "&" represent themselves; that is, characters with octet values 0x20-0x25 and 0x27-0x7e. The character "&" (0x26) is represented by the two- octet sequence "&-". All other characters (octet values 0x00-0x1f, 0x7f-0xff, and all Unicode 16-bit octets) are represented in modified BASE64, with a further modification from [UTF-7] that "," is used instead of "/". Modified BASE64 MUST NOT be used to represent any printing US-ASCII character which can represent itself. "&" is used to shift to modified BASE64 and "-" to shift back to US- ASCII. All names start in US-ASCII, and MUST end in US-ASCII (that is, a name that ends with a Unicode 16-bit octet MUST end with a "- "). """ import binascii import codecs # # encoding # def modified_base64(s): s = s.encode('utf-16be') return binascii.b2a_base64(s).rstrip('\n=').replace('/', ',') def doB64(_in, r): if _in: r.append('&%s-' % modified_base64(''.join(_in))) del _in[:] def encoder(s): r = [] _in = [] for c in s: ordC = ord(c) if 0x20 <= ordC <= 0x25 or 0x27 <= ordC <= 0x7e: doB64(_in, r) r.append(c) elif c == '&': doB64(_in, r) r.append('&-') else: _in.append(c) doB64(_in, r) return (str(''.join(r)), len(s)) # # decoding # def modified_unbase64(s): b = binascii.a2b_base64(s.replace(',', '/') + '===') return unicode(b, 'utf-16be') def decoder(s): r = [] decode = [] for c in s: if c == '&' and not decode: decode.append('&') elif c == '-' and decode: if len(decode) == 1: r.append('&') else: r.append(modified_unbase64(''.join(decode[1:]))) decode = [] elif decode: decode.append(c) else: r.append(c) if decode: r.append(modified_unbase64(''.join(decode[1:]))) bin_str = ''.join(r) return (bin_str, len(s)) class StreamReader(codecs.StreamReader): def decode(self, s, errors='strict'): return decoder(s) class StreamWriter(codecs.StreamWriter): def decode(self, s, errors='strict'): return encoder(s) def imap4_utf_7(name): if name == 'imap4-utf-7': return (encoder, decoder, StreamReader, StreamWriter) codecs.register(imap4_utf_7)