miasm
Reverse engineering framework
run_with_linuxenv.py File Reference

Namespaces

 run_with_linuxenv
 

Variables

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