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: