django-restit 4.2.156__py3-none-any.whl → 4.2.157__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.156.dist-info → django_restit-4.2.157.dist-info}/METADATA +1 -1
- {django_restit-4.2.156.dist-info → django_restit-4.2.157.dist-info}/RECORD +8 -9
- incident/models/incident.py +3 -1
- incident/rpc.py +2 -2
- rest/__init__.py +1 -1
- incident/extra/__init__.py +0 -0
- {django_restit-4.2.156.dist-info → django_restit-4.2.157.dist-info}/LICENSE.md +0 -0
- {django_restit-4.2.156.dist-info → django_restit-4.2.157.dist-info}/WHEEL +0 -0
- {incident/extra → location/providers/iplookup}/abuse.py +0 -0
@@ -96,8 +96,6 @@ inbox/utils/render.py,sha256=CU_F2qUBQE7mjb9Q6Dn9ro5CS_O_zEY-wDMHEClKkIA,4331
|
|
96
96
|
inbox/utils/sending.py,sha256=BKelTZnbkdSLGpjOY6IRTrzj-Hnw2pPZ7RYQGwe-tqk,2179
|
97
97
|
incident/README.md,sha256=4vbZTJj7uUmq8rogYngxqNYjFTlBOujfWUGheLoFKMc,1114
|
98
98
|
incident/__init__.py,sha256=xgdt3z3z7ygjWv5HxhiWgBtB2W3IUJmmR88NSyUeHuo,3455
|
99
|
-
incident/extra/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
100
|
-
incident/extra/abuse.py,sha256=1eBJWhhzQ6EF7mkchI_QD3h0UH4Qiw_iXvsQgJdmjcg,4373
|
101
99
|
incident/migrations/0001_initial.py,sha256=KmJRau3a2QFRaUwUrFUgY2p7FQZCODv3F-Sl0ZArpu0,9720
|
102
100
|
incident/migrations/0002_event_component_event_component_id.py,sha256=Qfu3ndJKh4v7953ULTUZlSa3mVI-lnFIq9VFN1Rbs7Q,595
|
103
101
|
incident/migrations/0003_rule_action.py,sha256=LNqV52qOjxxe3L8qEdln-Hd2voFcpyjOZ_cEsasrv7s,425
|
@@ -116,14 +114,14 @@ incident/migrations/0015_rule_title_template_alter_incident_state.py,sha256=FPUD
|
|
116
114
|
incident/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
117
115
|
incident/models/__init__.py,sha256=NMphuhb0RTMf7Ov4QkNv7iv6_I8Wtr3xQ54yjX_a31M,209
|
118
116
|
incident/models/event.py,sha256=FEzEKKQKLkdRrPCvv-3Um9E2UPQjyIJp314Zr2LHuiw,7976
|
119
|
-
incident/models/incident.py,sha256=
|
117
|
+
incident/models/incident.py,sha256=5unJbVcjK05moXPrmq4S9aqGW6ysIzRxD4lp_HowKLs,21940
|
120
118
|
incident/models/ossec.py,sha256=eUDRGawzuLWobKEVGKfdZisDnyjS_Hlxi0T_GCSLCCI,2252
|
121
119
|
incident/models/rules.py,sha256=aRkJ0ZnTv87nAUC1sHVkPExfb3OJ8fgHQIhnCIpIbhQ,7001
|
122
120
|
incident/models/ticket.py,sha256=S3kqGQpYLE6Y4M9IKu_60sgW-f592xNr8uufqHnvDoU,2302
|
123
121
|
incident/parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
124
122
|
incident/parsers/ossec.py,sha256=fouUsSnrdkEuqDzJ-MxmCP7ny5pCGFS3Tyf6lQSMBc4,11609
|
125
123
|
incident/periodic.py,sha256=eX1rQK6v65A9ugofTvJPSmAWei6C-3EYgzCMuGZ03jM,381
|
126
|
-
incident/rpc.py,sha256=
|
124
|
+
incident/rpc.py,sha256=sFHN1BTTPx-yYd6iCOpcGsKVHZPcD7LWcRcR0XsVquE,8768
|
127
125
|
incident/templates/email/incident_change.html,sha256=tQYphypwLukkVdwH0TB2Szz2VEJ7GnsfRS3_ZJ-MYeE,13895
|
128
126
|
incident/templates/email/incident_msg.html,sha256=MZdKhTddUF2MpiH8Z3RTQEmW_ko1n3ajeZ11KLtiLlU,13780
|
129
127
|
incident/templates/email/incident_new.html,sha256=W6nwFQROnyDfMlXub8s02ws4hGnJp16pfgp9xTm_aEc,15185
|
@@ -146,6 +144,7 @@ location/models/track.py,sha256=OdhRL1KVXlPcZkp4S6QpKc7Ctoth8VjwHs_dlZ8XHI4,1474
|
|
146
144
|
location/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
147
145
|
location/providers/iplookup/__init__.py,sha256=I0K0HZrluCsBZ1TlGGKnyavEDZ3mT-xfE7Dtq2k-F9k,790
|
148
146
|
location/providers/iplookup/abstractapi.py,sha256=gY8eqpjEasZtiBC6nNu960ZGL96FVwNS2JoZuP1GBO4,2419
|
147
|
+
location/providers/iplookup/abuse.py,sha256=1eBJWhhzQ6EF7mkchI_QD3h0UH4Qiw_iXvsQgJdmjcg,4373
|
149
148
|
location/providers/iplookup/extremeip.py,sha256=QNRGhwXXsOuJL2M-xiI2pFN_6LP2HkqSUpFosu5Q04M,1345
|
150
149
|
location/providers/iplookup/geoplugin.py,sha256=RK_6McxHYlVVMVdJ2rCafw-kqMfzMm3g_tJjBwcKXYg,2121
|
151
150
|
location/providers/iplookup/ipapi.py,sha256=cyVs_n4GYvmLsPn8jDOcfevPzWkwBs22PSzoYRzVhDo,1797
|
@@ -379,7 +378,7 @@ pushit/utils.py,sha256=IeTCGa-164nmB1jIsK1lu1O1QzUhS3BKfuXHGjCW-ck,2121
|
|
379
378
|
rest/.gitignore,sha256=TbEvWRMnAiajCTOdhiNrd9eeCAaIjRp9PRjE_VkMM5g,118
|
380
379
|
rest/README.md,sha256=V3ETc-cJu8PZIbKr9xSe_pA4JEUpC8Dhw4bQeVCDJPw,5460
|
381
380
|
rest/RemoteEvents.py,sha256=nL46U7AuxIrlw2JunphR1tsXyqi-ep_gD9CYGpYbNgE,72
|
382
|
-
rest/__init__.py,sha256=
|
381
|
+
rest/__init__.py,sha256=a3dlkSkIEGp-eiOC8pcUyVZpBh7Z58dCWy-kP_64c5g,122
|
383
382
|
rest/arc4.py,sha256=y644IbF1ec--e4cUJ3KEYsewTCITK0gmlwa5mJruFC0,1967
|
384
383
|
rest/cache.py,sha256=1Qg0rkaCJCaVP0-l5hZg2CIblTdeBSlj_0fP6vlKUpU,83
|
385
384
|
rest/crypto/__init__.py,sha256=Tl0U11rgj1eBYqd6OXJ2_XSdNLumW_JkBZnaJqI6Ldw,72
|
@@ -515,7 +514,7 @@ ws4redis/servers/uwsgi.py,sha256=VyhoCI1DnVFqBiJYHoxqn5Idlf6uJPHvfBKgkjs34mo,172
|
|
515
514
|
ws4redis/settings.py,sha256=KKq00EwoGnz1yLwCZr5Dfoq2izivmAdsNEEM4EhZwN4,1610
|
516
515
|
ws4redis/utf8validator.py,sha256=S0OlfjeGRP75aO6CzZsF4oTjRQAgR17OWE9rgZdMBZA,5122
|
517
516
|
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.
|
517
|
+
django_restit-4.2.157.dist-info/LICENSE.md,sha256=VHN4hhEeVOoFjtG-5fVv4jesA4SWi0Z-KgOzzN6a1ps,1068
|
518
|
+
django_restit-4.2.157.dist-info/METADATA,sha256=I_dHCkVtF_og1J2YA1F1AFYMGk5q2lvyZ5wFBHmIsjk,7663
|
519
|
+
django_restit-4.2.157.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
520
|
+
django_restit-4.2.157.dist-info/RECORD,,
|
incident/models/incident.py
CHANGED
@@ -10,7 +10,7 @@ from datetime import datetime, timedelta
|
|
10
10
|
from rest import log
|
11
11
|
from ws4redis import client as ws4redis
|
12
12
|
import time
|
13
|
-
from
|
13
|
+
from location.providers.iplookup import abuse
|
14
14
|
|
15
15
|
logger = log.getLogger("incident", filename="incident.log")
|
16
16
|
|
@@ -516,6 +516,8 @@ class Incident(models.Model, rm.RestModel, rm.MetaDataModel):
|
|
516
516
|
q.reporter_ip = event.reporter_ip
|
517
517
|
if rule.bundle_by in [6, 7, 8]:
|
518
518
|
q.category = event.category
|
519
|
+
if rule.bundle_by in [9] and event.group is not None:
|
520
|
+
q.group__pk = event.group.pk
|
519
521
|
return Incident.objects.filter(**q).last()
|
520
522
|
|
521
523
|
@classmethod
|
incident/rpc.py
CHANGED
@@ -2,10 +2,10 @@ from rest import decorators as rd
|
|
2
2
|
from rest import views as rv
|
3
3
|
from rest import helpers as rh
|
4
4
|
from rest import settings
|
5
|
-
from . import models as am
|
6
|
-
from .extra import abuse
|
5
|
+
from . import models as am
|
7
6
|
from .parsers import ossec
|
8
7
|
from taskqueue.models import Task
|
8
|
+
from location.providers.iplookup import abuse
|
9
9
|
import incident
|
10
10
|
|
11
11
|
LOG_REST_PREFIX = settings.get("REST_PREFIX", "api/")
|
rest/__init__.py
CHANGED
incident/extra/__init__.py
DELETED
File without changes
|
File without changes
|
File without changes
|
File without changes
|