From a4ce080336137624ec8399843ed2202a7b1752fb Mon Sep 17 00:00:00 2001 From: doomedraven Date: Wed, 20 Mar 2024 08:35:43 +0100 Subject: [PATCH] Update script_misc.py --- modules/signatures/windows/script_misc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/signatures/windows/script_misc.py b/modules/signatures/windows/script_misc.py index 8b7e5d99..9f2d0d81 100644 --- a/modules/signatures/windows/script_misc.py +++ b/modules/signatures/windows/script_misc.py @@ -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 @@ -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: