From 66c36f0a9e954abd46224fb88a4de34bd16b0526 Mon Sep 17 00:00:00 2001 From: terceranexus6 Date: Thu, 18 May 2023 14:22:24 +0200 Subject: [PATCH] adding other scripts --- alienvault/get_my_pulses.py | 12 ++++++++++++ alienvault/search_sha256.py | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 alienvault/get_my_pulses.py create mode 100755 alienvault/search_sha256.py diff --git a/alienvault/get_my_pulses.py b/alienvault/get_my_pulses.py new file mode 100755 index 0000000..d73e665 --- /dev/null +++ b/alienvault/get_my_pulses.py @@ -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("") + +print (str(otx.getall(max_items=2, limit=3))) diff --git a/alienvault/search_sha256.py b/alienvault/search_sha256.py new file mode 100755 index 0000000..f7dd3e4 --- /dev/null +++ b/alienvault/search_sha256.py @@ -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("") + +print (str(otx.get_indicator_details_full(IndicatorTypes.FILE_HASH_SHA256, "46b501600a4ee30d014c5356bad83ad2107ba9b9c58ffc717f60f986322721d4"))) -- 2.45.2