django-restit 4.2.146__py3-none-any.whl → 4.2.147__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {django_restit-4.2.146.dist-info → django_restit-4.2.147.dist-info}/METADATA +1 -1
- {django_restit-4.2.146.dist-info → django_restit-4.2.147.dist-info}/RECORD +6 -6
- incident/models/incident.py +4 -0
- rest/__init__.py +1 -1
- {django_restit-4.2.146.dist-info → django_restit-4.2.147.dist-info}/LICENSE.md +0 -0
- {django_restit-4.2.146.dist-info → django_restit-4.2.147.dist-info}/WHEEL +0 -0
@@ -116,7 +116,7 @@ incident/migrations/0015_rule_title_template_alter_incident_state.py,sha256=FPUD
|
|
116
116
|
incident/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
117
117
|
incident/models/__init__.py,sha256=NMphuhb0RTMf7Ov4QkNv7iv6_I8Wtr3xQ54yjX_a31M,209
|
118
118
|
incident/models/event.py,sha256=FEzEKKQKLkdRrPCvv-3Um9E2UPQjyIJp314Zr2LHuiw,7976
|
119
|
-
incident/models/incident.py,sha256=
|
119
|
+
incident/models/incident.py,sha256=Imr2fjRBjuuut8XAGrNcn3mjTLPTDO4V2KfWByHxSac,21824
|
120
120
|
incident/models/ossec.py,sha256=eUDRGawzuLWobKEVGKfdZisDnyjS_Hlxi0T_GCSLCCI,2252
|
121
121
|
incident/models/rules.py,sha256=aRkJ0ZnTv87nAUC1sHVkPExfb3OJ8fgHQIhnCIpIbhQ,7001
|
122
122
|
incident/models/ticket.py,sha256=S3kqGQpYLE6Y4M9IKu_60sgW-f592xNr8uufqHnvDoU,2302
|
@@ -379,7 +379,7 @@ pushit/utils.py,sha256=IeTCGa-164nmB1jIsK1lu1O1QzUhS3BKfuXHGjCW-ck,2121
|
|
379
379
|
rest/.gitignore,sha256=TbEvWRMnAiajCTOdhiNrd9eeCAaIjRp9PRjE_VkMM5g,118
|
380
380
|
rest/README.md,sha256=V3ETc-cJu8PZIbKr9xSe_pA4JEUpC8Dhw4bQeVCDJPw,5460
|
381
381
|
rest/RemoteEvents.py,sha256=nL46U7AuxIrlw2JunphR1tsXyqi-ep_gD9CYGpYbNgE,72
|
382
|
-
rest/__init__.py,sha256=
|
382
|
+
rest/__init__.py,sha256=DXC3jf0JO99XmF87usjMaANr6EwqvH5vRYN3btnK7bg,122
|
383
383
|
rest/arc4.py,sha256=y644IbF1ec--e4cUJ3KEYsewTCITK0gmlwa5mJruFC0,1967
|
384
384
|
rest/cache.py,sha256=1Qg0rkaCJCaVP0-l5hZg2CIblTdeBSlj_0fP6vlKUpU,83
|
385
385
|
rest/crypto/__init__.py,sha256=Tl0U11rgj1eBYqd6OXJ2_XSdNLumW_JkBZnaJqI6Ldw,72
|
@@ -515,7 +515,7 @@ ws4redis/servers/uwsgi.py,sha256=VyhoCI1DnVFqBiJYHoxqn5Idlf6uJPHvfBKgkjs34mo,172
|
|
515
515
|
ws4redis/settings.py,sha256=KKq00EwoGnz1yLwCZr5Dfoq2izivmAdsNEEM4EhZwN4,1610
|
516
516
|
ws4redis/utf8validator.py,sha256=S0OlfjeGRP75aO6CzZsF4oTjRQAgR17OWE9rgZdMBZA,5122
|
517
517
|
ws4redis/websocket.py,sha256=R0TUyPsoVRD7Y_oU7w2I6NL4fPwiz5Vl94-fUkZgLHA,14848
|
518
|
-
django_restit-4.2.
|
519
|
-
django_restit-4.2.
|
520
|
-
django_restit-4.2.
|
521
|
-
django_restit-4.2.
|
518
|
+
django_restit-4.2.147.dist-info/LICENSE.md,sha256=VHN4hhEeVOoFjtG-5fVv4jesA4SWi0Z-KgOzzN6a1ps,1068
|
519
|
+
django_restit-4.2.147.dist-info/METADATA,sha256=UVN5VubPWs-OWuDvx_HWVNDvVXXCg7PaG0uumf-GTuo,7663
|
520
|
+
django_restit-4.2.147.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
521
|
+
django_restit-4.2.147.dist-info/RECORD,,
|
incident/models/incident.py
CHANGED
@@ -177,6 +177,8 @@ class Incident(models.Model, rm.RestModel, rm.MetaDataModel):
|
|
177
177
|
return (count % aa) == 0
|
178
178
|
|
179
179
|
def triggerAction(self, force=False):
|
180
|
+
if self.state == INCIDENT_STATE_IGNORE:
|
181
|
+
return
|
180
182
|
if self.rule is None:
|
181
183
|
if self.action_sent is None:
|
182
184
|
self.triggerAsyncNotify()
|
@@ -496,6 +498,8 @@ class Incident(models.Model, rm.RestModel, rm.MetaDataModel):
|
|
496
498
|
info = abuse.lookup(ip, 0)
|
497
499
|
if "errors" not in info:
|
498
500
|
self.setProperty("abuse_info", info)
|
501
|
+
if info.get("abuseConfidenceScore", 0) >= 45:
|
502
|
+
self.state = INCIDENT_STATE_IGNORE
|
499
503
|
|
500
504
|
@classmethod
|
501
505
|
def getBundled(cls, rule, event):
|
rest/__init__.py
CHANGED
File without changes
|
File without changes
|