OpenTAXII were nice and fixed their mySQL bug <3

travis
Hannah Ward 2016-11-18 11:45:30 +00:00
parent b2a147f910
commit 3a588632da
No known key found for this signature in database
GPG Key ID: 6F3BAD60DE190290
3 changed files with 15 additions and 13 deletions

@ -1 +1 @@
Subproject commit ae8514c7afce42cd7a26b1c4d533fbc2116ade3b
Subproject commit 03526996a1a40a7b6df15b03e9c528cd69c5232e

View File

@ -16,7 +16,7 @@ auth_api:
secret: ILoveTheSecretStringIsIsGreatButNeedsToBeChangedFrienderino
logging:
opentaxii: info
opentaxii: debug
root: info
hooks: misp_taxii_hooks.hooks.opentaxii.hooks
hooks: misp_taxii_hooks.hooks

View File

@ -8,17 +8,19 @@ from opentaxii.signals import (
## CONFIG
CONFIG = {
"MISP_URL" : "localhost",
"MISP_API" : "DEADBEEF",
}
MISP = pymisp.PyMISP(
config["MISP_URL"],
config["MISP_API"],
)
def post_stix(manager, content_block, collection_ids, service_id):
CONFIG = {
"MISP_URL" : "localhost",
"MISP_API" : "DEADBEEF",
}
MISP = pymisp.PyMISP(
CONFIG["MISP_URL"],
CONFIG["MISP_API"],
)
with open("/tmp/test.txt", "w") as f:
f.write("connect!")
print("Content: {}".format(content_block.content))
CONTENT_BLOCK_CREATED.connect(post_stix)