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

Explanation:
-e filename specify filename to exec after connect (use with caution).
-l listen mode, for inbound connects
-t enable telnet negotiation

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


Leave a Reply