From 92a468d7566de31e6867a77c5cf1c64e33792109 Mon Sep 17 00:00:00 2001 From: Brandon Miller Date: Fri, 3 May 2024 08:26:35 -0400 Subject: Fixed typing bug in base detection API Also updated example script to use full analysis by default --- python/basedetection.py | 2 +- python/examples/raw_binary_base_detection.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/basedetection.py b/python/basedetection.py index 655f017b..f3cc3eb9 100644 --- a/python/basedetection.py +++ b/python/basedetection.py @@ -161,7 +161,7 @@ class BaseAddressDetection: def detect_base_address( self, arch: Optional[str] = "", - analysis: Optional[str] = Literal["basic", "controlFlow", "full"], + analysis: Optional[Literal["basic", "controlFlow", "full"]] = "full", min_strlen: Optional[int] = 10, alignment: Optional[int] = 1024, low_boundary: Optional[int] = 0, diff --git a/python/examples/raw_binary_base_detection.py b/python/examples/raw_binary_base_detection.py index 76268fbe..b584903c 100644 --- a/python/examples/raw_binary_base_detection.py +++ b/python/examples/raw_binary_base_detection.py @@ -47,7 +47,7 @@ def _parse_args() -> argparse.Namespace: parser.add_argument("path", help="path to the position-dependent raw firmware binary or directory") parser.add_argument("--debug", action="store_true", help="enable debug logging") parser.add_argument("--reasons", action="store_true", help="show reasons for base address selection") - parser.add_argument("--analysis", type=str, help="analysis level", default="basic") + parser.add_argument("--analysis", type=str, help="analysis level", default="full") parser.add_argument("--arch", type=str, default="", help="architecture of the binary") return parser.parse_args() -- cgit v1.3.1