OpenTAXII were nice and fixed their mySQL bug <3
parent
b2a147f910
commit
3a588632da
|
@ -1 +1 @@
|
|||
Subproject commit ae8514c7afce42cd7a26b1c4d533fbc2116ade3b
|
||||
Subproject commit 03526996a1a40a7b6df15b03e9c528cd69c5232e
|
|
@ -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
|
||||
|
|
|
@ -8,17 +8,19 @@ from opentaxii.signals import (
|
|||
|
||||
## CONFIG
|
||||
|
||||
CONFIG = {
|
||||
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"],
|
||||
MISP = pymisp.PyMISP(
|
||||
CONFIG["MISP_URL"],
|
||||
CONFIG["MISP_API"],
|
||||
)
|
||||
|
||||
def post_stix(manager, content_block, collection_ids, service_id):
|
||||
with open("/tmp/test.txt", "w") as f:
|
||||
f.write("connect!")
|
||||
print("Content: {}".format(content_block.content))
|
||||
|
||||
CONTENT_BLOCK_CREATED.connect(post_stix)
|
||||
|
|
Loading…
Reference in New Issue