Last active
August 29, 2015 14:20
-
-
Save jlongman/b00615e179ab6e714c61 to your computer and use it in GitHub Desktop.
Remote ssh or netcat to wireshark
This file contains hidden or 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
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