Which of the following netcat commands will connect to tcp port 2222 on a remote system (10.0.0.1)?
Which of the following netcat commands will connect to tcp port 2222 on a remote system (10.0.0.1)?
The correct command to connect to a TCP port using netcat is 'nc.exe <hostname> <port>'. Therefore, 'nc.exe 10.0.0.1 2222' is the command that will connect to TCP port 2222 on the remote system 10.0.0.1. The other options either include unnecessary flags or are used for different purposes, such as listening or persistent listening.
A is correct. You don't need -l -p to connect
Correct answer is "A"