Packet Sniffer

Everything else that doesn't fall into one of the other PB categories.
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Packet Sniffer

Post by Killswitch »

I've been interested in wrighting a packet sniffer for a while now, but I've never been able to find a decent amount of documentation or examples of such a program in PB. Now with PB4 on the verge of release I thought it might be about time to fireup this old project.

Does anyone here have any idea how I'd go about this?
~I see one problem with your reasoning: the fact is thats not a chicken~
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

Don't know exactly but probably with "Hook" API functions...
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

I was searching info to such thing (sniffer, firewall ...) and found that it is a very hard task, you will have to code a driver using the ndis interface wich is impossible to do with purebasic (you need the ddk) or at least, until the ddk is natively callable (sorry for my bad english ^^) from PB.
I think that the better thing to do to ease this task is to use winpcap, a network packet driver, used for example by Ethereal.
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

Post by Bonne_den_kule »

I think you can make a packet sniffer by forwarding/proxy, not sure.
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Thanks for the link KarLKoX - thanks to the rest of you guys as well :).
~I see one problem with your reasoning: the fact is thats not a chicken~
Post Reply