@@ -0,0 +1,1845 @@
+#!python3%0A'''%0ACreates folder for the case on the user's desktop to track cases. If%0Athe user wants to store it somewhere other than the desktop, change the%0Alocation variable under local_variables.%0ARequires that the folder Cases already exists at location.%0A'''%0A%0A# TODO: Align with sub folders to the Blue Team handbook%0A# TODO: create this as a stand alone package to import via PIP%0A# TODO: Maybe... Look at changing keywords to regex replace spaces with%0A# underscores%0A%0A%0A# imports%0Aimport os%0Aimport sys%0Afrom time import strftime%0A%0A%0Adef local_variables():%0A    home = os.path.expanduser('~')%0A    location = 'Desktop'%0A    case_folder = 'Cases'%0A    combine = os.path.join(home, location, case_folder)%0A    return combine%0A%0A%0Adef test_case_num(folder, case_number):%0A    for filename in os.listdir(folder):%0A        if case_number in filename:%0A            print('Case %7B%7D already has a folder'.fortmat(case_number))%0A            print(filename)%0A            os.system('pause')%0A            sys.exit(1)%0A    return%0A%0A%0Adef main():%0A    # Get information to crate the case folder%0A    local_var = local_variables()%0A    case_num = input('Paste your case number: ')%0A    test_case_num(local_var, case_num)%0A    case_title = input('Keywords to summarize case use. Please underscores '%0A                       'to separate words: ')%0A    case_time = str(strftime('%25Y_%25m_%25d'))%0A    case_folder = case_time + '_' + case_num + '_' + case_title%0A    new_folder = os.path.join(local_var, case_folder)%0A    # Create the Case folder, live sample subfolder, and case notes%0A    # txt file%0A    os.mkdir(new_folder)%0A    case_notes = case_num + '_case_notes.txt'%0A    os.chdir(new_folder)%0A    os.mkdir('live_samples')%0A    open(case_notes, 'w').close()%0A    # Opens case folder and case notes file.%0A    os.startfile(new_folder)%0A    os.startfile(case_notes)%0A%0A%0Aif __name__ == '__main__':%0A    main()%0A

Create case_folder.py