From 37dcd23353ee841f1ce6611cdc55b397dbb93f1b Mon Sep 17 00:00:00 2001 From: adator85 <85586985+adator85@users.noreply.github.com> Date: Wed, 20 Mar 2024 21:39:42 +0100 Subject: [PATCH] . --- mods/mod_defender.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/mod_defender.py b/mods/mod_defender.py index 7030fda..477f9ea 100644 --- a/mods/mod_defender.py +++ b/mods/mod_defender.py @@ -799,16 +799,16 @@ class Defender(): case 'SLOG': # self.Base.scan_ports(cmd[7]) cmd.pop(0) - if self.defConfig['local_scan'] == 1: + if self.defConfig['local_scan'] == 1 and not cmd[7] in self.Config.WHITELISTED_IP: self.Base.create_thread(self.scan_ports, (cmd[7], )) - if self.defConfig['psutil_scan'] == 1: + if self.defConfig['psutil_scan'] == 1 and not cmd[7] in self.Config.WHITELISTED_IP: self.Base.create_thread(self.get_ports_connexion, (cmd[7], )) - if self.defConfig['abuseipdb_scan'] == 1: + if self.defConfig['abuseipdb_scan'] == 1 and not cmd[7] in self.Config.WHITELISTED_IP: self.Base.create_thread(self.abuseipdb_scan, (cmd[7], )) - if self.defConfig['freeipapi_scan'] == 1: + if self.defConfig['freeipapi_scan'] == 1 and not cmd[7] in self.Config.WHITELISTED_IP: self.Base.create_thread(self.freeipapi_scan, (cmd[7], )) case 'NICK':