Skip to content

Commit

Permalink
Some PE's are classified as js
Browse files Browse the repository at this point in the history
  • Loading branch information
avihay committed Jul 22, 2021
1 parent a02d9e6 commit 16969e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sflock/ident.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ def powershell(f):


def javascript(f):
if f.contents[:2] == b'MZ':
return None

JS_STRS = [
b"var ",
b"function ",
Expand Down

0 comments on commit 16969e2

Please sign in to comment.