-
Notifications
You must be signed in to change notification settings - Fork 5
/
KBuild
executable file
·74 lines (66 loc) · 1.99 KB
/
KBuild
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
#!/bin/bash
## by John Modica
### @CybernetiX S3C
HEIGHT=15
WIDTH=40
CHOICE_HEIGHT=10
BACKTITLE="Kali Linux DB Update Menu"
TITLE="Kali Linux Main Build"
MENU="Choose one of the following options:"
OPTIONS1=(1 "Add Kali Sources"
2 "Kali Keysign"
3 "Kali Update & Build Full"
4 "Kali Update & Build Everything"
5 "Main Menu"
6 "Quit")
CHOICE=$(dialog --clear \
--backtitle "$BACKTITLE" \
--title "$TITLE" \
--menu "$MENU" \
$HEIGHT $WIDTH $CHOICE_HEIGHT \
"${OPTIONS1[@]}" \
2>&1 >/dev/tty)
clear
case $CHOICE in
1)
echo "Adding Kali Linux Sources.";
sleep 2
sudo echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" >> /etc/apt/sources.list;
echo "Sources Added."
sleep 1
KBuild;
;;
2)
echo "Adding Kali Linux Keys.";
sleep 2
sudo apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6;
sleep 1
echo "Keys Added"
KBuild;
;;
3)
echo "Updating, Upgrading, and Building Kali Linux Full.";
sleep 2
sudo apt update && sudo apt -y full-upgrade && sudo apt install kali-linux-large -y;
sleep 1
echo "Kali Linux Full is now installed. Please reboot";
sleep 5
KBuild;
;;
4)
echo "Updating, Upgrading, and Building Kali Linux Everything.";
sleep 2
sudo apt update && sudo apt -y full-upgrade && sudo apt install kali-linux-everything -y;
sleep 1
echo "Kali Linux Everything is now installed. Please reboot";
sleep 5
KBuild;
;;
5)
echo "Main Menu";
sleep 1
kali-db;
;;
6)
echo "Done";
esac