PrepAway - Latest Free Exam Questions & Answers

What is the correct command to run Netcat on a server using port 56 that spawns command shell when connected?

What is the correct command to run Netcat on a server using port 56 that spawns command shell
when connected?

PrepAway - Latest Free Exam Questions & Answers

A.
nc -port 56 -s cmd.exe

B.
nc -p 56 -p -e shell.exe

C.
nc -r 56 -c cmd.exe

D.
nc -L 56 -t -e cmd.exe

2 Comments on “What is the correct command to run Netcat on a server using port 56 that spawns command shell when connected?

  1. Don says:

    None of these.

    First off the “listen” switch is a small L “l” Then the port is designated by -p

    Only one has L in it abut the wrong L. Also it just has 56 not -p 56.

    The correct answer would be

    nc -l -p 56 -e cmd.exe


Leave a Reply