Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/totekuh/redsmoke

Command&Control Infrastructure Setup
https://github.com/totekuh/redsmoke

aws c2 deploy kali pentest redteam terraform

Last synced: 1 day ago
JSON representation

Command&Control Infrastructure Setup

Awesome Lists containing this project

README

        

## General Information

One-button-push infrastructure solutions manageable via Terraform.

`redsmoke` consist of terraform scripts for deploying various machines used within an infrastructure you're looking for on a pentest or red team engagement.

`redsmoke` includes the following units:

- `generic-unit`:
- A free-tier Kali image
- A free-tier instance type (t2.micro)
- Pre-configured firewall rules:
- 22/tcp from everywhere
- 80/tcp from everywhere
- 443/tcp from everywhere
- SSH keys auto-generated per instance creation

- `vpn-unit`:
- A free-tier Kali image
- A free-tier instance type (t2.micro)
- A pre-configured OpenVPN server
- Pre-configured firewall rules:
- 22/tcp from everywhere
- 1194/udp from everywhere

## Installation

### Installing AWS CLI
```bash
apt install awscli
aws configure
```

### Installing Terraform (Ubuntu)

- https://developer.hashicorp.com/terraform/downloads

### Cloning redsmoke
```bash
git clone https://github.com/cyberhexe/redsmoke
cd redsmoke
```

## Usage

### Creating the infrastructure

#### generic-unit

Deploying a generic cloud unit:

```bash
cd generic-unit
terraform init
terraform apply -auto-approve
```

Terminating a generic cloud unit:

```bash
cd generic-unit
terraform destroy -auto-approve
```

#### vpn-unit

Deploying a VPN unit:

```bash
cd vpn-unit
terraform init
terraform apply -auto-approve
```

Terminating a VPN unit:

```bash
cd vpn-unit
terraform destroy -auto-approve
```