diff --git a/configs/keys/mispKEYS.py.sample b/configs/keys/mispKEYS.py.sample new file mode 100644 index 00000000..55e00922 --- /dev/null +++ b/configs/keys/mispKEYS.py.sample @@ -0,0 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +misp_url = 'http://10.1.0.143' +misp_key = 'c5VRXJahYVux3rkPULbbILTNmAwlXU8Eas9zvl36' # The MISP auth key can be found on the MISP web interface under the automation section +misp_verifycert = True diff --git a/configs/keys/theHiveKEYS.py.sample b/configs/keys/theHiveKEYS.py.sample new file mode 100644 index 00000000..7ff9925a --- /dev/null +++ b/configs/keys/theHiveKEYS.py.sample @@ -0,0 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +the_hive_url = 'http://10.1.0.145:9000' +the_hive_key = 'KfiPGz3Bi8E5styWbC2eU4WiTKDGdf22' # The Hive auth key can be found on the The Hive web interface under the User Management +the_hive_verifycert = True diff --git a/var/www/modules/Flask_config.py b/var/www/modules/Flask_config.py index afccb9df..b8a8617b 100644 --- a/var/www/modules/Flask_config.py +++ b/var/www/modules/Flask_config.py @@ -115,18 +115,18 @@ try: else: HiveApi = TheHiveApi(the_hive_url, the_hive_key, cert=the_hive_verifycert) hive_case_url = the_hive_url+'/index.html#/case/id_here/details' - #HiveApi.do_patch(the_hive_url) except: print('The HIVE not connected') HiveApi = False hive_case_url = '#' -try: - HiveApi.get_alert(0) - print('The Hive connected') -except thehive4py.exceptions.AlertException: - HiveApi = False - print('The Hive not connected') +if HiveApi != False + try: + HiveApi.get_alert(0) + print('The Hive connected') + except thehive4py.exceptions.AlertException: + HiveApi = False + print('The Hive not connected') # VARIABLES # max_preview_char = int(cfg.get("Flask", "max_preview_char")) # Maximum number of character to display in the tooltip