Exam GCIH All QuestionsBrowse all questions from this exam
Question 93

Which of the following netcat commands will connect to tcp port 2222 on a remote system (10.0.0.1)?

    Correct Answer: A

    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.

Discussion
847ch0n3Option: A

A is correct. You don't need -l -p to connect

XBalOption: A

Correct answer is "A"