Skip to content

Commit

Permalink
fix directory recursive in hunt module
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedkhlief committed Feb 3, 2022
1 parent 077096a commit 13504f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion APT-Hunter.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def threat_hunt(path,str_regex):
import os

if os.path.isdir(path):
files=glob.glob(path+"/**/"+"*.evtx")
files=list(libPath(path).rglob("*.[eE][vV][tT][xX]"))
elif os.path.isfile(path):
files=glob.glob(path)

Expand Down
1 change: 1 addition & 0 deletions lib/EvtxHunt.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
Computer_rex = re.compile('<Computer.*>(.*)<\/Computer>', re.IGNORECASE)
def Evtx_hunt(files,str_regex,input_timzone,output):
for file in files:
file=str(file)
print("Analyzing "+file)
try:
parser = PyEvtxParser(file)
Expand Down

0 comments on commit 13504f7

Please sign in to comment.