-
Notifications
You must be signed in to change notification settings - Fork 14
/
taxiidiscovery.py
32 lines (23 loc) · 903 Bytes
/
taxiidiscovery.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from taxii2client import Server
discovery="https://osint.digitalside.it/taxii2"
username="guest"
password="guest"
server = Server(discovery, user=username, password=password)
print("=============================")
print(server.title)
print("=============================")
print(server.description+"\n")
print("Discovery URL: "+discovery+"\n")
print("Available API(s): "+str(len(server.api_roots))+"\n")
for api in server.api_roots:
print("ROOT API: "+api.url)
for coll in api.collections:
print("\t Collection: "+coll.title)
print("\t Description: "+coll.description)
print("\t ID: "+coll.id)
for media in coll.media_types:
print("\t Media type: "+media)
print("=======================================\n")
print("For info please contact: "+server.contact+"\n")