From 47729c413fee9cfb2150ce1d7a1d9c3b9a7fc2ea Mon Sep 17 00:00:00 2001 From: Carlos Borges Date: Fri, 26 Apr 2019 17:15:45 -0300 Subject: [PATCH] Update PyMISP_tutorial.ipynb The function to collect event_id and put it into a list isn't looking into each MISPAttribute. Just updated the script to look it. --- docs/tutorial/PyMISP_tutorial.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/tutorial/PyMISP_tutorial.ipynb b/docs/tutorial/PyMISP_tutorial.ipynb index c12a217..41282e1 100644 --- a/docs/tutorial/PyMISP_tutorial.ipynb +++ b/docs/tutorial/PyMISP_tutorial.ipynb @@ -358,9 +358,10 @@ "# And the to_ids flag is set\n", "attributes = misp.search(controller='attributes', type_attribute='ip-src', to_ids=0, pythonify=True)\n", "\n", + "# Collect all event_id matching the searched attribute\n", "event_ids = set()\n", "for attr in attributes:\n", - " event_ids.add(event_id)\n", + " event_ids.add(attr.event_id)\n", "\n", "# Fetch all related events\n", "for event_id in event_ids:\n",