diff --git a/INSTALL/.get-misp-automation.py.swp b/INSTALL/.get-misp-automation.py.swp new file mode 100644 index 000000000..9a16d6db7 Binary files /dev/null and b/INSTALL/.get-misp-automation.py.swp differ diff --git a/INSTALL/get-misp-automation.py b/INSTALL/get-misp-automation.py new file mode 100644 index 000000000..61d7591c3 --- /dev/null +++ b/INSTALL/get-misp-automation.py @@ -0,0 +1,23 @@ +#!/usr/bin/python + +''' +Example file on how to get the exported IDS data from MISP + +Add your API key, set the MISP host and define the output file. +''' + +import urllib2 + +MISP_HOST="http:/" +API_KEY="" +EXPORT_DATA="events/nids/suricata/download" +OUTPUT_FILE="misp-suricata" + +URL="%s/%s" % (MISP_HOST, EXPORT_DATA) +request = urllib2.Request(URL) +f = open(OUTPUT_FILE,'w') +request.add_header('Authorization', API_KEY) +data = urllib2.urlopen(request).read() +f.write(data) +f.close() +