Kali Linux¶
Minimal Headless Kali Linux installation - Works for Cloud VM Installation (NO GUI)¶
This is a simple guide to install Minimal Headless Kali Linux by converting a Debian Linux to Kali Linux distro without any unnecessary tools. Basically you install the tools you need.
Platforms | Minimum Monthly Price |
---|---|
DigitalOcean.com | 5$ (This link provides 100$ for 60 days) |
First of all we will need a clean Debian Linux local or at any cloud provider with ssh access
Let's convert! We will install two packages which allow as to replace Debian's repo to kali repo
apt update
apt install -y gnupg gnupg2 wget
wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
rm -rf /etc/apt/sources.list
echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" >> /etc/apt/sources.list
Now after we replaced the repo to Kali we need to install the Basic Kali Linux core
apt -y update
apt-cache search kali-linux
apt install -y kali-linux-core
apt-get -y update
apt-get -y dist-upgrade
apt-get -y autoremove
Reboot the server to complete the conversion process.
In order to test that you are using Kali Linux
uname -a
/etc/os-release
file for this Debian distribution. After we got our new Minimal Kali ready we need to cleanup some Debian's leftovers to finnish
systemctl stop rpcbind.socket rpcbind smbd
systemctl disable rpcbind.socket rpcbind smbd
That's It, now we can install any package we need from Kali repo.
Here are some of my personal packages I use daily
apt update && apt install -y \
curl wget git dnsutils whois net-tools htop locate telnet traceroute \
dirb wfuzz dirbuster enum4linux gobuster nbtscan nikto nmap \
onesixtyone oscanner smbclient fern-wifi-cracker crowbar smbmap \
smtp-user-enum sslscan tnscmd10g whatweb snmpcheck wkhtmltopdf \
sipvicious seclists wordlists hydra bully netcat-openbsd netcat-traditional \
adb fastboot realtek-rtl88xxau-dkms docker docker-compose crunch \
wifite apktool apksigner zipalign default-jre default-jdk man-db \
screenfetch xsltproc binwalk python3-pip zlib1g-dev python2.7-dev \
subfinder chrony hcxtools libssl-dev hcxdumptool hashcat hash-identifier \
libpcap-dev npm sqlmap wpscan exploitdb minicom screen hashid nfs-common
Fix SSH Broken Pipe in Kali¶
nano ~/.ssh/config
add this:
Host *
IPQoS=throughput