mirror of https://github.com/MISP/PyMISP
re-added error checking for defaults
parent
5ee18d433f
commit
60ba858527
|
@ -5,5 +5,5 @@ misp_url = 'https://<your MISP URL>/'
|
|||
misp_key = 'Your MISP auth key' # The MISP auth key can be found on the MISP web interface under the automation section
|
||||
misp_verifycert = True
|
||||
misp_client_cert = ''
|
||||
proofpoint_sp = '' # Service Principal from TAP (https://threatinsight.proofpoint.com/<custID>/settings/connected-applications)
|
||||
proofpoint_secret = ''
|
||||
proofpoint_sp = '<proofpoint service principal>' # Service Principal from TAP (https://threatinsight.proofpoint.com/<custID>/settings/connected-applications)
|
||||
proofpoint_secret = '<proofpoint secret>'
|
|
@ -4,6 +4,10 @@ import json
|
|||
from pymisp import ExpandedPyMISP, MISPEvent, MISPOrganisation
|
||||
from keys import misp_url, misp_key, misp_verifycert, proofpoint_sp, proofpoint_secret
|
||||
|
||||
if proofpoint_secret == '<proofpoint secret>':
|
||||
print('Set the proofpoint_secret in keys.py before running. Exiting...')
|
||||
quit()
|
||||
|
||||
# initialize PyMISP and set url for Panorama
|
||||
misp = ExpandedPyMISP(url=misp_url, key=misp_key, ssl=misp_verifycert)
|
||||
|
||||
|
|
Loading…
Reference in New Issue