GuardianUnivalle-Benito-Yucra 0.1.57__py3-none-any.whl → 0.1.59__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of GuardianUnivalle-Benito-Yucra might be problematic. Click here for more details.
- GuardianUnivalle_Benito_Yucra/detectores/detector_dos.py +12 -15
- {guardianunivalle_benito_yucra-0.1.57.dist-info → guardianunivalle_benito_yucra-0.1.59.dist-info}/METADATA +1 -1
- {guardianunivalle_benito_yucra-0.1.57.dist-info → guardianunivalle_benito_yucra-0.1.59.dist-info}/RECORD +6 -6
- {guardianunivalle_benito_yucra-0.1.57.dist-info → guardianunivalle_benito_yucra-0.1.59.dist-info}/WHEEL +0 -0
- {guardianunivalle_benito_yucra-0.1.57.dist-info → guardianunivalle_benito_yucra-0.1.59.dist-info}/licenses/LICENSE +0 -0
- {guardianunivalle_benito_yucra-0.1.57.dist-info → guardianunivalle_benito_yucra-0.1.59.dist-info}/top_level.txt +0 -0
|
@@ -26,25 +26,16 @@ if not logger.handlers:
|
|
|
26
26
|
# =====================================================
|
|
27
27
|
# URLs CONCEPTUALES de donde EXTRAERÍAS IPs/CIDR
|
|
28
28
|
IP_BLACKLIST_SOURCES = [
|
|
29
|
-
# 1. FireHOL (Agregador General de Nivel 1)
|
|
29
|
+
# 1. FireHOL (Agregador General de Nivel 1)
|
|
30
|
+
# Resultado: Éxito al obtener 4438 IPs/CIDR
|
|
30
31
|
"https://iplists.firehol.org/files/firehol_level1.netset",
|
|
31
32
|
|
|
32
|
-
# 2.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
# 3. SANS DShield (Escaneo y Ataque de Alto Riesgo) - IPs más activas en las últimas 24h
|
|
36
|
-
"https://feeds.dshield.org/top20.txt",
|
|
37
|
-
|
|
38
|
-
# 4. Abuse.ch Feodo Tracker (Botnets C&C) - Hosts de C&C activos de troyanos
|
|
33
|
+
# 2. Abuse.ch Feodo Tracker (Botnets C&C)
|
|
34
|
+
# Resultado: Éxito al obtener 2 IPs/CIDR (puede ser bajo, pero es funcional)
|
|
39
35
|
"https://feodotracker.abuse.ch/downloads/ipblocklist.txt",
|
|
40
36
|
|
|
41
|
-
#
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
# 6. Emerging Threats (Open) - IPs conocidas por actividad de ataque general
|
|
45
|
-
"https://rules.emergingthreats.net/fwrules/emerging-tor.txt",
|
|
46
|
-
|
|
47
|
-
# 7. Tor Project (Nodos de Salida) - Bloquea usuarios que se conectan vía Tor Exit Nodes
|
|
37
|
+
# 3. Tor Project (Nodos de Salida)
|
|
38
|
+
# Resultado: Éxito al obtener 1166 IPs/CIDR
|
|
48
39
|
"https://check.torproject.org/torbulkexitlist?ip=1.1.1.1"
|
|
49
40
|
]
|
|
50
41
|
|
|
@@ -137,6 +128,12 @@ UMBRAL_BLOQUEO = getattr(settings, "DOS_UMBRAL_BLOQUEO", 0.8)
|
|
|
137
128
|
# === CARGA INICIAL DE LA LISTA NEGRA ===
|
|
138
129
|
try:
|
|
139
130
|
IP_BLACKLIST: Set[str] = fetch_and_parse_blacklists()
|
|
131
|
+
output_filename = "blacklist_cargada.txt"
|
|
132
|
+
with open(output_filename, 'w') as f:
|
|
133
|
+
# Escribe cada IP/CIDR en una nueva línea
|
|
134
|
+
for ip in sorted(list(IP_BLACKLIST)): # Usamos sorted() para orden alfabético/numérico
|
|
135
|
+
f.write(f"{ip}\n")
|
|
136
|
+
logger.info(f"Lista Negra Externa GUARDADA en {output_filename} para inspección.")
|
|
140
137
|
logger.info(f"Lista Negra Externa cargada con {len(IP_BLACKLIST)} IPs/CIDR.")
|
|
141
138
|
except Exception as e:
|
|
142
139
|
logger.error(f"Error al cargar la IP Blacklist: {e}. Usando lista vacía.")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: GuardianUnivalle-Benito-Yucra
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.59
|
|
4
4
|
Summary: Middleware y detectores de seguridad (SQLi, XSS, CSRF, DoS, Keylogger) para Django/Flask
|
|
5
5
|
Author-email: Andres Benito Calle Yucra <benitoandrescalle035@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -5,7 +5,7 @@ GuardianUnivalle_Benito_Yucra/criptografia/cifrado_aead.py,sha256=wfoRpaKvOqPbol
|
|
|
5
5
|
GuardianUnivalle_Benito_Yucra/criptografia/intercambio_claves.py,sha256=9djnlzb022hUhrDbQyWz7lWLbkn_vQZ4K7qar1FXYmo,829
|
|
6
6
|
GuardianUnivalle_Benito_Yucra/criptografia/kdf.py,sha256=_sbepEY1qHEKga0ExrX2WRg1HeCPY5MC5CfXZWYyl-A,709
|
|
7
7
|
GuardianUnivalle_Benito_Yucra/detectores/detector_csrf.py,sha256=q7-UsVseTtIYZz4bbpx2X0kzpDmu2Cetm7eYPJtsruA,7608
|
|
8
|
-
GuardianUnivalle_Benito_Yucra/detectores/detector_dos.py,sha256=
|
|
8
|
+
GuardianUnivalle_Benito_Yucra/detectores/detector_dos.py,sha256=Jy4fhI-6n9wQR0quzpondcUyCA2447lDq4fmOFeM1jA,14989
|
|
9
9
|
GuardianUnivalle_Benito_Yucra/detectores/detector_keylogger.py,sha256=L5RQ0Sdgg7hTU1qkZYwt7AcDqtAzT6u-jwBGo7YWfsw,8078
|
|
10
10
|
GuardianUnivalle_Benito_Yucra/detectores/detector_sql.py,sha256=EEbnn5J7sZxnsA2a0cT1VAB4ZS7BMhQiHSeqrR2SU3A,4820
|
|
11
11
|
GuardianUnivalle_Benito_Yucra/detectores/detector_xss.py,sha256=EDxGDaOosFJCyWTS_HkB300qL30ArxAEi-i0cVrzXyU,11027
|
|
@@ -13,8 +13,8 @@ GuardianUnivalle_Benito_Yucra/middleware_web/middleware_web.py,sha256=23pLLYqliU
|
|
|
13
13
|
GuardianUnivalle_Benito_Yucra/mitigacion/limitador_peticion.py,sha256=ipMOebYhql-6mSyHs0ddYXOcXq9w8P_IXLlpiIqGncw,246
|
|
14
14
|
GuardianUnivalle_Benito_Yucra/mitigacion/lista_bloqueo.py,sha256=6AYWII4mrmwCLHCvGTyoBxR4Oasr4raSHpFbVjqn7d8,193
|
|
15
15
|
GuardianUnivalle_Benito_Yucra/puntuacion/puntuacion_amenaza.py,sha256=Wx5XfcII4oweLvZsTBEJ7kUc9pMpP5-36RfI5C5KJXo,561
|
|
16
|
-
guardianunivalle_benito_yucra-0.1.
|
|
17
|
-
guardianunivalle_benito_yucra-0.1.
|
|
18
|
-
guardianunivalle_benito_yucra-0.1.
|
|
19
|
-
guardianunivalle_benito_yucra-0.1.
|
|
20
|
-
guardianunivalle_benito_yucra-0.1.
|
|
16
|
+
guardianunivalle_benito_yucra-0.1.59.dist-info/licenses/LICENSE,sha256=5e4IdL542v1E8Ft0A24GZjrxZeTsVK7XrS3mZEUhPtM,37
|
|
17
|
+
guardianunivalle_benito_yucra-0.1.59.dist-info/METADATA,sha256=NBMpEaQRxULhvSVkUdDBOkPFOnvMwS-wBpjdKGB5nRc,1893
|
|
18
|
+
guardianunivalle_benito_yucra-0.1.59.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
19
|
+
guardianunivalle_benito_yucra-0.1.59.dist-info/top_level.txt,sha256=HTWfZM64WAV_QYr5cnXnLuabQt92dvlxqlR3pCwpbDQ,30
|
|
20
|
+
guardianunivalle_benito_yucra-0.1.59.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|