mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user