Reputation: 2274
I would like to hook into certain windows network events, such as new incoming and outgoing connections.
What are the options? wmic, windows API?
Upvotes: 3
Views: 3424
Reputation: 1809
Here is some tools to filter,modify,read packet in windows:
Upvotes: 1
Reputation:
You could inject a DLL that hooks send() and recv() into every process. The DLL would then also hook CreateProcess to inject itself into processes created in the future.
Upvotes: 2
Reputation: 34308
You could take a look at WinPcap:
http://www.winpcap.org/
"WinPcap is an open source library for packet capture and network analysis for the Win32 platforms."
http://www.winpcap.org/docs/docs_412/html/main.html
This is the library that programs like Wireshark uses to do all it's capturing with. http://www.winpcap.org/misc/features.htm
Upvotes: 3