viper-framework / viper-modules

BSD 3-Clause "New" or "Revised" License
6 stars 11 forks source link

error using misp pull #4

Open glallen01 opened 4 years ago

glallen01 commented 4 years ago

https://github.com/viper-framework/viper-modules/blob/d21d555ccc86e3d3e2bbc823902e394357d1ab83/misp.py#L467

misp pull doesn't work without:

diff --git a/misp.py b/misp.py
index 02b26cd..18c0adc 100644
--- a/misp.py
+++ b/misp.py
@@ -504,7 +504,7 @@ class MISP(Module):
             return
         open_session = len(self.args.event) == 1
         for e in self.args.event:
-            event = self.misp.get(e)
+            event = self.misp.get_event(e)
             if not self._has_error_message(event):
                 self._search_local_hashes(event, open_session)
                 self._dump()
adulau commented 4 years ago

This should have been solved in this commit https://github.com/viper-framework/viper-modules/pull/3 - feel free to test.