Find file
Fetching contributors…
Cannot retrieve contributors at this time
124 lines (110 sloc) 3.94 KB
.\" Manual page for driftnet.
.\" Copyright (c) 2002 Chris Lightfoot. All rights reserved.
.\" Email:; WWW:
.\" $Id:,v 1.7 2004/04/26 14:42:36 chris Exp $
driftnet - capture images from network traffic and display them in an X window;
optionally, capture audio streams and play them.
\fBdriftnet\fP [\fIoptions\fP] [\fIfilter code\fP]
\fBDriftnet\fP watches network traffic, and picks out and displays JPEG and GIF
images for display. It is an horrific invasion of privacy and shouldn't be
used by anyone anywhere. It has been described as `a graphical
.BR tcpdump (8)',
`\fIEtherPeg\fP for Unix', and called all sorts of nasty names by people on
\fIFreshmeat\fP. It is also possible to use \fBdriftnet\fP to capture MPEG
audio data from the network and play it through a player such as
.BR mpg123 (1).
Images may be saved by clicking on them.
Print a summary of usage.
Print additional details of packets captured to the terminal.
Beep when a new image is displayed.
\fB-i\fP \fIinterface\fP
Listen to packets on \fIinterface\fP. By default, \fBdriftnet\fP will try to
pick up traffic on all interfaces, but this does not work with all versions of
.BR pcap (3);
on such systems, an interface must be specified. On some systems, \fBdriftnet\fP
can only use promiscuous mode if an interface is specified.
Do not put the interface into promiscuous mode.
Operate in `adjunct mode', where \fBdriftnet\fP gathers images for use by
another program, such as Jamie Zawinski's \fBwebcollage\fP. In this mode, no
window is displayed; images are captured and saved in a temporary directory,
and their names written on standard output.
\fB-m\fP \fInumber\fP
In adjunct mode, silently drop images if there are more than \fInumber\fP in
the temporary directory. It is assumed that another process will delete images
which it has processed.
\fB-x\fP \fIprefix\fP
The filename prefix to use when saving images, by default `driftnet-'.
\fB-d\fP \fIdirectory\fP
Use \fIdirectory\fP to store temporary files. \fBDriftnet\fP will clear this
directory of its own temporary files on exit, but will not delete the directory
or any other files.
Attempt to capture streamed audio data from the network, and either play it
or, in adjunct mode, save it in files. At present this only works with MPEG
Capture streamed audio data only, ignoring images.
\fB-M\fP \fIcommand\fP
Use the named \fIcommand\fP to play MPEG audio data. The \fIcommand\fP, which
is executed using the shell, should accept MPEG frames on standard input.
The default is `mpg123 -'.
\fIfilter code\fP
Additional filter code to restrict the packets captured, in the libpcap
syntax. User filter code is evaluated as `tcp and (\fIfilter code\fP)'.
.BR tcpdump (8),
.BR pcap (3),
.BR webcollage (1),
.BR mpg123 (1),
.IR ,
.IR ,
.IR .
Chris Lightfoot <>
\fBDriftnet\fP, version @@@VERSION@@@.
$Id:,v 1.7 2004/04/26 14:42:36 chris Exp $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.