Red-Infra-Craft

Redinfracraft Logo

Red-Infra-Craft

Welcome to the RedInfraCraft Tool - your gateway to automating the deployment of robust red team infrastructures! RedInfraCraft is your trusted companion in effortlessly setting up and managing red team infrastructures, streamlining the process so you can focus on your mission.

Let’s craft infrastructures together with RedInfraCraft!

1. Prerequisite

To follow this guide, you’ll need to have the following software installed on your machine:

2. RedInfraCraft Tool Installation

To acquire the tool, you need to clone this GitHub repository. Paste the below command in your terminal.

[!IMPORTANT] Make sure you have installed git in your machine

git clone https://github.com/RedTeamOperations/Red-Infra-Craft.git

3. How to spawn an Infrastructure?

RedInfraCraft enables you to deploy any infrastructure in a single step, automating your tasks efficiently.


spawn an Infrastructure

Available Infrastructures:

Help Commands:

Commands to Spawn 🔧 and Destroy 🗑️ Infras:

Infrastructure Command Description
Mythic C2 🔧 redinfracraft.py create c2 mythic To Create Mythic C2 infrastructure.
Mythic C2 🗑️ redinfracraft.py destroy c2 mythic To Destroy Mythic C2 infrastructure.
Mythic C2 🔧 redinfracraft.py create c2 elb_c2 To Create Mythic C2 with ELB & CloudFront infrastructure.
Mythic C2 🗑️ redinfracraft.py destroy c2 elb_c2 To Destroy Mythic C2 with ELB & CloudFront infrastructure.
Payload 🔧 redinfracraft.py create payload pwndrop To Create pwndrop payload infrastructure.
Payload 🗑️ redinfracraft.py destroy payload pwndrop To Destroy pwndrop payload infrastructure.
Phishing 🔧 redinfracraft.py create phishing gophish To Create Gophish phishing infrastructure.
Phishing 🗑️ redinfracraft.py destroy phishing gophish To Destroy Gophish phishing infrastructure.
Phishing 🔧 redinfracraft.py create phishing evilginx To Create Evilginx phishing infrastructure.
Phishing 🗑️ redinfracraft.py destroy phishing evilginx To Destroy Evilginx phishing infrastructure.
All-in-one 🔧 redinfracraft.py create full_infra To Create all infrastructures in one go (Mythic C2 with CloudFront and Load Balancer, Payload, Phishing).
All-in-one 🗑️ redinfracraft.py destroy full_infra To Destroy all infrastructures in one go (Mythic C2 with CloudFront and Load Balancer, Payload, Phishing).


4. Infrastructure Walkthroughs:

Common steps required to perform for each infrastructure deployment.

Upon executing command to spawn infra, you need to authenticate yourself and provide the following details:

You will see that your infra is deployed successfully.

[!NOTE] Once the command is successfuly executed, you’ll find the secret file (with the given name) in the same folder were you have deployed the tool inside the respective infra’s directory. Now, you need to connect the EC2 instance.

  1. First limit the permissions of the secret file:
chmod 400 YourSecretFileName

You can also do it manually as well by visiting properties of the secret file.

  1. Make an SSH connection with the machine:
ssh -i "YourSecretFileName" machine_name

You can get this command from your AWS Management Console as well, remember you dont need to add .pem while entering YourSecretFileName


4.1 Mythic C2


Mythic_C2



Demo: Infra Deployment 🎬

Check out the demo for Infra deployment (plays directly in browser):

asciicast

[!NOTE] Perform Common necessary steps mentioned above

These steps will help you properly set up and connect to Mythic after provisioning the infrastructure.

Visit https://localhost:7443/new/login to access Mythic.


4.2 Mythic C2 with ELB & CloudFront



Mythic_c2_elb


Demo: Infra Deployment 🎬

Check out the demo for Infra deployment (plays directly in browser):

asciicast

[!NOTE] Perform Common necessary steps mentioned above

These steps will help you properly set up and connect to Mythic after provisioning the infrastructure.

To Create Payload:

After accessing Mythic, follow these steps to create a payload:

  1. Visit “https://localhost:7443/new/login” to access Mythic.
  2. Once logged in, navigate to the payload creation section.
  3. In the “Domain” field, add the domain of the CloudFront distribution. You can obtain this domain from the management console of AWS.
  4. Set the “Callback port” to 443.
  5. Review your payload configuration.
  6. You can view your payload details and download it for use.

These steps will help you create a payload in Mythic with the appropriate domain and callback port settings for your CloudFront distribution.


4.3 Payload - Pwndrop


pwndrop



Demo: Infra Deployment 🎬

Check out the demo for Infra deployment (plays directly in browser):

asciicast

Visit https:///pwndrop to access Pwndrop dashboard

These steps will help you properly set up and connect to pwndrop after provisioning the infrastructure.


4.4 Phishing - GoPhish


gophish



Demo: Infra Deployment 🎬

Check out the demo for Infra deployment (plays directly in browser):

asciicast

[!NOTE] Perform Common necessary steps mentioned above

Now you can access all options of GoPhish.

These steps will help you properly set up and connect to GoPhish after provisioning the infrastructure.


4.5 Phishing - EvilGinx


evilginx



Demo: Infra Deployment 🎬

Check out the demo for Infra deployment (plays directly in browser):

asciicast

[!NOTE] Perform Common necessary steps mentioned above

These steps should help you properly set up and connect to EvilGinx after provisioning the infrastructure


4.6 All-in-one


overall

Demo: Infra Deployment 🎬

Check out the demo for Infra deployment (plays directly in browser):

asciicast

[!NOTE] Perform Common necessary steps mentioned above**

This infrastructure offers you the flexibility to utilize every component. You must adhere to the specified steps for each respective component.

Learning Content

If you want to learn more, please refer to this content:


Certifications


Future Releases

This is the initial version of our tool, currently hosted on the AWS cloud platform. We’ve laid the groundwork for this release, focusing on delivering robust and reliable services on AWS.

However, this is just the beginning.

In the near future, we plan to significantly expand the tool’s capabilities. Our roadmap includes adding support for more frameworks, which will give users more options to meet their specific needs. This expansion will improve the tool’s flexibility and usability, targeting a broader audience.

Additionally, we are working to make this tool available on other major cloud providers. Soon, users will be able to access this tool on Microsoft Azure and Google Cloud Platform (GCP). This multi-cloud support will ensure that our tool can integrate seamlessly into a variety of cloud environments, providing more choice and convenience to our users. Stay tuned for these exciting updates as we continue to develop and improve our tools to better meet your needs.


Your Feedback

We highly value your feedback, as it plays a crucial role in the continuous development of RedInfraCraft. Your suggestions and comments are invaluable in further enhancing the tool. Please don’t hesitate to share your thoughts either by creating an Issue or reaching out to us via email at info@cyberwarfare.live with the subject RedInfraCraft.