mirror of
https://github.com/mandiant/capa.git
synced 2025-12-06 04:41:00 -08:00
Update capa/main.py
Co-authored-by: Willi Ballenthin <willi.ballenthin@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user