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 /
src /
Python-3.10.14 /
Tools /
scripts /
Delete
Unzip
Name
Size
Permission
Date
Action
2to3
96
B
-rwxr-xr-x
2024-03-19 22:46
README
4.46
KB
-rw-r--r--
2024-03-19 22:46
abitype.py
5.44
KB
-rwxr-xr-x
2024-03-19 22:46
analyze_dxp.py
4.08
KB
-rw-r--r--
2024-03-19 22:46
byext.py
3.81
KB
-rwxr-xr-x
2024-03-19 22:46
byteyears.py
1.61
KB
-rwxr-xr-x
2024-03-19 22:46
checkpip.py
793
B
-rwxr-xr-x
2024-03-19 22:46
cleanfuture.py
8.42
KB
-rwxr-xr-x
2024-03-19 22:46
combinerefs.py
4.35
KB
-rwxr-xr-x
2024-03-19 22:46
copytime.py
663
B
-rwxr-xr-x
2024-03-19 22:46
crlf.py
632
B
-rwxr-xr-x
2024-03-19 22:46
db2pickle.py
3.54
KB
-rwxr-xr-x
2024-03-19 22:46
diff.py
2.2
KB
-rwxr-xr-x
2024-03-19 22:46
dutree.doc
2.18
KB
-rw-r--r--
2024-03-19 22:46
dutree.py
1.6
KB
-rwxr-xr-x
2024-03-19 22:46
eptags.py
1.54
KB
-rwxr-xr-x
2024-03-19 22:46
find-uname.py
1.18
KB
-rwxr-xr-x
2024-03-19 22:46
find_recursionlimit.py
3.9
KB
-rwxr-xr-x
2024-03-19 22:46
finddiv.py
2.48
KB
-rwxr-xr-x
2024-03-19 22:46
findlinksto.py
1.05
KB
-rwxr-xr-x
2024-03-19 22:46
findnocoding.py
2.88
KB
-rwxr-xr-x
2024-03-19 22:46
fixcid.py
9.93
KB
-rwxr-xr-x
2024-03-19 22:46
fixdiv.py
13.91
KB
-rwxr-xr-x
2024-03-19 22:46
fixheader.py
1.33
KB
-rwxr-xr-x
2024-03-19 22:46
fixnotice.py
2.96
KB
-rwxr-xr-x
2024-03-19 22:46
fixps.py
892
B
-rwxr-xr-x
2024-03-19 22:46
generate_opcode_h.py
2.17
KB
-rw-r--r--
2024-03-19 22:46
generate_stdlib_module_names.py
4.55
KB
-rw-r--r--
2024-03-19 22:46
generate_token.py
6.81
KB
-rwxr-xr-x
2024-03-19 22:46
get-remote-certificate.py
2.25
KB
-rwxr-xr-x
2024-03-19 22:46
google.py
501
B
-rwxr-xr-x
2024-03-19 22:46
gprof2html.py
2.25
KB
-rwxr-xr-x
2024-03-19 22:46
highlight.py
8.95
KB
-rwxr-xr-x
2024-03-19 22:46
idle3
96
B
-rwxr-xr-x
2024-03-19 22:46
ifdef.py
3.62
KB
-rwxr-xr-x
2024-03-19 22:46
import_diagnostics.py
999
B
-rwxr-xr-x
2024-03-19 22:46
lfcr.py
640
B
-rwxr-xr-x
2024-03-19 22:46
linktree.py
2.38
KB
-rwxr-xr-x
2024-03-19 22:46
lll.py
748
B
-rwxr-xr-x
2024-03-19 22:46
mailerdaemon.py
7.85
KB
-rwxr-xr-x
2024-03-19 22:46
make_ctype.py
2.23
KB
-rwxr-xr-x
2024-03-19 22:46
md5sum.py
2.46
KB
-rwxr-xr-x
2024-03-19 22:46
mkreal.py
1.59
KB
-rwxr-xr-x
2024-03-19 22:46
ndiff.py
3.73
KB
-rwxr-xr-x
2024-03-19 22:46
nm2def.py
2.42
KB
-rwxr-xr-x
2024-03-19 22:46
objgraph.py
5.8
KB
-rwxr-xr-x
2024-03-19 22:46
parse_html5_entities.py
3.91
KB
-rwxr-xr-x
2024-03-19 22:46
parseentities.py
1.7
KB
-rwxr-xr-x
2024-03-19 22:46
patchcheck.py
10.51
KB
-rwxr-xr-x
2024-03-19 22:46
pathfix.py
6.63
KB
-rwxr-xr-x
2024-03-19 22:46
pdeps.py
3.91
KB
-rwxr-xr-x
2024-03-19 22:46
pep384_macrocheck.py
4.61
KB
-rw-r--r--
2024-03-19 22:46
pickle2db.py
3.93
KB
-rwxr-xr-x
2024-03-19 22:46
pindent.py
16.73
KB
-rwxr-xr-x
2024-03-19 22:46
ptags.py
1.28
KB
-rwxr-xr-x
2024-03-19 22:46
pydoc3
80
B
-rwxr-xr-x
2024-03-19 22:46
pysource.py
3.77
KB
-rwxr-xr-x
2024-03-19 22:46
reindent-rst.py
279
B
-rwxr-xr-x
2024-03-19 22:46
reindent.py
11.37
KB
-rwxr-xr-x
2024-03-19 22:46
rgrep.py
1.54
KB
-rwxr-xr-x
2024-03-19 22:46
run_tests.py
1.78
KB
-rw-r--r--
2024-03-19 22:46
serve.py
1.2
KB
-rwxr-xr-x
2024-03-19 22:46
smelly.py
4.9
KB
-rwxr-xr-x
2024-03-19 22:46
stable_abi.py
21.09
KB
-rwxr-xr-x
2024-03-19 22:46
suff.py
510
B
-rwxr-xr-x
2024-03-19 22:46
texi2html.py
68.72
KB
-rwxr-xr-x
2024-03-19 22:46
untabify.py
1.27
KB
-rwxr-xr-x
2024-03-19 22:46
update_file.py
762
B
-rw-r--r--
2024-03-19 22:46
var_access_benchmark.py
11.63
KB
-rw-r--r--
2024-03-19 22:46
verify_ensurepip_wheels.py
3.31
KB
-rwxr-xr-x
2024-03-19 22:46
which.py
1.65
KB
-rwxr-xr-x
2024-03-19 22:46
win_add2path.py
1.62
KB
-rw-r--r--
2024-03-19 22:46
Save
Rename
#!/usr/bin/env python # Script checking that all symbols exported by libpython start with Py or _Py import os.path import subprocess import sys import sysconfig ALLOWED_PREFIXES = ('Py', '_Py') if sys.platform == 'darwin': ALLOWED_PREFIXES += ('__Py',) IGNORED_EXTENSION = "_ctypes_test" # Ignore constructor and destructor functions IGNORED_SYMBOLS = {'_init', '_fini'} def is_local_symbol_type(symtype): # Ignore local symbols. # If lowercase, the symbol is usually local; if uppercase, the symbol # is global (external). There are however a few lowercase symbols that # are shown for special global symbols ("u", "v" and "w"). if symtype.islower() and symtype not in "uvw": return True # Ignore the initialized data section (d and D) and the BSS data # section. For example, ignore "__bss_start (type: B)" # and "_edata (type: D)". if symtype in "bBdD": return True return False def get_exported_symbols(library, dynamic=False): print(f"Check that {library} only exports symbols starting with Py or _Py") # Only look at dynamic symbols args = ['nm', '--no-sort'] if dynamic: args.append('--dynamic') args.append(library) print("+ %s" % ' '.join(args)) proc = subprocess.run(args, stdout=subprocess.PIPE, universal_newlines=True) if proc.returncode: sys.stdout.write(proc.stdout) sys.exit(proc.returncode) stdout = proc.stdout.rstrip() if not stdout: raise Exception("command output is empty") return stdout def get_smelly_symbols(stdout): smelly_symbols = [] python_symbols = [] local_symbols = [] for line in stdout.splitlines(): # Split line '0000000000001b80 D PyTextIOWrapper_Type' if not line: continue parts = line.split(maxsplit=2) if len(parts) < 3: continue symtype = parts[1].strip() symbol = parts[-1] result = '%s (type: %s)' % (symbol, symtype) if symbol.startswith(ALLOWED_PREFIXES): python_symbols.append(result) continue if is_local_symbol_type(symtype): local_symbols.append(result) elif symbol in IGNORED_SYMBOLS: local_symbols.append(result) else: smelly_symbols.append(result) if local_symbols: print(f"Ignore {len(local_symbols)} local symbols") return smelly_symbols, python_symbols def check_library(library, dynamic=False): nm_output = get_exported_symbols(library, dynamic) smelly_symbols, python_symbols = get_smelly_symbols(nm_output) if not smelly_symbols: print(f"OK: no smelly symbol found ({len(python_symbols)} Python symbols)") return 0 print() smelly_symbols.sort() for symbol in smelly_symbols: print("Smelly symbol: %s" % symbol) print() print("ERROR: Found %s smelly symbols!" % len(smelly_symbols)) return len(smelly_symbols) def check_extensions(): print(__file__) # This assumes pybuilddir.txt is in same directory as pyconfig.h. # In the case of out-of-tree builds, we can't assume pybuilddir.txt is # in the source folder. config_dir = os.path.dirname(sysconfig.get_config_h_filename()) filename = os.path.join(config_dir, "pybuilddir.txt") try: with open(filename, encoding="utf-8") as fp: pybuilddir = fp.readline() except FileNotFoundError: print(f"Cannot check extensions because {filename} does not exist") return True print(f"Check extension modules from {pybuilddir} directory") builddir = os.path.join(config_dir, pybuilddir) nsymbol = 0 for name in os.listdir(builddir): if not name.endswith(".so"): continue if IGNORED_EXTENSION in name: print() print(f"Ignore extension: {name}") continue print() filename = os.path.join(builddir, name) nsymbol += check_library(filename, dynamic=True) return nsymbol def main(): nsymbol = 0 # static library LIBRARY = sysconfig.get_config_var('LIBRARY') if not LIBRARY: raise Exception("failed to get LIBRARY variable from sysconfig") if os.path.exists(LIBRARY): nsymbol += check_library(LIBRARY) # dynamic library LDLIBRARY = sysconfig.get_config_var('LDLIBRARY') if not LDLIBRARY: raise Exception("failed to get LDLIBRARY variable from sysconfig") if LDLIBRARY != LIBRARY: print() nsymbol += check_library(LDLIBRARY, dynamic=True) # Check extension modules like _ssl.cpython-310d-x86_64-linux-gnu.so nsymbol += check_extensions() if nsymbol: print() print(f"ERROR: Found {nsymbol} smelly symbols in total!") sys.exit(1) print() print(f"OK: all exported symbols of all libraries " f"are prefixed with {' or '.join(map(repr, ALLOWED_PREFIXES))}") if __name__ == "__main__": main()