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 /
python3 /
dist-packages /
certbot /
plugins /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2022-03-20 10:36
__init__.py
30
B
-rw-r--r--
2018-11-07 22:14
common.py
16.9
KB
-rw-r--r--
2018-11-07 22:14
common_test.py
16.53
KB
-rw-r--r--
2018-11-07 22:14
disco.py
9.92
KB
-rw-r--r--
2018-11-07 22:14
disco_test.py
11.34
KB
-rw-r--r--
2018-11-07 22:14
dns_common.py
11.7
KB
-rw-r--r--
2018-11-07 22:14
dns_common_lexicon.py
3.96
KB
-rw-r--r--
2018-11-07 22:14
dns_common_lexicon_test.py
651
B
-rw-r--r--
2018-11-07 22:14
dns_common_test.py
8.25
KB
-rw-r--r--
2018-11-07 22:14
dns_test_common.py
1.61
KB
-rw-r--r--
2018-11-07 22:14
dns_test_common_lexicon.py
5.48
KB
-rw-r--r--
2018-11-07 22:14
enhancements.py
5.58
KB
-rw-r--r--
2018-11-07 22:14
enhancements_test.py
2.36
KB
-rw-r--r--
2018-11-07 22:14
manual.py
10.6
KB
-rw-r--r--
2018-11-07 22:14
manual_test.py
7.37
KB
-rw-r--r--
2018-11-07 22:14
null.py
1.34
KB
-rw-r--r--
2018-11-07 22:14
null_test.py
624
B
-rw-r--r--
2018-11-07 22:14
selection.py
13.55
KB
-rw-r--r--
2018-11-07 22:14
selection_test.py
7.77
KB
-rw-r--r--
2018-11-07 22:14
standalone.py
11.36
KB
-rw-r--r--
2018-11-07 22:14
standalone_test.py
9.2
KB
-rw-r--r--
2018-11-07 22:14
storage.py
4.08
KB
-rw-r--r--
2018-11-07 22:14
storage_test.py
5.37
KB
-rw-r--r--
2018-11-07 22:14
util.py
1.7
KB
-rw-r--r--
2018-11-07 22:14
util_test.py
1.61
KB
-rw-r--r--
2018-11-07 22:14
webroot.py
11.9
KB
-rw-r--r--
2018-11-07 22:14
webroot_test.py
11.95
KB
-rw-r--r--
2018-11-07 22:14
Save
Rename
"""Plugin utilities.""" import logging import os from certbot import util logger = logging.getLogger(__name__) def get_prefixes(path): """Retrieves all possible path prefixes of a path, in descending order of length. For instance, (linux) /a/b/c returns ['/a/b/c', '/a/b', '/a', '/'] (windows) C:\\a\\b\\c returns ['C:\\a\\b\\c', 'C:\\a\\b', 'C:\\a', 'C:'] :param str path: the path to break into prefixes :returns: all possible path prefixes of given path in descending order :rtype: `list` of `str` """ prefix = os.path.normpath(path) prefixes = [] while len(prefix) > 0: prefixes.append(prefix) prefix, _ = os.path.split(prefix) # break once we hit the root path if prefix == prefixes[-1]: break return prefixes def path_surgery(cmd): """Attempt to perform PATH surgery to find cmd Mitigates https://github.com/certbot/certbot/issues/1833 :param str cmd: the command that is being searched for in the PATH :returns: True if the operation succeeded, False otherwise """ dirs = ("/usr/sbin", "/usr/local/bin", "/usr/local/sbin") path = os.environ["PATH"] added = [] for d in dirs: if d not in path: path += os.pathsep + d added.append(d) if any(added): logger.debug("Can't find %s, attempting PATH mitigation by adding %s", cmd, os.pathsep.join(added)) os.environ["PATH"] = path if util.exe_exists(cmd): return True else: expanded = " expanded" if any(added) else "" logger.debug("Failed to find executable %s in%s PATH: %s", cmd, expanded, path) return False