Reputation: 11768
I have used packed inspection program such as WireShark and others and I have observed that most of them relay on the pcap driver.
Recently I stumbled over a source code written in C# witch intercepted traffic in a few lines of code. My questions are:
Thank you
Upvotes: 1
Views: 180
Reputation: 2457
Is possible to realize the same sniffing using traditional Windows API ?
Yes you can use the WFP call-out driver
If yes what are the drawbacks and why installing pcap is preferred ?
pcap installs the driver and corresponding user mode dll's , it is easy to use. Otherwise you have to write ur own filter driver and corresponding user mode code.
Upvotes: 1