MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / _parse_args

Function _parse_args

python/examples/raw_binary_base_detection.py:45–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44
45def _parse_args() -> argparse.Namespace:
46 parser = argparse.ArgumentParser(description="detect base address of position-dependent raw firmware binaries")
47 parser.add_argument("path", help="path to the position-dependent raw firmware binary or directory")
48 parser.add_argument("--debug", action="store_true", help="enable debug logging")
49 parser.add_argument("--reasons", action="store_true", help="show reasons for base address selection")
50 parser.add_argument("--analysis", type=str, help="analysis level", default="full")
51 parser.add_argument("--arch", type=str, help="architecture of the binary")
52 return parser.parse_args()
53
54
55def _setup_logger(debug: bool) -> None:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected