Anyone feel like testing my simple packet sniffer?

Version that prompts user to choose interface:
http://users.adelphia.net/~tlaplaca/sps17.exe

Wow, what a pain in the butt. It took me almost as long to get the new prompt dialog working as it took to make the entire first version that worked perfectly on my PC.

Good job. Interesting results.

The first time I loaded it, I selected my active connection and hit Start. One line jumped into the listbox, then the program stalled again as in the past, but crashed.

The second time, I loaded it, selected my connection, hit Start, and the listbox filled up with what looked like packets, but then the program closed itself.

Tried a third time, same as second time.

I’m not sure what happened on the first try, but in subsequent results, the packets appeared to be filling up, but then the program just died.

Tried again, got same results as the first try. This line appeared in the listbox:

1080850610:108802 (1434)

And it crashed with “TODO: <File description>” as the titlebar of the crash.

Ran it once more, it started filling up with packets again, and I managed to screen cap it right before it crashed (it crashes within 1-2 seconds). Screen cap is here.

Likely, the problem is that it cannot handle those humongous packets you are getting. For some reason, your packets are WAY bigger than mine (now I have packey envy…)

A buddy who tried this version out for me told me it crashes when he makes a SQL request over the network, which would likely also result in very large packets.

And indeed I think I found the problem, please try #18

http://users.adelphia.net/~tlaplaca/sps18.exe

And as always, thank you for trying this for me.

New error: 404 Not found :smiley:

Heh, for a second there I thought “How the @*$& could my prog make a 404 error?”

Link should work now (I had misnamed it on the web space).

Works a treat now, Revtim. I’ve been running it for about 10 minutes while I browse, and it’s displaying the packets just fine. Good work!

Thank you so much for taking the time to try it.

Hmm… well, now I’m using a wireless connection (laptop), and I selected it. No packets were displayed, but no lockup either. Tried the other two, also, but no packets. :-/

I’ll try it on a regular, wired ethernet card shortly.

I’m really sorry if this is a dumb question, but did you force some network activity? Is it possible there simply wasn’t any packets?

heh, yeah, forced network activity :stuck_out_tongue:

I’m kinda stumped how to debug this wireless problem; in the meantime, have you tried it on the machine where it was crashing with the large packets? I strongly suspect it isn’t going to crash anymore, my buddy with the SQL reports it fixed in at least his situation.

I apologize… not yet, but I will tonight. :smiley:

No hurry man, thanks.

OK, looks like WinPcap can’t detect every network device out there. From its FAQ at http://winpcap.polito.it/misc/faq.htm

(Bolding mine)

So, it looks like the wireless problem is likely with WinpCap library.

Made a new one, with just some minor UI changes.
http://users.adelphia.net/~tlaplaca/sps20.exe

  1. Pops an error window if the user tries to enter invalid/non-existant interface number
  2. Added “End Program” button to interface-choosing dialog
  3. Fixed bug where user could close the interface-choosing dialog and result with invalid ‘0’ interface “chosen”.

Had a chance yet?

Ok I am now dying of curiousity. I am a Liberal Arts guy. I view computers as alien life forms with whom I have an uneasy symbiotic relationship. Please to explain what a ‘packet sniffer’ is and what it does. I opened this thread expecting it was a coy sexual reference. It now seems certain that I will have no satisfaction on that count. I figure I should get something out of this thread.

fruitbat, it’s a program that displays the raw data that passes through one’s network card.

It’s useful for diagnosing computer network problems (although ones that translate the data some are a lot more useful than my program.)

eep- sorry, thought I had posted. Tried it on my other machine without wireless-- worked like a charm!