From fe0b408c062112ce68296bd0ab873fdd63de397f Mon Sep 17 00:00:00 2001 From: vakaris_zilius Date: Tue, 5 Apr 2022 13:15:06 +0000 Subject: [PATCH] Agent: Fix a bug with output checking in firewall.py --- monkey/infection_monkey/network/firewall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/network/firewall.py b/monkey/infection_monkey/network/firewall.py index 5c493b82f..7a9f83827 100644 --- a/monkey/infection_monkey/network/firewall.py +++ b/monkey/infection_monkey/network/firewall.py @@ -17,7 +17,7 @@ def _run_netsh_cmd(command, args): ), timeout=SHORT_REQUEST_TIMEOUT, ) - return output.strip().lower().endswith("ok.") + return output.strip().lower().endswith(b"ok.") class FirewallApp(object):