A forum for reverse engineering, OS internals and malware analysis 

Ask your beginner questions here.
 #324  by __Genius__
 Fri Mar 19, 2010 9:09 am
Hi guys,
I have no idea about monitoring tcp/ip protocol stack activities from kernel driver, I should implement this feature in my application, it should monitor active outbound connections in real-time and don't know how to implement such a feature .
Any help would be appreciated .
thanks Km guys .
Last edited by __Genius__ on Sat Mar 20, 2010 8:02 am, edited 2 times in total.
 #329  by Cr4sh
 Fri Mar 19, 2010 11:48 am
You mean socket-layer monitoring?
1. Windows Filtering Platform (Vista+ only): http://www.microsoft.com/whdc/device/network/wfp.mspx
2. TDI filtering (simple open-source TDI firewall: http://tdifw.sourceforge.net/).

If you need just monitoring of raw TCP/IP packets, see sources of WinPCAP and DDK samples in network/ndis/ndisprot and network/ndis/ndisprot/passthru.
 #330  by __Genius__
 Fri Mar 19, 2010 12:12 pm
Thank you Cr4sh,
the first solution you mentioned do not beneficial for me, because the application should work on Xp, I will check the second solution, What I want to do is like as what Sysinternal TCPView is doing, I should implement exact the same .
 #331  by Cr4sh
 Fri Mar 19, 2010 12:25 pm
__Genius__ wrote:Thank you Cr4sh,
the first solution you mentioned do not beneficial for me, because the application should work on Xp, I will check the second solution, What I want to do is like as what Sysinternal TCPView is doing, I should implement exact the same .
As I know, TCPView uses kernel driver only for non-primary functionality, and monitoring of network activity implemented in user-mode, with IP Helper API.