Created
November 7, 2017 11:09
-
-
Save chrisdoman/92a9d11eacd397b7f1002352554c772e to your computer and use it in GitHub Desktop.
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 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