ghidra: Add Global Feature Extraction (#1526)

* Revert "colton: removed redundant imports & object, locally tested"

This reverts commit 3da233dcad.

* removed redundant imports & objects, local test confirmation

* linted with isort

* linted with black

* linted with pycodestyle

* additional linting

* rebasing to avoid merge conflicts
This commit is contained in:
Colton Gabertan
2023-07-06 01:27:37 -07:00
committed by GitHub
parent 855463b319
commit c5f51e03f4
2 changed files with 2 additions and 1 deletions

View File

@@ -19,6 +19,7 @@
-
### Bug Fixes
- extractor: update vivisect Arch extraction #1334 @mr-tz
- extractor: avoid Binary Ninja exception when analyzing certain files #1441 @xusheng6

View File

@@ -14,7 +14,7 @@ currentProgram: ghidra.program.database.ProgramDB
def extract_os() -> Iterator[Tuple[Feature, Address]]:
format_name: str = currentProgram.getExecutableFormat()
format_name: str = currentProgram.getExecutableFormat() # currentProgram: static Ghidra variable
if "PE" in format_name:
yield OS(OS_WINDOWS), NO_ADDRESS