Reputation: 1205
Hy folks,
I'm kinda new to low level networking. I need to intercepts all TCP/UDP packets and potentially filter or substitute them with new ones.
What would be the best way to intercept these packets and inject new one? I'm only targeting Windows platforms.
Upvotes: 0
Views: 2943
Reputation: 56123
I want to develop a program, not just use a tool
This page has some references to other pages which introduce the network device driver architectures: NDIS Intermediate driver interface.
Upvotes: 1
Reputation: 2609
You want WinPcap if you're on Windows. What you're going to need to do is intercept (and filter) packets with WinPcap and then write a program that does packet creation when/if you want it.
Upvotes: 2
Reputation: 11349
You can use tools like wireshark to intercept traffic.
If you planning to write a program which will do all this stuff , then you may need to go to driver level to intercept all traffic.
wireshark uses libpcap . I am not sure but that may help
Upvotes: 0
Reputation: 28384
Write a program that uses libpcap at TCPDump contains tons of API for messing with low-level networking
Upvotes: 1