Driftnet is a network security tool that watches network traffic and displays image data that crosses the network. It has been used at numerous conferences and in corporate networks to visually monitor the image data in transit to identify use policy violations. An attacker can use Driftnet to intercept images being transferred across a network to eavesdrop and fish for confidential or private images being sent or received. The tool is a bit dated, but still works well with a little massaging.
To build Driftnet on Mac OS X, use MacPorts to install a number of dependencies first. The following packages much be installed in order to build Driftnet.
You’ll also need X11, which is installed by default with Xcode.
Once these packages have installed, download the source distribution of Driftnet using cvs:
cvs -d :pserver:firstname.lastname@example.org:/home/chris/vcvs/repos login$
cvs -d :pserver:email@example.com:/home/chris/vcvs/repos co driftnet
The password for the anonymous user is
anonymous. It’s not intended to be
When the source distribution is finished downloading, change into the driftnet directory. You’ll have to make a code change in order to make it compatible with the latest version of libpng. Edit the png.c source file in the driftnet directory. Locate the following block of code:
/* Convert greyscale images to 8-bit RGB ...