From 3e3e3776039e070fc8113dfe37f4620c04ee97a1 Mon Sep 17 00:00:00 2001 From: Anthony V Date: Tue, 29 Nov 2022 05:47:09 -0500 Subject: [PATCH] Add files via upload --- file_locations.py | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 file_locations.py diff --git a/file_locations.py b/file_locations.py new file mode 100644 index 0000000..2893c56 --- /dev/null +++ b/file_locations.py @@ -0,0 +1,43 @@ +import datetime +import logging +import os + +# Notes: Ross, thank you for this idea! + +# MalwareBazaar API URL +mb_url = 'https://mb-api.abuse.ch/api/v1' + +# Create datetime for log file +today_ = datetime.datetime.today() +today = today_.strftime('%Y-%m-%d_%H_%M_%S') + +# Create log file with datetime value +logfile = os.path.join(os.environ['USERPROFILE'], 'Desktop', + 'Python_Manipulated_Files', 'Python_Script_Logs', 'MalwareBazaar_AMP_' + str(today) + '.log') + +# Set up logger file +logger = logging.getLogger(__name__) +logger.setLevel(logging.INFO) +formatter = logging.Formatter('%(asctime)s:%(levelname)s:%(message)s') +file_handler = logging.FileHandler(logfile) +file_handler.setFormatter(formatter) +logger.addHandler(file_handler) + +# MalwareBazaar output directory +sha_output_files = os.path.join(os.environ['USERPROFILE'], 'Desktop', + 'Python_Manipulated_Files', 'MalwareBazaar') + +# All MalwareBazaar hashes in one text file +main_mb_df_file = os.path.join(os.environ['USERPROFILE'], 'Desktop', + 'Python_Manipulated_Files', 'MalwareBazaar', 'AA_Quarantine_&_Prevent_Install.txt') + +# All AMP hashes in one text file +amp_main_file = os.path.join(os.environ['USERPROFILE'], 'Desktop', + 'Python_Manipulated_Files', 'MalwareBazaar_Comparison_File', 'comparison.txt') + +# URL for dominant Simple Custom Detection List. *** Modify main GUID here*** +main_simple_custom_detections_url = 'https://api.amp.cisco.com/v1/file_lists/modify_main_guid_here/files' + + +# URL for all Simple Custom Detections Lists +all_simple_custom_detections_url = 'https://api.amp.cisco.com/v1/file_lists/simple_custom_detections' \ No newline at end of file