LinuxCommandLibrary

driftnet

TLDR

Capture images from network

$ driftnet -i [eth0]
copy
Save images to directory
$ driftnet -i [eth0] -d [/tmp/images]
copy
Capture without display
$ driftnet -i [eth0] -a -d [/tmp/images]
copy
Read from pcap file
$ driftnet -f [capture.pcap]
copy
Verbose output
$ driftnet -v -i [eth0]
copy

SYNOPSIS

driftnet [options]

DESCRIPTION

driftnet captures and displays images from network traffic in real-time. It extracts JPEG, GIF, and PNG images transmitted over unencrypted HTTP connections passing through the monitored network interface.
The tool is useful for network monitoring, security demonstrations, and forensics. In display mode, captured images appear in a window; in adjunct mode, they're saved to disk.
driftnet can also extract audio data from network streams, playing it in real-time or saving to files.

PARAMETERS

-i INTERFACE

Network interface to capture on.
-d DIR
Directory to save images.
-a
Adjunct mode (no display).
-f FILE
Read from pcap file.
-p
Don't put interface in promiscuous mode.
-v
Verbose mode.
-b
Beep when image captured.
--help
Display help information.

CAVEATS

Only captures unencrypted traffic (HTTP). Requires root/promiscuous access. HTTPS traffic not visible. Intended for authorized monitoring only.

HISTORY

driftnet was created by Chris Sherlock as a demonstration of network traffic visibility. It highlights the privacy implications of unencrypted communications and is used in security awareness training.

SEE ALSO

Copied to clipboard