Last Updated on November 17, 2023 by InfraExam
On an infected Windows host, what command can be used to verify if the host has an established HTTP connection to the command and control server?
|Explanation & Hint:
Certainly, let’s walk through how to use the Windows Command Prompt to verify established HTTP connections to a command and control server.
- Open Command Prompt:
Windows Key + R to open the “Run” dialog.
cmd and press Enter to open the Command Prompt.
- Use the
netstat command displays active network connections on your Windows system. You can use it to check for established HTTP connections.Here’s the command to use:
netstat -an | find "ESTABLISHED" | find ":80"
netstat -an: This part of the command displays all active network connections, both listening and established.
|: It’s a pipe operator, used to send the output of one command as input to another.
find "ESTABLISHED": This filters the results to show only established connections.
find ":80": This further narrows down the results to connections on port 80, which is the default port for HTTP.
- Interpret the results:The output of the
netstat command will display a list of established connections on port 80 (HTTP). Look for any connections that are established to the IP address or domain of the command and control server.If you see a line that matches the IP address or domain of your command and control server and the port 80, it indicates that an HTTP connection to the command and control server is established.Keep in mind that this method is only useful for checking established network connections. It won’t provide details about the content or the nature of the communication between the infected Windows host and the command and control server.
For more Questions and Answers: