Code: Select all
nc -lp 12345
und das 3. Terminal i führen diesen Befehl aus, um eine Verbindung zu den NetCAT -Servern zu herstellen.
Code: Select all
nc localhost 12345
Im 3. Terminal, nachdem ich den Befehl ausgeführt hatte, tippte ich dort eine zufällige Zeichenfolge und beobachtete die anderen 2 Terminals. Nur das Terminal, an dem der NetCat -Server zuerst ausgeführt wird, empfängt den von mir eingegebenen Text, der andere wird nur dort hängen und hat nichts ausgegeben. "Bind in a "weird" passive state but not actually receive traffic (depends on implementation)" to the 2nd netcat servers, which is quite of vague
I also used the this command to print out networking data in my machine and both servers actually occupy the port 12345 for 0.0.0.0
Code: Select all
$ netstat -tuldp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:12345 0.0.0.0:* LISTEN 58958/nc
tcp 0 0 0.0.0.0:12345 0.0.0.0:* LISTEN 58941/nc