Created
July 31, 2014 18:31
-
-
Save Tho85/0d3b86ec5bf8d75a8fb2 to your computer and use it in GitHub Desktop.
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
wireshark-on () { | |
SERVER=$1 | |
shift | |
if [ $# -gt 0 ] | |
then | |
FILTER="$@" | |
else | |
FILTER="not tcp port ssh" | |
fi | |
wireshark -k -i <(ssh $SERVER $WIRESHARK_SUDO tcpdump -i any -s 0 -w - "$FILTER") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment