From 0484655e2e787e8d497201235cec55f5eab5f04a Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Thu, 19 Dec 2019 23:26:29 -0600 Subject: [PATCH] fix ofexec not properly checking for windows for tor kill os.system --- src/bigbrother/ministry/ofexec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bigbrother/ministry/ofexec.py b/src/bigbrother/ministry/ofexec.py index 9438e3ef..56d474eb 100644 --- a/src/bigbrother/ministry/ofexec.py +++ b/src/bigbrother/ministry/ofexec.py @@ -28,7 +28,7 @@ def block_system(cmd): """Prevent os.system except for whitelisted commands+contexts.""" allowed = 'taskkill /PID ' is_ok = False - if platform.platform == 'Windows': + if platform.system() == 'Windows': if cmd.startswith(allowed): for c in cmd.split(allowed)[1]: if not c.isalnum() or c not in ('/', 'F', ' '):