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 /
acme /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxrwxrwx
2020-08-25 15:29
__init__.py
872
B
-rwxrwxrwx
2019-08-01 04:26
challenges.py
19.37
KB
-rwxrwxrwx
2019-08-01 04:26
challenges_test.py
20.03
KB
-rwxrwxrwx
2019-08-01 04:26
client.py
45.61
KB
-rwxrwxrwx
2019-08-01 04:26
client_test.py
55.13
KB
-rwxrwxrwx
2019-08-01 04:26
crypto_util.py
10.99
KB
-rwxrwxrwx
2018-11-07 22:14
crypto_util_test.py
9.99
KB
-rwxrwxrwx
2018-11-07 22:14
errors.py
3.57
KB
-rwxrwxrwx
2018-11-07 22:14
errors_test.py
1.48
KB
-rwxrwxrwx
2018-11-07 22:14
fields.py
1.7
KB
-rwxrwxrwx
2018-11-07 22:14
fields_test.py
2.03
KB
-rwxrwxrwx
2018-11-07 22:14
jose_test.py
1.92
KB
-rwxrwxrwx
2019-08-01 04:26
jws.py
2.09
KB
-rwxrwxrwx
2018-11-07 22:14
jws_test.py
2.03
KB
-rwxrwxrwx
2018-11-07 22:14
magic_typing.py
534
B
-rwxrwxrwx
2018-11-07 22:14
magic_typing_test.py
1.42
KB
-rwxrwxrwx
2018-11-07 22:14
messages.py
17.97
KB
-rwxrwxrwx
2018-11-07 22:14
messages_test.py
14.84
KB
-rwxrwxrwx
2018-11-07 22:14
standalone.py
11.09
KB
-rwxrwxrwx
2018-11-07 22:14
standalone_test.py
10.54
KB
-rwxrwxrwx
2018-11-07 22:14
test_util.py
3.12
KB
-rwxrwxrwx
2018-11-07 22:14
util.py
166
B
-rwxrwxrwx
2018-11-07 22:14
util_test.py
456
B
-rwxrwxrwx
2018-11-07 22:14
Save
Rename
"""ACME JSON fields.""" import logging import josepy as jose import pyrfc3339 logger = logging.getLogger(__name__) class Fixed(jose.Field): """Fixed field.""" def __init__(self, json_name, value): self.value = value super(Fixed, self).__init__( json_name=json_name, default=value, omitempty=False) def decode(self, value): if value != self.value: raise jose.DeserializationError('Expected {0!r}'.format(self.value)) return self.value def encode(self, value): if value != self.value: logger.warning( 'Overriding fixed field (%s) with %r', self.json_name, value) return value class RFC3339Field(jose.Field): """RFC3339 field encoder/decoder. Handles decoding/encoding between RFC3339 strings and aware (not naive) `datetime.datetime` objects (e.g. ``datetime.datetime.now(pytz.utc)``). """ @classmethod def default_encoder(cls, value): return pyrfc3339.generate(value) @classmethod def default_decoder(cls, value): try: return pyrfc3339.parse(value) except ValueError as error: raise jose.DeserializationError(error) class Resource(jose.Field): """Resource MITM field.""" def __init__(self, resource_type, *args, **kwargs): self.resource_type = resource_type super(Resource, self).__init__( 'resource', default=resource_type, *args, **kwargs) def decode(self, value): if value != self.resource_type: raise jose.DeserializationError( 'Wrong resource type: {0} instead of {1}'.format( value, self.resource_type)) return value