Skip to content
Snippets Groups Projects
Commit 912f2061 authored by Chukwuemeka Michael Muonagor's avatar Chukwuemeka Michael Muonagor
Browse files

Upload New File

parent cac9097c
No related branches found
No related tags found
No related merge requests found
import requests
import sys
#IP address of the machine on which the IBI is running
host = sys.argv[1]
#url to send intents
#api_url = "http://192.168.56.1:7777/intents"
api_url = "http://" + host + ":7777/intents"
intent_dict_main = {
"intent_type": "mitigation",
"threat": "ddos",
"host": ['192.168.56.5', '192.168.56.3'],
"duration": "600"
}
response = requests.put(api_url, json=intent_dict_main)
#print(response.json())
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment