This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
kalibuntu.sh
executable file
·139 lines (128 loc) · 3.54 KB
/
kalibuntu.sh
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#! /usr/bin/env bash
check_sudo () {
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
return
}
COLUMNS=4
kalibuntu () {
source spinner.sh
start_spinner 'Cleaning log'
rm kalibuntu.log
touch kalibuntu.log
sleep 2
stop_spinner $?
clear
echo "export PATH=$PATH:$(pwd)" >> ~/.profile
source ~/.profile
. banner.sh
# create this variable to run commands in child scripts with normal user
export DEFAULT_USER=$SUDO_USER
# display banner
echo " "
tput bold
echo "Select the category of your tool (enter number):"
tput sgr 0
echo " "
categories[0]=Information\ Gathering
categories[1]=Vulnerability\ Analysis
categories[2]=Wireless\ Attacks
categories[3]=Web\ Applications
categories[4]=Exploitation\ Tools
categories[5]=Forensics\ Tools
categories[6]=Sniffing\ Spoofing
categories[7]=Password\ Attacks
categories[8]=Reverse\ Engineering
categories[9]=Hardware\ Hacking
categories[10]=Reporting\ Tools
categories[11]=Update\ All
categories[12]="exit"
select category in "${categories[@]}"; do
case $category in
Information\ Gathering)
clear
cd tools/1-information_gathering/ || exit
./install_script-1.sh
break
;;
Vulnerability\ Analysis)
clear
cd tools/2-vulnerability_analysis/ || exit
./install_script-2.sh
break
;;
Wireless\ Attacks)
clear
cd tools/3-wireless_attacks/ || exit
./install_script-3.sh
break
;;
Web\ Applications)
clear
cd tools/4-web_applications/ || exit
./install_script-4.sh
break
;;
Exploitation\ Tools)
clear
cd tools/5-exploitation_tools/ || exit
./install_script-5.sh
break
;;
Forensics\ Tools)
clear
cd tools/6-forensics_tools/ || exit
./install_script-6.sh
break
;;
Sniffing\ Spoofing)
clear
cd tools/7-sniffing_spoofing/ || exit
./install_script-7.sh
break
;;
Password\ Attacks)
clear
cd tools/8-password_attacks/ || exit
./install_script-8.sh
break
;;
Reverse\ Engineering)
clear
cd tools/9-reverse_engineering/ || exit
./install_script-9.sh
break
;;
Hardware\ Hacking)
clear
cd tools/10-hardware_hacking/ || exit
./install_script-10.sh
break
;;
Reporting\ Tools)
clear
cd tools/11-reporting_tools/ || exit
./install_script-11.sh
break
;;
Update\ All)
cd tools/ || exit
./update_all.sh
break
;;
exit)
clear
exit
;;
*)
kalibuntu
break
;;
esac
done
return
}
check_sudo
kalibuntu