-
Notifications
You must be signed in to change notification settings - Fork 0
/
kali.sh
40 lines (31 loc) · 1.2 KB
/
kali.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
#!/bin/bash
while true ;do
echo "which kali version are you using ?"
echo "new repository file for 2016.1 or above"
echo "1. kali Rolling"
echo "retired/ old repository file for old system kali sana and moto"
echo "2. kali sana"
echo "3. kali moto"
read count
if [ $count -eq 1 ]
then
echo "deb http://http.kali.org/kali kali-rolling main non-free contrib">>/etc/apt/sources.list
echo "# For additional repos">>/etc/apt/sources.list
echo "deb-src http://http.kali.org/kali kali-rolling main contrib non-free" >> /etc/apt/sources.list
exit
elif [ $count -eq 2 ]
then
echo "deb http://old.kali.org/kali sana main non-free contrib" > /etc/apt/sources.list
echo "# For source package access, uncomment the following line">>/etc/apt/sources.list
echo "deb-src http://old.kali.org/kali sana main non-free contrib">> /etc/apt/sources.list
exit
elif [ $count -eq 3 ]
then
echo "deb http://old.kali.org/kali moto main non-free contrib" > /etc/apt/sources.list
echo "# For source package access, uncomment the following line" >>/etc/apt/sources.list
echo "deb-src http://old.kali.org/kali moto main non-free contrib" >>/etc/apt/sources.list
exit
else
echo " You are out of range please enter number 1,2 or 3"
fi
done