Update capa/main.py

Co-authored-by: Willi Ballenthin <willi.ballenthin@gmail.com>
This commit is contained in:
Moritz
2021-09-14 17:27:40 +02:00
committed by GitHub
parent cc3b56ddcb
commit 420feea0aa

View File

@@ -982,11 +982,11 @@ def main(argv=None):
return -1
try:
if args.format == "elf" or (args.format == "auto" and taste.startswith(b"\x7fELF")):
sig_paths = []
logger.debug("skipping library code matching: there are no ELF signatures yet")
else:
if args.format == "pe" or (args.format == "auto" and taste.startswith(b"MZ")):
sig_paths = get_signatures(args.signatures)
else:
sig_paths = []
logger.debug("skipping library code matching: only have PE signatures")
except (IOError) as e:
logger.error("%s", str(e))
return -1