mirror of
https://github.com/iio612/DEFENDER.git
synced 2026-02-13 19:24:23 +00:00
@@ -109,19 +109,13 @@ class Defender():
|
|||||||
|
|
||||||
self.timeout = self.Config.API_TIMEOUT
|
self.timeout = self.Config.API_TIMEOUT
|
||||||
|
|
||||||
|
# Listes qui vont contenir les ip a scanner avec les différentes API
|
||||||
self.abuseipdb_UserModel: list[User.UserModel] = []
|
self.abuseipdb_UserModel: list[User.UserModel] = []
|
||||||
self.freeipapi_UserModel: list[User.UserModel] = []
|
self.freeipapi_UserModel: list[User.UserModel] = []
|
||||||
self.cloudfilt_UserModel: list[User.UserModel] = []
|
self.cloudfilt_UserModel: list[User.UserModel] = []
|
||||||
self.psutil_UserModel: list[User.UserModel] = []
|
self.psutil_UserModel: list[User.UserModel] = []
|
||||||
self.localscan_UserModel: list[User.UserModel] = []
|
self.localscan_UserModel: list[User.UserModel] = []
|
||||||
|
|
||||||
# Listes qui vont contenir les ip a scanner avec les différentes API
|
|
||||||
# self.freeipapi_remote_ip:list = []
|
|
||||||
# self.cloudfilt_remote_ip:list = []
|
|
||||||
# self.abuseipdb_remote_ip:list = []
|
|
||||||
# self.psutil_remote_ip:list = []
|
|
||||||
# self.localscan_remote_ip:list = []
|
|
||||||
|
|
||||||
# Variables qui indique que les threads sont en cours d'éxecutions
|
# Variables qui indique que les threads sont en cours d'éxecutions
|
||||||
self.abuseipdb_isRunning:bool = True
|
self.abuseipdb_isRunning:bool = True
|
||||||
self.freeipapi_isRunning:bool = True
|
self.freeipapi_isRunning:bool = True
|
||||||
@@ -234,11 +228,11 @@ class Defender():
|
|||||||
"""Cette methode sera executée a chaque désactivation ou
|
"""Cette methode sera executée a chaque désactivation ou
|
||||||
rechargement de module
|
rechargement de module
|
||||||
"""
|
"""
|
||||||
self.abuseipdb_remote_ip:list = [] # Liste qui va contenir les adresses ip a scanner avec abuseipdb
|
self.abuseipdb_UserModel: list[User.UserModel] = []
|
||||||
self.freeipapi_remote_ip:list = [] # Liste qui va contenir les adresses ip a scanner avec freeipapi
|
self.freeipapi_UserModel: list[User.UserModel] = []
|
||||||
self.cloudfilt_remote_ip:list = [] # Liste qui va contenir les adresses ip a scanner avec cloudfilt
|
self.cloudfilt_UserModel: list[User.UserModel] = []
|
||||||
self.psutil_remote_ip:list = [] # Liste qui va contenir les adresses ip a scanner avec psutil_scan
|
self.psutil_UserModel: list[User.UserModel] = []
|
||||||
self.localscan_remote_ip:list = [] # Liste qui va contenir les adresses ip a scanner avec local_scan
|
self.localscan_UserModel: list[User.UserModel] = []
|
||||||
|
|
||||||
self.abuseipdb_isRunning:bool = False
|
self.abuseipdb_isRunning:bool = False
|
||||||
self.freeipapi_isRunning:bool = False
|
self.freeipapi_isRunning:bool = False
|
||||||
@@ -1115,20 +1109,20 @@ class Defender():
|
|||||||
if not self.Base.is_valid_ip(cmd[7]):
|
if not self.Base.is_valid_ip(cmd[7]):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if self.ModConfig.local_scan == 1 and not cmd[7] in self.Config.WHITELISTED_IP:
|
# if self.ModConfig.local_scan == 1 and not cmd[7] in self.Config.WHITELISTED_IP:
|
||||||
self.localscan_remote_ip.append(cmd[7])
|
# self.localscan_remote_ip.append(cmd[7])
|
||||||
|
|
||||||
if self.ModConfig.psutil_scan == 1 and not cmd[7] in self.Config.WHITELISTED_IP:
|
# if self.ModConfig.psutil_scan == 1 and not cmd[7] in self.Config.WHITELISTED_IP:
|
||||||
self.psutil_remote_ip.append(cmd[7])
|
# self.psutil_remote_ip.append(cmd[7])
|
||||||
|
|
||||||
if self.ModConfig.abuseipdb_scan == 1 and not cmd[7] in self.Config.WHITELISTED_IP:
|
# if self.ModConfig.abuseipdb_scan == 1 and not cmd[7] in self.Config.WHITELISTED_IP:
|
||||||
self.abuseipdb_remote_ip.append(cmd[7])
|
# self.abuseipdb_remote_ip.append(cmd[7])
|
||||||
|
|
||||||
if self.ModConfig.freeipapi_scan == 1 and not cmd[7] in self.Config.WHITELISTED_IP:
|
# if self.ModConfig.freeipapi_scan == 1 and not cmd[7] in self.Config.WHITELISTED_IP:
|
||||||
self.freeipapi_remote_ip.append(cmd[7])
|
# self.freeipapi_remote_ip.append(cmd[7])
|
||||||
|
|
||||||
if self.ModConfig.cloudfilt_scan == 1 and not cmd[7] in self.Config.WHITELISTED_IP:
|
# if self.ModConfig.cloudfilt_scan == 1 and not cmd[7] in self.Config.WHITELISTED_IP:
|
||||||
self.cloudfilt_remote_ip.append(cmd[7])
|
# self.cloudfilt_remote_ip.append(cmd[7])
|
||||||
|
|
||||||
case 'NICK':
|
case 'NICK':
|
||||||
# :0010BS24L NICK [NEWNICK] 1697917711
|
# :0010BS24L NICK [NEWNICK] 1697917711
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"version": "5.2.0"
|
"version": "5.2.1"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user