I'm looking to write a program that monitors netstat and logs any new connections established. My brother(who is a programmer) said it shouldnt be that hard. My only(known) problem is getting the info from netstat. Anyone know how i can do that? I'm kinda new to programming, so go easy on me.
Then open the file and read it
system( "netstat > file.txt" );
Also, the GetTcpTable() and GetUdpTable() windows functions return similar information.
Thanks for the help. I'll probably have some more problems I'll need help with as time goes on.