Page 1 of 1

Packet Sniffer

Posted: Sun Mar 05, 2006 1:42 am
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?

Posted: Sun Mar 05, 2006 1:44 am
by Flype
Don't know exactly but probably with "Hook" API functions...

Posted: Sun Mar 05, 2006 12:11 pm
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.

Posted: Sun Mar 05, 2006 1:50 pm
by Bonne_den_kule
I think you can make a packet sniffer by forwarding/proxy, not sure.

Posted: Sun Mar 05, 2006 5:08 pm
by Killswitch
Thanks for the link KarLKoX - thanks to the rest of you guys as well :).