Skip to content

Commit

Permalink
Fixed typing bug in base detection API
Browse files Browse the repository at this point in the history
Also updated example script to use full analysis by default
  • Loading branch information
zznop committed May 3, 2024
1 parent 8448712 commit 92a468d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/basedetection.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def aborted(self) -> bool:
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,
Expand Down
2 changes: 1 addition & 1 deletion python/examples/raw_binary_base_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 92a468d

Please sign in to comment.