GPEN Exam QuestionsBrowse all questions from this exam

GPEN Exam - Question 65


What is the purpose of die following command:

nc.exe -I -p 2222 -e cmd.exe

Show Answer
Correct Answer: B

The command 'nc.exe -l -p 2222 -e cmd.exe' is used to start a listener linked to cmd.exe on port 2222 using TCP. By default, Netcat uses TCP unless the UDP protocol is explicitly specified with the '-u' option.

Discussion

2 comments
Sign in to comment
erebus
Aug 23, 2024

Netcat defaults to TCP unless specified

erebusOption: A
Aug 23, 2024

It’s b