Skip to content

Commit

Permalink
Merge pull request hatching#12 from AvihayST/fix/ident-packages
Browse files Browse the repository at this point in the history
Golang files get ps1 and vbs package due to some string's inside
  • Loading branch information
doomedraven authored Jul 25, 2021
2 parents ae1216c + fff63a6 commit f4a06a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sflock/ident.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ def office_ole(f):


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

POWERSHELL_STRS = [
b"$PSHOME",
b"Get-WmiObject",
Expand Down Expand Up @@ -299,6 +302,9 @@ def pub(f):


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

VB_STRS = [
b"Dim ",
b"dim ",
Expand Down

0 comments on commit f4a06a7

Please sign in to comment.