Skip to content

Instantly share code, notes, and snippets.

@Tho85
Created July 31, 2014 18:31
Show Gist options
  • Save Tho85/0d3b86ec5bf8d75a8fb2 to your computer and use it in GitHub Desktop.
Save Tho85/0d3b86ec5bf8d75a8fb2 to your computer and use it in GitHub Desktop.
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