A alienvault/get_my_pulses.py => alienvault/get_my_pulses.py +12 -0
@@ 0,0 1,12 @@
+#!/usr/bin/env python
+
+# Very Simple CLI example to get indicator details from Alienvault OTX
+
+from OTXv2 import OTXv2
+import IndicatorTypes
+import argparse
+import os
+
+otx = OTXv2("<my api key>")
+
+print (str(otx.getall(max_items=2, limit=3)))
A alienvault/search_sha256.py => alienvault/search_sha256.py +12 -0
@@ 0,0 1,12 @@
+#!/usr/bin/env python
+
+# Very Simple CLI example to get indicator details from Alienvault OTX
+
+from OTXv2 import OTXv2
+import IndicatorTypes
+import argparse
+import os
+
+otx = OTXv2("<your api key>")
+
+print (str(otx.get_indicator_details_full(IndicatorTypes.FILE_HASH_SHA256, "46b501600a4ee30d014c5356bad83ad2107ba9b9c58ffc717f60f986322721d4")))