Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/totekuh/redsmoke
- Owner: totekuh
- Created: 2021-12-23T21:53:03.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T12:59:46.000Z (about 2 years ago)
- Last Synced: 2024-11-05T09:26:10.512Z (about 2 months ago)
- Topics: aws, c2, deploy, kali, pentest, redteam, terraform
- Language: HCL
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```