/* This application just logs the network traffic. It displays the source and destination address from a packet. The work is almost done, but I'm still working on it. Thus take in mind, this app isn't finished yet. Things I'm working on: 1) Use select instead of an endless loop 2) Add additional features, like manually specifying the logfile. 3) ... You can use the following vb Script to run the application in background: set a = wscript.CreateObject("wscript.Shell") a.run "x:\x\x.exe",0 Just paste the code into a file and rename it to .vbs. (Remember to specify the path of this application) After that edit the registry and add new entry into HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run */ #include #include "SOCKET.h" #include int main(int argc, char* argv[]) { sSocket sock1; client cl; sock1.sInitClient(cl, 6000, "localhost"); sock1.sBind(cl); sock1.sStartSniffing(cl); }