Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Wireshark remote
@echo off
set PLINK_PATH=C:\Program Files (x86)\PuTTY\plink.exe
set WIRESHARK_PATH=C:\Program Files\Wireshark\Wireshark.exe
if "%1" == "" goto :usage
"%PLINK_PATH%" -ssh %1 "tcpdump -ni %2 -s 0 -w - not port 22" | "%WIRESHARK_PATH%" -k -i -
goto :end
echo "Usage: Put key into Pageant, then: %0 <[<user>@]host> <interface>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment