Back to library
Defensive Advanced Premium

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

Log in to save

Premium content locked

You can preview the command metadata. Full explanation, examples, and lab-style details are available to premium subscribers.

View premium options

Command

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

linux macos tcpdump http threat-hunting c2 detection

Related

Defensive Intermediate Free

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
splunk threat-hunting expanded-library
Splunk / Threat Hunting Open
Defensive Intermediate Free

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
splunk threat-hunting expanded-library
Splunk / Threat Hunting Open
Defensive Intermediate Free

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
splunk threat-hunting expanded-library
Splunk / Threat Hunting Open