CDR
CDR

Reputation: 8408

Can WinPcap be used to capture network traffic per process?

On Windows I am loading a DLL and running it. The DLL performs a lot of network activities. Now I need to monitor which url and hosts the DLL connects to. I think using a packet sniffer might be a good option. Can WinPcap be used to capture traffic from a single process? I can't find any such option in the docs.

If that can’t be done using WinPcap, is there any other library or solution beside it that can capture data from a single selected process only?

Upvotes: 2

Views: 2908

Answers (1)

Thomas
Thomas

Reputation: 4255

I doubt it. WinPcap is a windows version of libpcap on unix. And libpcap can't do it.

You could try a two-step process: find the local ports used by the application and filter on that. I don't know how to find that on Windows.

Upvotes: 1

Related Questions