Y
Y
yura_born2021-11-03 15:53:41
SSH
yura_born, 2021-11-03 15:53:41

How to redirect tcpdump stream using ssh?

Good time everyone! Help me figure it out... I'm studying information security on local networks... and I have the following task: set up tcpdump stream redirection using ssh.
I have 2 virtual machines:
1. Kali-linux - 10.0.2.4
2. Metasploitable - 10.0.2.5
Here is an example in the lesson: tcpdump -i any ! host 192.168.1.2 -s 0 | ssh [email protected] "cat > dump.txt"

On a Kali-linux host I type tcpdump -i any ! host 10.0.2.5 -s 0 | ssh [email protected] "cat > dump.pcap"
asks me for a password on ssh to 10.0.2.5

on host 10.0.2.5, dump.pcap is created

via scp, I copy it to myself on 10.0.2.4, open it, but there is nothing in it .. ..

What am I doing wrong? Where to look?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question