-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDialog
41 lines (38 loc) · 881 Bytes
/
Dialog
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
#!/bin/sh
# Name : ScanPro
# Date : May 2022
HEIGHT=15
WIDTH=40
CHOICE_HEIGHT=4
BACKTITLE="Anlominus ~ ScanPro"
TITLE="ScanPro Menu"
MENU="Choose one of the following options:"
OPTIONS=(
1 "Target Selection"
2 "Port Selection"
3 "Scan Types"
4 "Service and Operating System Detection"
5 "Output formats"
6 "NSE Scripting"
7 "HTTP info gathering"
)
CHOICE=$(dialog --clear \
--backtitle "$BACKTITLE" \
--title "$TITLE" \
--menu "$MENU" \
$HEIGHT $WIDTH $CHOICE_HEIGHT \
"${OPTIONS[@]}" \
2>&1 >/dev/tty)
clear
case $CHOICE in
1)
read -p " └──╼ Enter selection [0-7] > "
echo "You chose Option 1"
;;
2)
echo "You chose Option 2"
;;
3)
echo "You chose Option 3"
;;
esac