I developed a very simple LAN packet sniffer in MS Visual C++ .NET, to refresh my programming skills (and have something to show potential employers).
If anybody with Windows (95 on up) feels like giving her a rip for me, just to see that it runs on other machines, I’d appreciate it.
First, you have to install WinPCap 3.0 from http://winpcap.polito.it , then
my program from http://revtim.250free.com/sps.exe.
Known issue: Can’t copy/paste from main window
It’s hard-coded to look at the first device the WinpCap discovery function returns, so it might fail if you have multiple LAN cards and use one other than the first.
And I have no clue what will happen with a dial-up connection! Hopefully, it’ll work the same.
What one should see after pressing the START button is the device the program chooses, its description, then the packets start a’flowin.
The packets should look something like:
1080602034:320426 (60)
ff ff ff ff ff ff 00 0a 42 6c 20 54 08 06 00 01
08 00 06 04 00 01 00 0a 42 6c 20 54 45 a7 78 01
00 00 00 00 00 00 45 a7 7a 80 04 01 04 00 00 00
00 02 01 0b 03 02 00 00 05 01 02 00
1080602034:872384 (60)
ff ff ff ff ff ff 00 0a 42 6c 20 54 08 06 00 01
08 00 06 04 00 01 00 0a 42 6c 20 54 45 a7 70 01
00 00 00 00 00 00 45 a7 72 f6 45 00 00 1c 38 3d
00 00 01 01 72 6a 45 a7 76 ef cf 1a
1080602035:10230 (60)
ff ff ff ff ff ff 00 0a 42 6c 20 54 08 06 00 01
08 00 06 04 00 01 00 0a 42 6c 20 54 45 a7 78 01
00 00 00 00 00 00 45 a7 7b 8b 51 9d d6 c6 70 12
80 00 67 f9 00 00 02 04 05 b4 01 01
You might have to do some network activity to see packets, like load a web page or check your email.
Thanks! And special thanks to doper bashere for helping with a problem I was having.