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).

ApproachUse
Install Download and RunHow-to — file types, git clone, PATH, .deb, pip install .
This notePer-tool install command lookup
Individual tool notesShort 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

ToolInstallPreinstalled?Note
Nmapsudo apt install -y nmapUsually yes
netdiscoversudo apt install -y netdiscoverUsually yesARP host discovery
Port Knocking - knocksudo apt install -y knockdUsually yesClient: knock
RustScansudo apt install -y rustscan or releasesSometimesSee RustScan > Install
Gobustersudo apt install -y gobusterUsually yes
ffufsudo apt install -y ffufUsually yes
Burp Suiteportswigger.net/burp.jar or Kali menuCommunity in KaliNot via apt
SQLMapsudo apt install -y sqlmapUsually yes
Niktosudo apt install -y niktoUsually yes
WPScansudo apt install -y wpscanUsually yesAPI token optional
CMSeeK - cmseeksudo apt install -y cmseekYesCMS detection — 180+ CMSs
searchsploitsudo apt install -y exploitdbUsually yesDB: searchsploit -u
DNS (dig & host)sudo apt install -y dnsutilsUsually yesdig, host, nslookup
ldapsearchsudo apt install -y ldap-utilsUsually yes
snmpwalksudo apt install -y snmpUsually yes
nbtscansudo apt install -y nbtscanUsually yesNetBIOS / 137-139
Mail (SMTP POP3 IMAP)sudo apt install -y swaks (SMTP test)Partialtelnet/nc often enough
Pidginsudo apt install -y pidginNoXMPP client
BeanShooterJAR download — see BeanShooter > InstallNoNeeds Java + ysoserial
# Recon quick install
sudo apt install -y nmap netdiscover knockd gobuster ffuf sqlmap nikto wpscan cmseek exploitdb dnsutils ldap-utils snmp nbtscan

📌 Databases

ToolInstallIncludes
MySQL clientsudo apt install -y default-mysql-clientmysql, mysqldump
MSSQLsudo apt install -y python3-impacketimpacket-mssqlclient
PostgreSQLsudo apt install -y postgresql-clientpsql
Redissudo apt install -y redis-toolsredis-cli
MongoDBsudo apt install -y mongodb-clients or mongoshmongosh
SQLitesudo apt install -y sqlite3Usually preinstalled
OracleOracle Instant Client + sqlplusManual; 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

ToolInstallPreinstalled?
Hashcatsudo apt install -y hashcatUsually yes
Hydrasudo apt install -y hydraUsually yes
Johnsudo apt install -y johnUsually yes
CeWLsudo apt install -y cewlUsually yes
sudo apt install -y hashcat hydra john cewl

📌 SMB / Windows enum (Linux)

ToolInstallPreinstalled?
Impacketsudo apt install -y python3-impacketUsually yes
CrackMapExec - nxcsudo apt install -y crackmapexecOften yes (netexec / nxc)
nxcspraypip install nxcspray or git — see nxcspray > InstallNo
enum4linuxsudo apt install -y enum4linux-ng or enum4linuxUsually yes
smbclientsudo apt install -y smbclientUsually yes
smbmapsudo apt install -y smbmapSometimes
rpcclientsudo apt install -y samba-common-binUsually yes
rpcdumpvia ImpacketUsually yes
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)

ToolInstallNote
krb5-usersudo apt install -y krb5-userkinit, kpasswd, klist
Certipy & Certifypip install certipy-adCertify.exe = Windows download
bloodyADpip install bloodyAD
pypykatzpip3 install pypykatz --break-system-packagesOffline LSASS / hive parser
KerbrutereleasesBinary to /usr/local/bin
Respondersudo apt install -y responder or gitSee Responder
Bloodhound + SharphoundDocker / bloodhound-cliSee note
RustHoundcargo install rusthound or releasesSee RustHound > Install
ntlm_theftgit clone + pip install -r requirements.txtSee note
Impacket Kerberos scriptspython3-impacketgetTGT, GetUserSPNs, etc.
Shadow Credentials - pywhiskergit — see notePKINITtools + pywhisker
krbrelayxgit clone + pipdnstool · addspn · printerbug · krbrelayx.py
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):

ToolInstall (Kali)Binary path
Rubeussudo 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

ToolInstallPreinstalled?
SSH clientsudo apt install -y openssh-clientYes
ssh-auditpip install ssh-auditNo
evil-winrmsudo apt install -y evil-winrm or gem install evil-winrmOften yes
xfreerdpsudo apt install -y freerdp2-x11Usually yes
rdesktopsudo apt install -y rdesktopOptional
ChiselreleasesNo — binary
FTP clientsudo apt install -y ftpUsually yes
Netcatsudo apt install -y netcat-openbsdUsually yes
Penelopesudo apt install -y penelopeKali package
rlwrapsudo apt install -y rlwrapUsually yes
Socatsudo apt install -y socatUsually yes
sshuttlesudo apt install -y sshuttleUsually yes
Ligolo-ngsudo apt install -y ligolo-ngKali 2024.2+
Plink/usr/share/windows-binaries/plink.exe (transfer to target)On Kali
Plink .ppk keyssudo apt install -y putty-toolsFor 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

ToolInstallPreinstalled?
Curlsudo apt install -y curlYes
OpenSSLsudo apt install -y opensslYes
exiftoolsudo apt install -y libimage-exifperl-perlUsually yes
Steghidesudo apt install -y steghideUsually yes
stegseeksudo apt install stegseekUsually yes
File Transferimpacket-smbserver via Impacket
Text Processingcoreutils — grep, awk, sed, cut, sort, uniq, tr, xargsYes — no install
Pythonsudo apt install -y python3 python3-pipYes

📌 Cloud

ToolInstall
AWS CLIsudo apt install -y awscli or pip install awscli

📌 MetaSploit

ToolInstallPreinstalled?
MetaSploitsudo apt install -y metasploit-frameworkYes on Kali
Msfvenom / Msfconsolepart of metasploit-frameworkYes
sudo systemctl start postgresql
sudo msfdb init    # first-time DB setup if needed
msfconsole

📌 Privilege escalation

ToolInstallNote
Privesc Tools LinPEAS/WinPEASsudo apt install -y peass/usr/share/peass/
winExploitSuggestergit clone — see winExploitSuggesterRun on Kali
linux-exploit-suggestergit clone — see linux-exploit-suggesterRun on Kali
ChurrascoRe4son/Churrasco — Windows .exeTransfer to target
Potato Attacks binariesDownload GodPotato, PrintSpoofer, etc.Transfer to target
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