Merge pull request #328 from kirzaks/master

Check if IOC values are in warninglist
pull/331/head
Raphaël Vinot 2019-02-01 15:17:15 +01:00 committed by GitHub
commit 1e5e00bde3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -1942,6 +1942,12 @@ class PyMISP(object):
"""Disable a warninglist by id."""
return self.toggle_warninglist(warninglist_id=warninglist_id, force_enable=False)
def check_warninglist(self, value):
"""Check if IOC values are in warninglist"""
url = urljoin(self.root_url, '/warninglists/checkValue')
response = self._prepare_request('POST', url, json.dumps(value))
return self._check_response(response)
# ############## NoticeLists ##################
def get_noticelists(self):