Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
certbot_apache /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
augeas_lens
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
__init__.py
29
B
-rw-r--r--
apache_util.py
3.1
KB
-rw-r--r--
augeas_configurator.py
7.17
KB
-rw-r--r--
centos-options-ssl-apache.conf
1.55
KB
-rw-r--r--
configurator.py
97.69
KB
-rw-r--r--
constants.py
2.5
KB
-rw-r--r--
display_ops.py
4.16
KB
-rw-r--r--
entrypoint.py
1.84
KB
-rw-r--r--
http_01.py
7.78
KB
-rw-r--r--
obj.py
8.92
KB
-rw-r--r--
options-ssl-apache.conf
1.58
KB
-rw-r--r--
override_arch.py
980
B
-rw-r--r--
override_centos.py
2.43
KB
-rw-r--r--
override_darwin.py
982
B
-rw-r--r--
override_debian.py
5.55
KB
-rw-r--r--
override_gentoo.py
2.7
KB
-rw-r--r--
override_suse.py
1011
B
-rw-r--r--
parser.py
30.42
KB
-rw-r--r--
tls_sni_01.py
5.95
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : override_centos.py
""" Distribution specific override class for CentOS family (RHEL, Fedora) """ import pkg_resources import zope.interface from certbot import interfaces from certbot_apache import apache_util from certbot_apache import configurator from certbot_apache import parser @zope.interface.provider(interfaces.IPluginFactory) class CentOSConfigurator(configurator.ApacheConfigurator): """CentOS specific ApacheConfigurator override class""" OS_DEFAULTS = dict( server_root="/etc/httpd", vhost_root="/etc/httpd/conf.d", vhost_files="*.conf", logs_root="/var/log/httpd", ctl="apachectl", version_cmd=['apachectl', '-v'], restart_cmd=['apachectl', 'graceful'], restart_cmd_alt=['apachectl', 'restart'], conftest_cmd=['apachectl', 'configtest'], enmod=None, dismod=None, le_vhost_ext="-le-ssl.conf", handle_modules=False, handle_sites=False, challenge_location="/etc/httpd/conf.d", MOD_SSL_CONF_SRC=pkg_resources.resource_filename( "certbot_apache", "centos-options-ssl-apache.conf") ) def _prepare_options(self): """ Override the options dictionary initialization in order to support alternative restart cmd used in CentOS. """ super(CentOSConfigurator, self)._prepare_options() self.options["restart_cmd_alt"][0] = self.option("ctl") def get_parser(self): """Initializes the ApacheParser""" return CentOSParser( self.aug, self.option("server_root"), self.option("vhost_root"), self.version, configurator=self) class CentOSParser(parser.ApacheParser): """CentOS specific ApacheParser override class""" def __init__(self, *args, **kwargs): # CentOS specific configuration file for Apache self.sysconfig_filep = "/etc/sysconfig/httpd" super(CentOSParser, self).__init__(*args, **kwargs) def update_runtime_variables(self): """ Override for update_runtime_variables for custom parsing """ # Opportunistic, works if SELinux not enforced super(CentOSParser, self).update_runtime_variables() self.parse_sysconfig_var() def parse_sysconfig_var(self): """ Parses Apache CLI options from CentOS configuration file """ defines = apache_util.parse_define_file(self.sysconfig_filep, "OPTIONS") for k in defines.keys(): self.variables[k] = defines[k]
Close