Skip to content

Instantly share code, notes, and snippets.

@syrull
Created March 28, 2022 21:40

Revisions

  1. syrull created this gist Mar 28, 2022.
    10 changes: 10 additions & 0 deletions create_taxii1_client.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    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()