Created
March 28, 2022 21:40
-
-
Save syrull/73b1798f90c4109a13ef9fceb1f2f858 to your computer and use it in GitHub Desktop.
Creating a TAXII 1 client for OTXAlienVault.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cabby import create_client | |
from cabby.entities import Collection | |
client = create_client("otx.alienvault.com", use_https=True, discovery_path="/taxii/discovery") | |
client.set_auth(username="username", password="password") | |
collections = client.get_collections("https://otx.alienvault.com/taxii/collections") | |
content_block = client.poll(collections[0].name) | |
for block in content_block: | |
print(block) | |
breakpoint() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment