MCPcopy Create free account
hub / github.com/HexHive/NASS / setup

Method setup

tools/gef.py:10716–10729  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10714 return False
10715
10716 def setup(self) -> bool:
10717 # setup remote adequately depending on remote or qemu mode
10718 if self.in_qemu_user():
10719 dbg(f"Setting up as qemu session, target={self.__qemu}")
10720 self.__setup_qemu()
10721 else:
10722 dbg(f"Setting up as remote session")
10723 self.__setup_remote()
10724
10725 # refresh gef to consider the binary
10726 reset_all_caches()
10727 gef.binary = Elf(self.lfile)
10728 reset_architecture()
10729 return True
10730
10731 def __setup_qemu(self) -> bool:
10732 # setup emulated file in the chroot

Callers 1

__init__Method · 0.95

Calls 7

in_qemu_userMethod · 0.95
__setup_qemuMethod · 0.95
__setup_remoteMethod · 0.95
dbgFunction · 0.85
reset_all_cachesFunction · 0.85
ElfClass · 0.85
reset_architectureFunction · 0.85

Tested by

no test coverage detected