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.51
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 /
acme /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
727
B
-rw-r--r--
challenges.py
19.8
KB
-rw-r--r--
challenges_test.py
21.17
KB
-rw-r--r--
client.py
46.26
KB
-rw-r--r--
client_test.py
56.84
KB
-rw-r--r--
crypto_util.py
10.99
KB
-rw-r--r--
crypto_util_test.py
9.98
KB
-rw-r--r--
errors.py
3.57
KB
-rw-r--r--
errors_test.py
1.48
KB
-rw-r--r--
fields.py
1.7
KB
-rw-r--r--
fields_test.py
2.03
KB
-rw-r--r--
jose_test.py
1.92
KB
-rw-r--r--
jws.py
2.09
KB
-rw-r--r--
jws_test.py
2.03
KB
-rw-r--r--
magic_typing.py
534
B
-rw-r--r--
magic_typing_test.py
1.42
KB
-rw-r--r--
messages.py
19.11
KB
-rw-r--r--
messages_test.py
16.25
KB
-rw-r--r--
standalone.py
11.09
KB
-rw-r--r--
standalone_test.py
10.54
KB
-rw-r--r--
test_util.py
3.12
KB
-rw-r--r--
util.py
166
B
-rw-r--r--
util_test.py
456
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : jws.py
"""ACME-specific JWS. The JWS implementation in josepy only implements the base JOSE standard. In order to support the new header fields defined in ACME, this module defines some ACME-specific classes that layer on top of josepy. """ import josepy as jose class Header(jose.Header): """ACME-specific JOSE Header. Implements nonce, kid, and url. """ nonce = jose.Field('nonce', omitempty=True, encoder=jose.encode_b64jose) kid = jose.Field('kid', omitempty=True) url = jose.Field('url', omitempty=True) @nonce.decoder def nonce(value): # pylint: disable=missing-docstring,no-self-argument try: return jose.decode_b64jose(value) except jose.DeserializationError as error: # TODO: custom error raise jose.DeserializationError("Invalid nonce: {0}".format(error)) class Signature(jose.Signature): """ACME-specific Signature. Uses ACME-specific Header for customer fields.""" __slots__ = jose.Signature._orig_slots # pylint: disable=no-member # TODO: decoder/encoder should accept cls? Otherwise, subclassing # JSONObjectWithFields is tricky... header_cls = Header header = jose.Field( 'header', omitempty=True, default=header_cls(), decoder=header_cls.from_json) # TODO: decoder should check that nonce is in the protected header class JWS(jose.JWS): """ACME-specific JWS. Includes none, url, and kid in protected header.""" signature_cls = Signature __slots__ = jose.JWS._orig_slots # pylint: disable=no-member @classmethod # pylint: disable=arguments-differ,too-many-arguments def sign(cls, payload, key, alg, nonce, url=None, kid=None): # Per ACME spec, jwk and kid are mutually exclusive, so only include a # jwk field if kid is not provided. include_jwk = kid is None return super(JWS, cls).sign(payload, key=key, alg=alg, protect=frozenset(['nonce', 'url', 'kid', 'jwk', 'alg']), nonce=nonce, url=url, kid=kid, include_jwk=include_jwk)
Close