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

Method do_invoke

tools/gef.py:8730–8738  ·  view source on GitHub ↗
(self, _: List[str], **kwargs: Any)

Source from the content-addressed store, hash-verified

8728
8729 @parse_arguments({"length": 0}, {("-n", "--n"): 0})
8730 def do_invoke(self, _: List[str], **kwargs: Any) -> None:
8731 args : argparse.Namespace = kwargs["arguments"]
8732 length = args.length or gef.config["pattern.length"]
8733 n = args.n or gef.arch.ptrsize
8734 info(f"Generating a pattern of {length:d} bytes (n={n:d})")
8735 pattern_str = gef_pystring(generate_cyclic_pattern(length, n))
8736 gef_print(pattern_str)
8737 ok(f"Saved as '{gef_convenience(pattern_str)}'")
8738 return
8739
8740
8741@register

Callers

nothing calls this directly

Calls 6

infoFunction · 0.85
gef_pystringFunction · 0.85
generate_cyclic_patternFunction · 0.85
gef_printFunction · 0.85
gef_convenienceFunction · 0.85
okFunction · 0.70

Tested by

no test coverage detected