Skip to content

Sniffit

60 commands

A legacy packet sniffer with an interactive ncurses mode for watching TCP sessions in real time.

  • packet capture
  • legacy

Install Sniffit

sudo apt install sniffit

Basic Capture2

sniffit -v

Displays the current version number of the sniffit tool.

sniffit -i

Launches sniffit in interactive ncurses mode for real-time monitoring.

Interface Selection3

sniffit -F eth0

Forces the tool to listen on the eth0 network interface.

sniffit -F wlan0 -i

Starts interactive mode specifically on the wireless interface wlan0.

sniffit -F lo -i

Starts interactive monitoring on the loopback interface for local traffic analysis.

Link

Host and Port Filtering9

sniffit -t 192.168.1.10

Captures only traffic destined for the target IP address 192.168.1.10.

sniffit -s 192.168.1.50

Captures only traffic originating from the source IP address 192.168.1.50.

sniffit -b 192.168.1.20

Captures bidirectional traffic (incoming and outgoing) for the specified host.

sniffit -p 80

Captures traffic on port 80 for web traffic analysis.

Link
sniffit -p 22

Monitors traffic on port 22 to observe SSH connection attempts.

Link
sniffit -p 53 -P udp

Captures UDP traffic on port 53 for DNS query analysis.

Link
sniffit -p 21 -t 192.168.1.10

Captures FTP command traffic destined for the specific target IP.

Link
sniffit -b 192.168.1.1 -p 123 -P udp

Monitors bidirectional NTP time synchronization traffic on UDP port 123.

Link
sniffit -p 143 -t 192.168.1.5

Monitors IMAP traffic to the target server for email retrieval activity.

Link

Protocol Selection5

sniffit -P tcp

Filters the capture to include only TCP protocol packets.

sniffit -P udp

Filters the capture to include only UDP protocol packets.

sniffit -P icmp

Filters the capture to include only ICMP control packets like ping.

Link
sniffit -P ip

Captures raw IP packets regardless of the underlying transport protocol.

Link
sniffit -P tcp -p 445

Filters for SMB traffic over TCP to analyze Windows file sharing activity.

Link

ASCII and Hex Output4

sniffit -a -p 80

Displays captured web traffic on port 80 in human-readable ASCII format.

Link
sniffit -x -p 80

Displays captured web traffic on port 80 in hexadecimal format.

Link
sniffit -d -p 80

Dumps the raw packet content of web traffic to the console.

Link
sniffit -a -p 23 -b 192.168.1.1

Captures Telnet traffic for the host in ASCII to view cleartext commands.

Link

Output Formatting4

sniffit -7 -a -p 80

Forces 7-bit ASCII mode output for compatibility with older terminals.

Link
sniffit -A . -a -p 80

Replaces non-printable characters with a dot while dumping ASCII web traffic.

Link
sniffit -d -p 80 > dump.txt

Redirects the raw packet dump output to a file for later analysis.

Link
sniffit -A ? -a -t 192.168.1.1

Replaces non-printable characters with a question mark in ASCII output.

Link

Performance and Buffer Control3

sniffit -l 0 -p 80

Sets snaplength to 0 to capture the entire packet regardless of size.

Link
sniffit -l 200 -p 80

Limits capture to the first 200 bytes of data per packet.

Link
sniffit -l 1500 -p 80

Ensures capture of full Ethernet frames by setting snaplength to the standard MTU.

Link

Logging and File Output2

sniffit -L 500 -t 192.168.1.10

Sets the log depth to 500 bytes when logging plugin activity.

Link
sniffit -L 1000 -a -p 80

Logs up to 1000 bytes of ASCII web data per packet for deep inspection.

Link

Configuration1

sniffit -c config_file

Loads capture settings and filtering rules from a specified configuration file.

Link

Legacy Network Troubleshooting3

sniffit -P icmp -b 192.168.1.1

Monitors bidirectional ICMP traffic to troubleshoot connectivity with the gateway.

Link
sniffit -d -s 0.0.0.0

Captures DHCP discovery packets which often originate from source 0.0.0.0.

Link
sniffit -x -p 67 -P udp

Inspects DHCP server traffic in hex to debug address assignment issues.

Link

Red Team Traffic Validation3

sniffit -a -p 21 -t 10.0.0.5

Inspects FTP traffic in ASCII to validate cleartext credential transmission.

Link
sniffit -a -p 110 -t 10.0.0.5

Monitors POP3 email traffic in ASCII to demonstrate insecure login mechanisms.

Link
sniffit -a -p 8080 -t 10.0.0.2

Inspects traffic to an alternative web port to find unencrypted administration panels.

Link

Blue Team Monitoring Scenarios3

sniffit -x -p 443 -t 192.168.1.10

Inspects the hex dump of HTTPS handshake headers to verify TLS versions.

Link
sniffit -P tcp -b 192.168.1.100 -l 64

Captures only headers (first 64 bytes) of TCP traffic for traffic flow analysis.

Link
sniffit -P tcp -p 3389 -t 192.168.1.50

Monitors RDP connection attempts to a critical server for unauthorized access.

Link

Advanced and Combined Real World Usage7

sniffit -F eth0 -a -p 80 -b 192.168.1.5

Captures ASCII web traffic on eth0 specifically for the target host 192.168.1.5.

Link
sniffit -F eth0 -x -t 192.168.1.1 -p 22

Analyzes the SSH handshake in hex on eth0 specifically for the gateway IP.

Link
sniffit -n -i

Starts interactive mode with IP address generation turned off for speed or compatibility.

Link
sniffit -F eth0 -a -s 10.0.0.1 -p 23

Captures Telnet output from a router on eth0 to view configuration changes.

Link
sniffit -F eth1 -d -P icmp

Dumps raw ICMP traffic on a secondary interface to troubleshoot routing loops.

Link
sniffit -d -p 514 -P udp

Dumps Syslog traffic to verify that logs are being transmitted correctly.

Link
sniffit -7 -a -p 23 -b 192.168.1.254

Uses 7-bit ASCII mode to monitor legacy Telnet connections to a core switch.

Link

Educational and Learning Use Cases3

sniffit -d -p 25

Dumps SMTP email traffic to help students understand email protocol commands.

Link
sniffit -x -P icmp

Displays ICMP packets in hex to teach packet structure and header fields.

Link
sniffit -x -p 21

Shows the hexadecimal representation of FTP control commands for protocol study.

Link

TCP Session Monitoring1

sniffit -a -p 6667

Captures IRC chat traffic in ASCII to monitor channel conversations.

Link

UDP Traffic Inspection1

sniffit -d -p 161 -P udp

Dumps SNMP traffic on port 161 to inspect management strings.

Link

Incident Response Demonstrations2

sniffit -s 203.0.113.5 -P tcp

Isolates all TCP traffic originating from a known malicious external IP.

Link
sniffit -b 192.168.1.200 -P udp

Investigates UDP beaconing behavior coming from a compromised internal host.

Link

Session Reassembly1

sniffit -a -t 192.168.1.10 -p 80 -l 0

Captures full-length packets in ASCII to assist in manual HTTP session reconstruction.

Link

Quiet and Verbose Modes1

sniffit -v -i

Starts interactive mode while displaying version or verbose information on startup.

Link

IPv4 Traffic Analysis1

sniffit -P ip -t 224.0.0.1

Monitors raw IP traffic destined for the multicast all-hosts address.

Link

Traffic Direction Control1

sniffit -t 192.168.1.255

Captures traffic destined for the broadcast address of the local subnet.

Link