GCIH Exam QuestionsBrowse all questions from this exam

GCIH Exam - Question 142


Which netcat command will listen on port 2222 for connections from a remote system (10.0.0.1)?

Show Answer
Correct Answer: D

To listen on port 2222 for incoming connections from a remote system using netcat, you use the command that includes the -l (listen) switch specifying the port. The correct command is `nc.exe -l -p 2222`, but there is a typographical mistake in the option where '1' should be 'l'. Hence, the correct answer based on the options given would be D, assuming '1' is a typographical error for 'l'.

Discussion

2 comments
Sign in to comment
davidkocOption: D
Mar 29, 2023

It's D but '1' is supposed to be 'L'

Vikt0rOption: B
Dec 7, 2023

Correct answer is B. Options A, C, and D contain syntax errors or incorrect options for achieving the specified task.