Read raw capture data from network socket...
Hi,
I was wondering if I can run Wireshark on Windows and make it listen on a network socket for incoming raw data that it then logs?
I have something like this in mind:
tcpdump -i hn0 -w - | nc $windows_host $port
And then the Windows' Wireshark just works with what it gets?
That would save me the daemon on that machine...
I've seen that Wireshark can do "pipes". Are those named pipes? Maybe I could get something going with socat in Cygwin that redirects to a named pipe?
Thanks!
Cu
Have you looked at Windows Netcat or using
nc
on WSL (Windows Subsystem for Linux)?Example here using nc on both ends.
The part that puzzles me is how I get the data LIVE into Wireshark without storing it anywhere before... Else I could just store it into a file and copy the file over later.