Skip to content

Commit

Permalink
minor fix in dumped module names
Browse files Browse the repository at this point in the history
  • Loading branch information
yeggor committed Jan 31, 2024
1 parent 1623101 commit c779a38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fwhunt_scan_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,11 @@ def extract(image_path: str, extract_path: str) -> bool:
for binary in extractor.binaries:
if not binary.guid or not len(binary.content):
continue
fpath = os.path.join(extract_path, f"{binary.guid}-{binary.name}{binary.ext}")
fpath = os.path.join(extract_path, f"{binary.name}-{binary.guid}{binary.ext}")
with open(fpath, "wb") as f:
f.write(binary.content)

click.echo(f"{binary.guid} -> {fpath}")
click.echo(f"{binary.guid}: {fpath}")

return True

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from setuptools import setup

from fwhunt_scan import __author__, __email__, __version__

with open("requirements.txt") as f:
Expand Down

0 comments on commit c779a38

Please sign in to comment.