forked from developerkunal/Converto
-
Notifications
You must be signed in to change notification settings - Fork 1
/
converto.sh
171 lines (167 loc) · 5.21 KB
/
converto.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
#!/bin/bash
RED='\033[1;31m'
WHITE='\033[1;37m'
printf "${RED}"
echo " ██████╗ ██████╗ ███╗ ██╗██╗ ██╗███████╗██████╗ ████████╗ ██████╗ "
echo " ██╔════╝██╔═══██╗████╗ ██║██║ ██║██╔════╝██╔══██╗╚══██╔══╝██╔═══██╗"
echo " ██║ ██║ ██║██╔██╗ ██║██║ ██║█████╗ ██████╔╝ ██║ ██║ ██║"
echo " ██║ ██║ ██║██║╚██╗██║╚██╗ ██╔╝██╔══╝ ██╔══██╗ ██║ ██║ ██║"
echo " ╚██████╗╚██████╔╝██║ ╚████║ ╚████╔╝ ███████╗██║ ██║ ██║ ╚██████╔╝"
echo " ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ "
printf "${WHITE}"
echo "-----------------------------Maded By Kunal Dawar-------------------------------"
echo "________________________________________________________________________________"
echo " Installing Kali linux on Server"
echo " 1. Yes"
echo ""
echo " 2. No"
while :
do
read INPUT_STRING
case $INPUT_STRING in
1)
echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" >> /etc/apt/sources.list
apt-get install kali-archive-keyring --allow-unauthenticated -y
apt-get update && apt-get upgrade --allow-unauthenticated -y && apt-get dist-upgrade -y --allow-unauthenticated
echo -e "\n\nInstalling the Kali Tools"
echo "Select The Metapackages you want to install..."
echo "1. Kali Linux base system"
echo "2. Kali Linux - all packages"
echo "3. Kali Linux forensic tools"
echo "4. Kali Linux complete system"
echo "5. Kali Linux GPU tools"
echo "6. Kali Linux Nethunter tools"
echo "7. Kali Linux password cracking tools"
echo "8. Kali Linux RFID tools"
echo "9. Kali Linux SDR tools"
echo "10. Kali Linux Top 10 tools"
echo "11. Kali Linux VoIP tools"
echo "12. Kali Linux webapp assessment tools"
echo "13. Kali Linux wireless tools"
while :
do
read INPUT_STRING
case $INPUT_STRING in
1)
apt-get -f install kali-linux -y --allow-unauthenticated
apt-get -f install -y --allow-unauthenticated
break
;;
2)
apt-get -f install kali-linux-all -y --allow-unauthenticated
apt-get -f install -y --allow-unauthenticated
break
;;
3)
apt-get -f install kali-linux-forensic -y --allow-unauthenticated
apt-get -f install -y --allow-unauthenticated
break
;;
4)
apt-get -f install kali-linux-full -y --allow-unauthenticated
apt-get -f install -y --allow-unauthenticated
break
;;
5)
apt-get -f install kali-linux-gpu -y --allow-unauthenticated
apt-get -f install -y --allow-unauthenticated
break
;;
6)
apt-get -f install kali-linux-nethunter -y --allow-unauthenticated
apt-get -f install -y --allow-unauthenticated
break
;;
7)
apt-get -f install kali-linux-pwtools -y --allow-unauthenticated
apt-get -f install -y --allow-unauthenticated
break
;;
8)
apt-get -f install kali-linux-rfid -y --allow-unauthenticated
apt-get -f install -y --allow-unauthenticated
break
;;
9)
apt-get -f install kali-linux-sdr -y --allow-unauthenticated
apt-get -f install -y --allow-unauthenticated
break
;;
10)
apt-get -f install kali-linux-top10 -y --allow-unauthenticated
apt-get -f install -y --allow-unauthenticated
break
;;
11)
apt-get -f install kali-linux-voip -y --allow-unauthenticated
apt-get -f install -y --allow-unauthenticated
break
;;
12)
apt-get -f install kali-linux-web -y --allow-unauthenticated
apt-get -f install -y --allow-unauthenticated
break
;;
13)
apt-get -f install kali-linux-wireless -y --allow-unauthenticated
apt-get -f install -y --allow-unauthenticated
break
;;
*)
echo -e "Invalid Choice"
;;
esac
done
apt-get install linux-headers-4.14.0-kali3-amd64 -y -y
echo "kali linux installed"
apt-get update && sudo apt-get upgrade
echo "want to install Gui VNC or VNC"
echo "1. Yes, Install Gui VNC"
echo "2. Yes,Install VNC"
echo "3. No"
while :
do
read INPUT_STRING
case $INPUT_STRING in
1)
sudo apt-get update -y
sudo apt-get install xfce4 xfce4-goodies tightvncserver -y --allow-unauthenticated
vncserver
vncserver -kill :1
mv ~/.vnc/xstartup ~/.vnc/xstartup.bak
echo "#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &" >> ~/.vnc/xstartup
sudo chmod +x ~/.vnc/xstartup
echo "#!/bin/bash
PATH="$PATH:/usr/bin/"
export USER="user"
DISPLAY="1"
DEPTH="16"
GEOMETRY="1024x768"
OPTIONS="-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY} -localhost"
. /lib/lsb/init-functions" >> /etc/init.d/vncserver
sudo chmod +x /etc/init.d/vncserver
vncserver
break
;;
2)
sudo apt-get install -y tightvncserver --allow-unauthenticated
vncserver
netstat -plant
vncserver -kill :1
break
;;
3)
break
;;
esac
done
break
;;
2)
echo "Bye Bye"
break
;;
esac
done