Skip to content

Commit e0944e9

Browse files
author
Andriy Brukhovetskyy
committed
better exec check
1 parent a2e3ebe commit e0944e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sflock/ident.py

+1
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@ def identify(f, check_shellcode: bool = False):
631631
if package in ("exe", "dll"):
632632
pe = pefile.PE(data=f.contents, fast_load=True)
633633
return "dll" if pe.is_dll() else "exe"
634+
return None
634635

635636
if f.filename:
636637
for package, extensions in file_extensions.items():

0 commit comments

Comments
 (0)