Skip to content

Instantly share code, notes, and snippets.

@AndreKR
Created December 13, 2015 23:49
Show Gist options
  • Save AndreKR/3d054e997d9fe9b0645e to your computer and use it in GitHub Desktop.
Save AndreKR/3d054e997d9fe9b0645e to your computer and use it in GitHub Desktop.
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
:usage
echo "Usage: Put key into Pageant, then: %0 <[<user>@]host> <interface>"
:end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment