GCIH Exam QuestionsBrowse all questions from this exam

GCIH Exam - Question 93


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

Show Answer
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

2 comments
Sign in to comment
XBalOption: A
Mar 17, 2023

Correct answer is "A"

847ch0n3Option: A
Mar 3, 2024

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