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

Method do_invoke

tools/gef.py:6804–6816  ·  view source on GitHub ↗
(self, argv: List[str])

Source from the content-addressed store, hash-verified

6802 get_url = f"{api_base}/shellcode/files/shellcode-{{:d}}.html"
6803
6804 def do_invoke(self, argv: List[str]) -> None:
6805 if len(argv) != 1:
6806 err("Missing ID to download")
6807 self.usage()
6808 return
6809
6810 if not argv[0].isdigit():
6811 err("ID is not a number")
6812 self.usage()
6813 return
6814
6815 self.get_shellcode(int(argv[0]))
6816 return
6817
6818 def get_shellcode(self, sid: int) -> None:
6819 info(f"Downloading shellcode id={sid}")

Callers

nothing calls this directly

Calls 3

get_shellcodeMethod · 0.95
errFunction · 0.85
usageMethod · 0.80

Tested by

no test coverage detected