fix: paste submit css

pull/237/head
Terrtia 2018-07-16 10:32:41 +02:00
parent fce324e370
commit 6f69da0c0d
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
3 changed files with 8 additions and 1 deletions

View File

@ -149,7 +149,6 @@ if __name__ == "__main__":
if flag_the_hive: if flag_the_hive:
try: try:
HiveApi = TheHiveApi(the_hive_url, the_hive_key, cert = the_hive_verifycert) HiveApi = TheHiveApi(the_hive_url, the_hive_key, cert = the_hive_verifycert)
r_serv_db.set('ail:thehive', True)
except: except:
HiveApi = False HiveApi = False
flag_the_hive = False flag_the_hive = False
@ -161,10 +160,12 @@ if __name__ == "__main__":
if HiveApi != False and flag_the_hive: if HiveApi != False and flag_the_hive:
try: try:
HiveApi.get_alert(0) HiveApi.get_alert(0)
r_serv_db.set('ail:thehive', True)
print('Connected to The HIVE:', the_hive_url) print('Connected to The HIVE:', the_hive_url)
except thehive4py.exceptions.AlertException: except thehive4py.exceptions.AlertException:
HiveApi = False HiveApi = False
flag_the_hive = False flag_the_hive = False
r_serv_db.set('ail:thehive', False)
print('Not connected to The HIVE') print('Not connected to The HIVE')
while True: while True:

View File

@ -31,6 +31,8 @@
<div class="row"> <div class="row">
<!-- /.col-lg-12 --> <!-- /.col-lg-12 -->
<form action="/PasteSubmit/submit" id="pasteSubmitForm" method="post" enctype=multipart/form-data onsubmit="submitPaste()"> <form action="/PasteSubmit/submit" id="pasteSubmitForm" method="post" enctype=multipart/form-data onsubmit="submitPaste()">
<input type="hidden" id="tags_taxonomies" name="tags_taxonomies" value="test"> <input type="hidden" id="tags_taxonomies" name="tags_taxonomies" value="test">

View File

@ -235,6 +235,10 @@ def showHash():
first_seen=first_seen, first_seen=first_seen,
last_seen=last_seen, nb_seen_in_all_pastes=nb_seen_in_all_pastes, sparkline_values=sparkline_values) last_seen=last_seen, nb_seen_in_all_pastes=nb_seen_in_all_pastes, sparkline_values=sparkline_values)
@base64Decoded.route('/base64Decoded/test_json')
def test_json():
return jsonify([{'date': "2018-09-09", 'value': 34}, {'date': "2018-09-10", 'value': 56}, {'date': "2018-09-11", 'value': 0}, {'date': "2018-09-12", 'value': 12}])
@base64Decoded.route('/base64Decoded/hash_by_type_json') @base64Decoded.route('/base64Decoded/hash_by_type_json')
def hash_by_type_json(): def hash_by_type_json():
type = request.args.get('type') type = request.args.get('type')