Skip to content

Commit c4824fb

Browse files
committed
Create deb2kali.sh
1 parent a7c5264 commit c4824fb

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

deb2kali.sh

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/bin/bash
2+
3+
### Replace the Debian repos with Kali repos ###
4+
mv /etc/apt/sources.list /etc/apt/sources.list.debian
5+
cat <<EOF > /etc/apt/sources.list
6+
# deb cdrom:[Debian GNU/Linux 2.0 _Sana_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150811-04:39]/ sana contrib main non-free
7+
8+
deb http://http.kali.org/kali sana main non-free contrib
9+
deb-src http://http.kali.org/kali sana main non-free contrib
10+
11+
deb http://security.kali.org/kali-security/ sana/updates main contrib non-free
12+
deb-src http://security.kali.org/kali-security/ sana/updates main contrib non-free
13+
EOF
14+
15+
### Add the Kali Linux GPG keys to aptitude ###
16+
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ED444FF07D8D0BF6
17+
18+
### Update and install base packages ###
19+
apt-get update
20+
apt-get -y upgrade
21+
apt-get -y dist-upgrade
22+
apt-get -y autoremove --purge
23+
apt-get -y install kali-linux
24+
25+
### Downgrade specific packages to their Kali Linux versions ###
26+
apt-get -y install tzdata=2015d-0+deb8u1
27+
apt-get -y install libc6=2.19-18
28+
apt-get -y install systemd=215-17+deb8u1 libsystemd0=215-17+deb8u1
29+
30+
### Double-check that nothing else needs to be updated ###
31+
apt-get update
32+
apt-get -y upgrade
33+
apt-get -y dist-upgrade
34+
35+
### Clean up ###
36+
apt-get -y autoremove --purge
37+
apt-get clean
38+
echo Done.

0 commit comments

Comments
 (0)