new: Added ability to set collections
parent
c2846fd5d9
commit
e271c95979
|
@ -29,3 +29,10 @@ zmq:
|
||||||
misp:
|
misp:
|
||||||
url: "http://localhost"
|
url: "http://localhost"
|
||||||
api: KEY
|
api: KEY
|
||||||
|
|
||||||
|
taxii:
|
||||||
|
auth:
|
||||||
|
username: ABC
|
||||||
|
password: CDE
|
||||||
|
collections:
|
||||||
|
- collection
|
||||||
|
|
|
@ -75,7 +75,7 @@ while True:
|
||||||
try:
|
try:
|
||||||
cli.push(pkg.to_xml().decode("utf-8"), "urn:stix.mitre.org:xml:1.1.1",
|
cli.push(pkg.to_xml().decode("utf-8"), "urn:stix.mitre.org:xml:1.1.1",
|
||||||
uri="http://{}/services/inbox".format(config["domain"]),
|
uri="http://{}/services/inbox".format(config["domain"]),
|
||||||
collection_names=["collection"])
|
collection_names=config["taxii"].get("collections", ["collection"]))
|
||||||
|
|
||||||
log.info("Pushed!")
|
log.info("Pushed!")
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
|
|
Loading…
Reference in New Issue