disable flirt matching on elf files

This commit is contained in:
Moritz Raabe
2021-09-14 13:59:38 +02:00
parent 0c42942a88
commit cc3b56ddcb

View File

@@ -982,7 +982,11 @@ def main(argv=None):
return -1
try:
sig_paths = get_signatures(args.signatures)
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:
sig_paths = get_signatures(args.signatures)
except (IOError) as e:
logger.error("%s", str(e))
return -1