stratosphereips / Manati

A web-based tool to assist the work of the intuitive threat analysts.
112 stars 28 forks source link

[bug] WHOIS Similarity Distance Module not working (ip-api.com) #11

Closed PaulosV closed 6 years ago

PaulosV commented 6 years ago
postgres    | ERROR:  duplicate key value violates unique constraint "manati_indicators_of_compromise_value_key"
postgres    | DETAIL:  Key (value)=(ip-api.com) already exists.
postgres    | STATEMENT:  INSERT INTO "manati_indicators_of_compromise" ("created_at", "updated_at", "value", "ioc_type") VALUES ('2017-11-22T18:45:36.512178+00:00'::timestamptz, '2017-11-22T18:45:36.512507+00:00'::timestamptz, 'ip-api.com', 'domain') RETURNING "manati_indicators_of_compromise"."id"
web_1       | ERROR Error creating domain IOC , weblog-id 1:7 | duplicate key value violates unique constraint "manati_indicators_of_compromise_value_key"
web_1       | DETAIL:  Key (value)=(ip-api.com) already exists.
web_1       | 
web_1       | ERROR Internal Server Error: /manati_project/manati_ui/analysis_session/weblog/modules_whois_related
web_1       | Traceback (most recent call last):
web_1       |   File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 149, in get_response
web_1       |     response = self.process_exception_by_middleware(e, request)
web_1       |   File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 147, in get_response
web_1       |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
web_1       |   File "/usr/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
web_1       |     return view_func(*args, **kwargs)
web_1       |   File "/code/manati_ui/views.py", line 238, in find_domains_whois_related
web_1       |     domain_ioc = weblog.domain_ioc
web_1       |   File "/code/manati_ui/models.py", line 343, in domain_ioc
web_1       |     self.create_IOCs()
web_1       |   File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py", line 184, in inner
web_1       |     return func(*args, **kwargs)
web_1       |   File "/code/manati_ui/models.py", line 380, in create_IOCs
web_1       |     return ioc_domain, ioc_ip
web_1       | UnboundLocalError: local variable 'ioc_domain' referenced before assignment