From b9c5ab35530397e3649f40554ea30f7039356472 Mon Sep 17 00:00:00 2001 From: Dov Salomon Date: Sun, 26 Apr 2020 12:12:51 -0400 Subject: [PATCH] fixed a typo in a bug fix --- sshalert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sshalert.py b/sshalert.py index 45d677d..4a02bd2 100755 --- a/sshalert.py +++ b/sshalert.py @@ -41,11 +41,11 @@ def process_log_entry(logline): Check a logline and see if it matches the content we care about. """ # If it's a local sudo exec - if all(x in logline for x in ["sudo", "COMMAND"]: + if all(x in logline for x in ("sudo", "COMMAND")): send_sms(logline) # If it's an SSH login - elif all(x in logline for x in ["ssh", "Accepted"]: + elif all(x in logline for x in ("ssh", "Accepted")): send_sms(logline) return