miasm
Reverse engineering framework
|
Variables | |
parser = ArgumentParser("Run an ELF in a Linux-like environment") | |
help | |
nargs | |
default | |
action | |
args = parser.parse_args() | |
loc_db = LocationDB() | |
cont_target_tmp = Container.from_stream(open(args.target, 'rb'), loc_db) | |
ld_path = bytes(cont_target_tmp.executable.getsectionbyname(".interp").content).strip(b"\x00") | |
int | elf_base_addr = 0x40000000 |
machine = Machine(cont_target_tmp.arch) | |
jitter = machine.jitter(loc_db, args.jitter) | |
LinuxEnvironment = environment.LinuxEnvironment_arml | |
syscall_callbacks = syscall.syscall_callbacks_arml | |
prepare_loader = environment.prepare_loader_arml | |
linux_env = LinuxEnvironment() | |
cont_ld | |
cont_target | |
elf_phdr_header | |
list | argv = [args.target.encode()] + [arg.encode() for arg in args.extra_args] |
dictionary | envp = {b"PATH": b"/usr/local/bin", b"USER": linux_env.user_name} |
auxv | |
run_with_linuxenv.action |
run_with_linuxenv.args = parser.parse_args() |
list run_with_linuxenv.argv = [args.target.encode()] + [arg.encode() for arg in args.extra_args] |
run_with_linuxenv.auxv |
run_with_linuxenv.cont_ld |
run_with_linuxenv.cont_target |
run_with_linuxenv.cont_target_tmp = Container.from_stream(open(args.target, 'rb'), loc_db) |
run_with_linuxenv.default |
int run_with_linuxenv.elf_base_addr = 0x40000000 |
run_with_linuxenv.elf_phdr_header |
dictionary run_with_linuxenv.envp = {b"PATH": b"/usr/local/bin", b"USER": linux_env.user_name} |
run_with_linuxenv.help |
run_with_linuxenv.jitter = machine.jitter(loc_db, args.jitter) |
run_with_linuxenv.ld_path = bytes(cont_target_tmp.executable.getsectionbyname(".interp").content).strip(b"\x00") |
run_with_linuxenv.linux_env = LinuxEnvironment() |
run_with_linuxenv.LinuxEnvironment = environment.LinuxEnvironment_arml |
run_with_linuxenv.loc_db = LocationDB() |
run_with_linuxenv.machine = Machine(cont_target_tmp.arch) |
run_with_linuxenv.nargs |
run_with_linuxenv.parser = ArgumentParser("Run an ELF in a Linux-like environment") |
run_with_linuxenv.prepare_loader = environment.prepare_loader_arml |
run_with_linuxenv.syscall_callbacks = syscall.syscall_callbacks_arml |