Capture and display HTTP/HTTPS metadata from a specific host in real-time
Capture and display HTTP/HTTPS metadata from a specific host in real-time
Tcpdump / Threat Hunting
Premium content locked
You can preview the command metadata. Full explanation, examples, and lab-style details are available to premium subscribers.
View premium optionsCommand
tcpdump -i any -A -n "host 192.168.1.100 and (port 80 or port 443)" 2>/dev/null | grep -E "(GET|POST|Host:|User-Agent:)"
Syntax
tcpdump -i any -A "host <ip> and port <port>"
Use case
Threat hunting to identify C2 communication patterns, suspicious User-Agents, or unusual HTTP methods from a potentially compromised host.
Explanation
Real-time HTTP traffic inspection: • -A → Print packet data in ASCII • -n → Disable hostname resolution • Filters by host IP and HTTP/HTTPS ports • Pipes to grep to extract HTTP verbs and headers • Useful for identifying suspicious...
Related
Find repeated authentication failures by source and user.
Find repeated authentication failures by source and user.
index=security sourcetype=auth action=failure | stats count by src_ip user | sort -count
Baseline Windows process creation pairs.
Baseline Windows process creation pairs.
index=windows EventCode=4688 | stats count by New_Process_Name Parent_Process_Name | sort -count
Hunt for suspicious DNS queries to abused file extensions.
Hunt for suspicious DNS queries to abused file extensions.
index=dns query="*.zip" OR query="*.mov" | stats count by src_ip query