tcpdump cheat sheet for vulnerability assessment and penetration testing

This tcpdump cheat sheet provides essential commands for each phase of vulnerability assessment and penetration testing, from initial reconnaissance to post-exploitation monitoring and analysis.

Installation & Setup

Installing tcpdump across different platforms and verifying the installation.

bash

# Install on Kali Linux (pre-installed)
sudo apt update && sudo apt install tcpdump

# Install on Ubuntu/Debian
sudo apt install tcpdump

# Install on CentOS/RHEL
sudo yum install tcpdump
# or
sudo dnf install tcpdump

# Install on macOS
brew install tcpdump

# Install on Windows (via WSL or WinPcap version)
# Download from: https://www.winpcap.org/

# Verify installation
tcpdump --version

# Check available interfaces
tcpdump -D

# Install additional analysis tools
sudo apt install wireshark tshark ngrep

Network Reconnaissance Phase

Capturing initial network traffic to identify targets, services, and network patterns.

bash

Service Discovery & Fingerprinting

Identifying running services, versions, and banner information through traffic analysis.

bash

Vulnerability Detection Phase

Capturing traffic patterns that indicate vulnerabilities or misconfigurations.

bash

Exploitation & Post-Exploitation Monitoring

Capturing attack traffic, payload delivery, and post-exploitation activities.

bash

Protocol-Specific Analysis

Deep packet inspection for specific protocols and services.

bash

Advanced Filtering & Performance

Optimizing captures for specific scenarios and high-traffic environments.

bash

Analysis & Reporting

Analyzing captured traffic and generating reports for vulnerability assessment.

bash

Quick Reference - Common Filters

bash

Last updated