From 60ba85852763ea1de965438f18fbd9743c0910c3 Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 17 Feb 2021 15:06:25 -0500 Subject: [PATCH] re-added error checking for defaults --- examples/keys.py.sample | 4 ++-- examples/proofpoint_tap.py | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/keys.py.sample b/examples/keys.py.sample index 7043aaa..3c59bfe 100644 --- a/examples/keys.py.sample +++ b/examples/keys.py.sample @@ -5,5 +5,5 @@ misp_url = 'https:///' 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//settings/connected-applications) -proofpoint_secret = '' \ No newline at end of file +proofpoint_sp = '' # Service Principal from TAP (https://threatinsight.proofpoint.com//settings/connected-applications) +proofpoint_secret = '' \ No newline at end of file diff --git a/examples/proofpoint_tap.py b/examples/proofpoint_tap.py index 1cc3bb6..06e826e 100644 --- a/examples/proofpoint_tap.py +++ b/examples/proofpoint_tap.py @@ -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 == '': + 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)