Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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