/
CSI_Case_Management
64 lines (53 loc) · 1.46 KB
/
CSI_Case_Management
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env bash
##CSI Cases Menu Script by CSI Linux v2021.1.24.5
##tools@csilinux.com - Jeremy Martin - infosecwriter
#define choices
opt1="Manage APIs in certain applications"
opt2="Move Cases Folder"
opt3="Edit Agency Information"
opt99="Exit"
timestamp=$(date +%Y-%m-%d:%H:%M)
closecase=$(date +%Y%m%d%H%M)
fqdnregex="\b((xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}\b"
source /opt/csitools/sharedfunctions
Menu () {
csimenu=$(zenity --list --title "CSI Case Management Menu" --text "The CSI Case Management System allows you to manage the case or run\ninvestigation tools. What would you like to do?" --width=350 --height=250 --radiolist \
--column "Pick" --column "Option" \
TRUE "$opt1" \
FALSE "$opt2" \
FALSE "$opt3" \
FALSE "$opt99" \
2> >(grep -v 'GtkDialog' >&2))
echo "Pick your option to run..."
_stopwatch; echo "$stopwatch: CSI Case Management Menu." >> ~/Cases/$cases/audit.log
case $csimenu in
$opt1 ) #Manage APIs
#Run Tool
/opt/csitools/manageapis
Menu
;;
$opt2 ) #Move the Cases folder
#Run Tool
/opt/csitools/managecasefolder
Menu
;;
$opt3 ) #Edit the variables for the Report Generator the Cases folder
#Run Tool
gedit /opt/csitools/startcsiconfig &
Menu
;;
$opt99 ) #Exit
if ! which wmctrl > /dev/null; then
sudo apt-get install wmctrl
fi
wmctrl -r "Terminal" -b add,shaded
exit
;;
*) echo "$0: unknown option specified: " >&2
exit
esac
wmctrl -r "Terminal" -b add,shaded
exit
}
trap finish EXIT
Menu