Created
December 13, 2015 23:49
-
-
Save AndreKR/3d054e997d9fe9b0645e to your computer and use it in GitHub Desktop.
Wireshark remote
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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