Installation — Kali Setup
Ctrl+F: tool name · apt install · pip install · gem install · git clone
How to install anything (mechanics): Install Download and Run — .deb, git clone, pip, PATH, make tools runnable everywhere.
This note: Per-tool install commands (lookup by name).
| Approach | Use |
|---|
| Install Download and Run | How-to — file types, git clone, PATH, .deb, pip install . |
| This note | Per-tool install command lookup |
| Individual tool notes | Short Install (Kali) block at top — links back here |
Most Kali images ship with recon/password tools preinstalled. Run which TOOL first; install only if missing.
sudo apt update
📌 Exam-prep batch (common apt packages)
One shot for tools often missing or worth confirming:
sudo apt update && sudo apt install -y \
default-mysql-client \
postgresql-client \
redis-tools \
ldap-utils \
dnsutils \
snmp \
nbtscan \
samba-common-bin \
smbclient \
crackmapexec \
freerdp2-x11 \
rlwrap \
steghide \
libimage-exifperl-perl \
peass \
krb5-user \
python3-impacket \
nmap \
gobuster \
ffuf \
sqlmap \
nikto \
hydra \
hashcat \
john \
exploitdb \
netcat-openbsd \
curl \
openssl \
awscli \
pidgin \
sqlite3
📌 Recon & web
# Recon quick install
sudo apt install -y nmap netdiscover knockd gobuster ffuf sqlmap nikto wpscan cmseek exploitdb dnsutils ldap-utils snmp nbtscan
📌 Databases
| Tool | Install | Includes |
|---|
| MySQL client | sudo apt install -y default-mysql-client | mysql, mysqldump |
| MSSQL | sudo apt install -y python3-impacket | impacket-mssqlclient |
| PostgreSQL | sudo apt install -y postgresql-client | psql |
| Redis | sudo apt install -y redis-tools | redis-cli |
| MongoDB | sudo apt install -y mongodb-clients or mongosh | mongosh |
| SQLite | sudo apt install -y sqlite3 | Usually preinstalled |
| Oracle | Oracle Instant Client + sqlplus | Manual; or Oracle odat via git |
# MySQL client (includes mysqldump) — recommended
sudo apt update
sudo apt install -y default-mysql-client
# All DB clients
sudo apt install -y default-mysql-client postgresql-client redis-tools sqlite3
📌 Password attacks
| Tool | Install | Preinstalled? |
|---|
| Hashcat | sudo apt install -y hashcat | Usually yes |
| Hydra | sudo apt install -y hydra | Usually yes |
| John | sudo apt install -y john | Usually yes |
| CeWL | sudo apt install -y cewl | Usually yes |
sudo apt install -y hashcat hydra john cewl
📌 SMB / Windows enum (Linux)
sudo apt install -y python3-impacket crackmapexec enum4linux smbclient smbmap samba-common-bin
pip3 install certipy-ad bloodyAD pypykatz --break-system-packages
📌 Active Directory (Kali-side)
git clone https://github.com/dirkjanm/PKINITtools.git
git clone https://github.com/ShutdownRepo/pywhisker.git
git clone https://github.com/dirkjanm/krbrelayx.git
git clone https://github.com/micahvandeusen/gMSADumper.git
pip3 install -r PKINITtools/requirements.txt
pip3 install -r krbrelayx/requirements.txt --break-system-packages
Windows tools on Kali (apt + transfer):
| Tool | Install (Kali) | Binary path |
|---|
| Rubeus | sudo apt install -y rubeus | /usr/share/windows-resources/rubeus/Rubeus.exe |
Windows-only (transfer to target — download if not in apt):
sudo apt install -y krb5-user samba-common-bin
pip3 install certipy-ad bloodyAD pypykatz --break-system-packages
📌 Remote access & pivoting
| Tool | Install | Preinstalled? |
|---|
| SSH client | sudo apt install -y openssh-client | Yes |
| ssh-audit | pip install ssh-audit | No |
| evil-winrm | sudo apt install -y evil-winrm or gem install evil-winrm | Often yes |
| xfreerdp | sudo apt install -y freerdp2-x11 | Usually yes |
| rdesktop | sudo apt install -y rdesktop | Optional |
| Chisel | releases | No — binary |
| FTP client | sudo apt install -y ftp | Usually yes |
| Netcat | sudo apt install -y netcat-openbsd | Usually yes |
| Penelope | sudo apt install -y penelope | Kali package |
| rlwrap | sudo apt install -y rlwrap | Usually yes |
| Socat | sudo apt install -y socat | Usually yes |
| sshuttle | sudo apt install -y sshuttle | Usually yes |
| Ligolo-ng | sudo apt install -y ligolo-ng | Kali 2024.2+ |
| Plink | /usr/share/windows-binaries/plink.exe (transfer to target) | On Kali |
Plink .ppk keys | sudo apt install -y putty-tools | For puttygen |
sudo apt install -y openssh-client evil-winrm freerdp2-x11 penelope rlwrap netcat-openbsd socat sshuttle ligolo-ng putty-tools
pip3 install ssh-audit
📌 Linux utilities
| Tool | Install | Preinstalled? |
|---|
| Curl | sudo apt install -y curl | Yes |
| OpenSSL | sudo apt install -y openssl | Yes |
| exiftool | sudo apt install -y libimage-exifperl-perl | Usually yes |
| Steghide | sudo apt install -y steghide | Usually yes |
| stegseek | sudo apt install stegseek | Usually yes |
| File Transfer | impacket-smbserver via Impacket | |
| Text Processing | coreutils — grep, awk, sed, cut, sort, uniq, tr, xargs | Yes — no install |
| Python | sudo apt install -y python3 python3-pip | Yes |
📌 Cloud
| Tool | Install |
|---|
| AWS CLI | sudo apt install -y awscli or pip install awscli |
sudo systemctl start postgresql
sudo msfdb init # first-time DB setup if needed
msfconsole
📌 Privilege escalation
sudo apt install -y peass
📌 Impacket — install / update
Full walkthrough → Install Download and Run > Impacket (apt vs git)
# Kali package (recommended for OSCP)
sudo apt install -y python3-impacket
impacket-psexec -h
# Latest from GitHub
git clone https://github.com/fortra/impacket
cd impacket && pip3 install . --break-system-packages
# Script paths
ls /usr/share/doc/python3-impacket/examples/
See Impacket > Installation & Location
📌 Verify install
which nmap gobuster sqlmap impacket-secretsdump hashcat hydra mysql psql redis-cli ldapsearch
impacket-psexec -h 2>&1 | head -1
certipy-ad -h 2>&1 | head -1