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?

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

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



Leave a Reply 4

Your email address will not be published. Required fields are marked *


Ghost Man

Ghost Man

B is the Ans.

Black ARP

Black ARP

all are wrong!

D33pBr3dt

D33pBr3dt

**
Ans: D
-p flag isn’t mandatory just fundamental. ( nc -l 56 ) is enough to put netcat into server mode listening on 6543.

nc -l -p 56 -e cmd.exe

$ nc -l -p 56 -e /bin/sh

-t: Telnet negotiation

-L: Listen harder (supported only on Windows version of Netcat). This option makes Netcat a persistent listener which starts listening again after a client disconnects

D33pBr3dt

D33pBr3dt

>> error line 2.
*56.