Apr 15, 2014 at 6:45pm UTC
Hi, I was wondering if and how it is possible to fetch network data like Nighthawk does, I don't need anything special really, what flies through the sockets.
Only possible way I could think of was to set the DNS server to localhost and to listen on those ports, but that would work if I knew the ports.
Apr 15, 2014 at 8:02pm UTC
Have you looked into packet sniffers?
Apr 15, 2014 at 8:10pm UTC
no I did not, what are they? I was working with sockets, but that was about it, but don't know how to sniff packets.
Apr 15, 2014 at 8:19pm UTC
from what I get here the packet sniffers gather information from the entire network, while I'd like to know how to do this on a pc that the program is running, also I seem to have given the wrong example for what I'd like to do.
Apr 15, 2014 at 8:32pm UTC
is that really the best way to do it? I've even thought of only gathering events going outside.
Also I've tried googling stuff like that but could not find a proper pseudocode/actual code, mind giving me a little hint?