Last active
May 28, 2023 07:37
-
-
Save BSN32/3033084de47dd4219691b28b04159176 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
## without ssh passwd | |
sudo wireshark -k -i <(ssh root@192.168.30.1 -p 22 tcpdump -s 0 -U -n -w - -i igb3 host 192.168.30.114 and not tcp port 22) | |
## with password | |
mkfifo /tmp/test.pcapng | |
chmod +wr /tmp/test.pcapng | |
sudo wireshark -k -i /tmp/test.pcapng & | |
ssh root@192.168.30.1 -p 22 tcpdump -s 0 -U -n -w - -i igb3 host 192.168.30.114 and not tcp port 22 > /tmp/test.pcapng |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment