Skip to content

Commit

Permalink
Update script_misc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
doomedraven authored Mar 20, 2024
1 parent df7f1f0 commit a4ce080
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/signatures/windows/script_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ def __init__(self, *args, **kwargs):
def on_call(self, call, process):
if call["api"] == "JsEval":
pname = process["process_name"]
if pname.lower() in ["cscript.exe", "jscript.exe", "mshta.exe", "wscript.exe"]:
if pname.lower() in ("cscript.exe", "jscript.exe", "mshta.exe", "wscript.exe"):
javascript = self.get_argument(call, "JavaScript")
if javascript:
for javascripttimer in self.javascripttimer:
for timer in self.javascripttimer:
if timer in javascript.lower():
self.data.append({"process": pname})
self.ret = True
Expand All @@ -53,7 +53,7 @@ def on_call(self, call, process):

if call["api"] == "COleScript_ParseScriptText":
pname = process["process_name"]
if pname.lower() in ["cscript.exe", "jscript.exe", "wscript.exe"]:
if pname.lower() in ("cscript.exe", "jscript.exe", "wscript.exe"):
javascript = self.get_argument(call, "Script")
if javascript:
for javascripttimer in self.javascripttimer:
Expand Down

0 comments on commit a4ce080

Please sign in to comment.