GIAC Penetration Tester (GPEN) — Question 36
What is the purpose of die following command:
nc.exe -I -p 2222 -e cmd.exe
Answer options
- A. It is used to start a persistent listener linked to cmd.exe on port 2222 TCP
- B. It is used to start a listener linked to cmd.exe on port 2222 TCP
- C. It is used to start a listener linked to cmd.exe on port 2222 UDP
- D. It is used to start a persistent listener linked to cmd.exe on port 2222 UDP
Correct answer: C
Explanation
The correct answer is C because the command specifies the use of UDP with the -I option, which stands for 'UDP mode.' Options A and B incorrectly state that it uses TCP, while option D wrongly suggests that it is a persistent listener, which is not the case with the -I flag.