/****************************************************************************************************** Port 80 Basic Visual Packet Sniffer for Linux using OpenGL, Glut, and the Berkley Sockets API by robotcowboy (www.robotcowboy.com) over one night for a Net Art Seminar at the Art & Tech Program at IT University in Goteborg, Sweden October 19th, 2005 compile with g++ (with opengl and glut installed): g++ -O2 -Wall -L/usr/X11R6/lib -lX11 -lXmu -lXi -lm -lGL -lGLU -lglut port80.cpp -o port80 switch to root and set your ethernet adapter to promiscuous mode, otherwise you wont get any data :| $ su - | Password: ***** | $ ifconfig eth0 promisc you must run port80 in root, otherwise the SOCKET_RAW type is not allowed and only NULL data will be read run: | $ ./port80 -md -h500 -w500 command line options: -m : display mode -> d (dots), l (lines), p (polygons - default) -h : height of display window (in pixels) (default - 500) -w : width of display widonw (in pixels) (defualt - 500) I didn't build any exit code into this, although ESC kinda works so use CTRL+C :P you can freely use this code; much of the socket usage comes from this guide: http://packetstormsecurity.org/sniffers/Sniffer_construction.txt *******************************************************************************************************/