Skip to content

Instantly share code, notes, and snippets.

@jlongman
Last active August 29, 2015 14:20
Show Gist options
  • Save jlongman/b00615e179ab6e714c61 to your computer and use it in GitHub Desktop.
Save jlongman/b00615e179ab6e714c61 to your computer and use it in GitHub Desktop.
Remote ssh or netcat to wireshark
HOST=$1
ssh root@$HOST tcpdump -U -s0 -w - 'not port 22' | wireshark -k -i -
# or nc -l 12345 # and
# tcpdump -l -ni em0 -s0 -w - | nc $ORIGINAL_HOST 12345
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment