INNER CODE UNIT · JavaScript
phdrs_from_file
hackcatml/frida-flutterproxy · script.js:509
phdrs_from_file = Memory.alloc(phnum * phentsize);
lseek(fd, phoff, SEEK_SET);
read(fd, phdrs_from_file, phnum * phentsize);
p_type = phdrs_from_file.add(i * phentsize).readU32();
}
var p_type_sym = null;
// check if p_type matches the defined p_type
var p_type_exists = false;
for (let key in p_types) {
if (p_types[key] === p_type) {
p_type_exists = true;
p_type_sym = key;
break;
}
}
if (!p_type_exists) break;