Skip to content

Instantly share code, notes, and snippets.

@chrisdoman
Created November 7, 2017 11:09
Show Gist options
  • Save chrisdoman/92a9d11eacd397b7f1002352554c772e to your computer and use it in GitHub Desktop.
Save chrisdoman/92a9d11eacd397b7f1002352554c772e to your computer and use it in GitHub Desktop.
from OTXv2 import OTXv2
# API key for the user api_example
# Pulses will appear at https://otx.alienvault.com/user/api_example/pulses
otx = OTXv2("766ba1df3ab54db9c0fcbf62ef048c3a04c260e8ca65b6c25346084b7b4719ad")
name = 'Test Pulse'
indicators = [
{'indicator': '69.73.130.198', 'type': 'IPv4'},
{'indicator': 'aoldaily.com', 'type': 'Domain'}
]
response = otx.create_pulse(name=name ,public=True ,indicators=indicators ,tags=[] , references=[])
print str(response)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment