Linux newlinux5.pouyasazan.org 3.10.0-962.3.2.lve1.5.60.el7.x86_64 #1 SMP Fri Jul 23 07:07:00 EDT 2021 x86_64
LiteSpeed
Server IP : 88.99.66.243 & Your IP : 216.73.216.178
Domains :
Cant Read [ /etc/named.conf ]
User : wdbbsgxf
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
certbot /
plugins /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
23
B
-rw-r--r--
2021-01-05 21:07
__init__.pyc
186
B
-rw-r--r--
2021-10-08 10:38
__init__.pyo
186
B
-rw-r--r--
2021-10-08 10:38
common.py
14.12
KB
-rw-r--r--
2021-01-05 21:07
common.pyc
17.05
KB
-rw-r--r--
2021-10-08 10:38
common.pyo
17.05
KB
-rw-r--r--
2021-10-08 10:38
dns_common.py
11.68
KB
-rw-r--r--
2021-01-05 21:07
dns_common.pyc
13.77
KB
-rw-r--r--
2021-10-08 10:38
dns_common.pyo
13.77
KB
-rw-r--r--
2021-10-08 10:38
dns_common_lexicon.py
5.48
KB
-rw-r--r--
2021-01-05 21:07
dns_common_lexicon.pyc
5.58
KB
-rw-r--r--
2021-10-08 10:38
dns_common_lexicon.pyo
5.58
KB
-rw-r--r--
2021-10-08 10:38
dns_test_common.py
1.71
KB
-rw-r--r--
2021-01-05 21:07
dns_test_common.pyc
2.88
KB
-rw-r--r--
2021-10-08 10:38
dns_test_common.pyo
2.88
KB
-rw-r--r--
2021-10-08 10:38
dns_test_common_lexicon.py
5.6
KB
-rw-r--r--
2021-01-05 21:07
dns_test_common_lexicon.pyc
6.75
KB
-rw-r--r--
2021-10-08 10:38
dns_test_common_lexicon.pyo
6.75
KB
-rw-r--r--
2021-10-08 10:38
enhancements.py
5.95
KB
-rw-r--r--
2021-01-05 21:07
enhancements.pyc
6.79
KB
-rw-r--r--
2021-10-08 10:38
enhancements.pyo
6.79
KB
-rw-r--r--
2021-10-08 10:38
storage.py
4.1
KB
-rw-r--r--
2021-01-05 21:07
storage.pyc
4.57
KB
-rw-r--r--
2021-10-08 10:38
storage.pyo
4.57
KB
-rw-r--r--
2021-10-08 10:38
util.py
1.69
KB
-rw-r--r--
2021-01-05 21:07
util.pyc
2.08
KB
-rw-r--r--
2021-10-08 10:38
util.pyo
2.08
KB
-rw-r--r--
2021-10-08 10:38
Save
Rename
"""Plugin utilities.""" import logging from certbot import util from certbot.compat import os from certbot.compat.misc import STANDARD_BINARY_DIRS 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 prefix: 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 """ path = os.environ["PATH"] added = [] for d in STANDARD_BINARY_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 expanded = " expanded" if any(added) else "" logger.debug("Failed to find executable %s in%s PATH: %s", cmd, expanded, path) return False