Repository navigation
Expand file tree
/
Copy pathCSI_Linux_Management
More file actions
78 lines (64 loc) · 1.84 KB
/
Copy pathCSI_Linux_Management
File metadata and controls
78 lines (64 loc) · 1.84 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/env bash
##CSI Cases Menu Script by CSI Linux v2021.1.24.5
##tools@csilinux.com - Jeremy Martin - infosecwriter
#define choices
opt1="Update CSI Linux"
opt2="Update CSI Tools"
opt3="Manage APIs in certain applications"
opt4="Move Cases Folder"
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 "$opt4" \
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 ) #Update CSI
/opt/csitools/powerup
Menu
;;
$opt2 ) #Update CSI tools
key=$(zenity --password --title "Enter you SUDO password." --text "Enter you SUDO password." --width 400)
cd /tmp
echo "Installing CSI Linux Tools and Menu update"
rm csi*
wget https://csilinux.com/downloads/csitools22.zip
mv csitools22.zip csitools.zip
echo $key | sudo -S unzip -o -d / csitools.zip
echo $key | sudo -S chown csi:csi -R /opt/csitools
echo $key | sudo -S chmod +x /opt/csitools/* -R
Menu
;;
$opt3 ) #Manage APIs
#Run Tool
/opt/csitools/manageapis
Menu
;;
$opt4 ) #Move the Cases folder
#Run Tool
xterm -e /opt/csitools/managecasefolder
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
}
trap finish EXIT
Menu