mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-26 15:57:16 +00:00
fix hive connection + add keys sample
This commit is contained in:
parent
0ee36e484f
commit
bc40bb3c38
3 changed files with 19 additions and 7 deletions
6
configs/keys/mispKEYS.py.sample
Normal file
6
configs/keys/mispKEYS.py.sample
Normal file
|
@ -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
|
6
configs/keys/theHiveKEYS.py.sample
Normal file
6
configs/keys/theHiveKEYS.py.sample
Normal file
|
@ -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
|
|
@ -115,12 +115,12 @@ try:
|
||||||
else:
|
else:
|
||||||
HiveApi = TheHiveApi(the_hive_url, the_hive_key, cert=the_hive_verifycert)
|
HiveApi = TheHiveApi(the_hive_url, the_hive_key, cert=the_hive_verifycert)
|
||||||
hive_case_url = the_hive_url+'/index.html#/case/id_here/details'
|
hive_case_url = the_hive_url+'/index.html#/case/id_here/details'
|
||||||
#HiveApi.do_patch(the_hive_url)
|
|
||||||
except:
|
except:
|
||||||
print('The HIVE not connected')
|
print('The HIVE not connected')
|
||||||
HiveApi = False
|
HiveApi = False
|
||||||
hive_case_url = '#'
|
hive_case_url = '#'
|
||||||
|
|
||||||
|
if HiveApi != False
|
||||||
try:
|
try:
|
||||||
HiveApi.get_alert(0)
|
HiveApi.get_alert(0)
|
||||||
print('The Hive connected')
|
print('The Hive connected')
|
||||||
|
|
Loading…
Reference in a new issue