Skip to content

Instantly share code, notes, and snippets.

@syrull
Created March 28, 2022 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syrull/73b1798f90c4109a13ef9fceb1f2f858 to your computer and use it in GitHub Desktop.
Save syrull/73b1798f90c4109a13ef9fceb1f2f858 to your computer and use it in GitHub Desktop.
Creating a TAXII 1 client for OTXAlienVault.
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