๐C2 HTTP Redictor
A C2 redirector is a host that forwards traffic to a real C2 server, acting as a reverse proxy. It's considered best practice to not expose a C2 server directly, so redirectors receive and filter incoming traffic based on specific rules.
Covenant is an open source .NET command and control framework that can run on Windows, MacOS, and Linux. It's designed to be a collaborative C2 for red teamers and make .NET tradecraft easier.
Install Linux Host (Redirector)
We have installed the Covenant C2 on AWS Windows Instance. Now we will use a different linux instance as our C2 redirector.
Connect to the instance using SSH
Create a Listener on the C2 Server (AWS Windows Instance)
Setting up HTTP server (Redirector Machine)
Changing the configuration file (Redirector Machine)
Note: The links such as /en-us/index.html are the default links generated by covenant C2. You can view the links from:
Testing the C2 Server with HTTP Redierctor Setup
Generate a powershell launcher
End
When the victim runs the netstat command, he will only see the redirector ip address, when he visits that ip address it will show the default apache2 webpage. Now the real C2 is hidden from victim and even if victim blocks the redirector ip address then we can use an another machine as a redirector.
REFERENCES
Last updated