Home

Awesome

<!-- markdownlint-disable MD033 MD041 --> <h2>Offensive Docker VPS</h2>

Create a VPS on Google Cloud Platform or Digital Ocean easily to use Offensive Docker and launch the assessments to the targets.

:tada::tada:Digital Ocean Bonus:tada::tada: You can sign up with my referral link https://m.do.co/c/0d2d40f6a8a1 and get $100 free credit to try it out!

Table of contents

Requirements

Usage

1.- Clone the repository

git clone --depth 1 https://github.com/aaaguirrep/offensive-docker-vps.git vps
cd vps

2.- Credentials

For Google Cloud Platform
For Digital Ocean
SSH Private and Public keys

3.- Full Automation: Terraform and Ansible

Google Cloud Platform
# Initialize terraform provider
$ terraform init
Terraform has been successfully initialized!

# Create the resources
$ terraform apply -auto-approve
Apply complete! Resources: 6 added, 0 changed, 0 destroyed.
Outputs:
external_ip = x.x.x.x

Note: The instance type and the region used are: n1-standard-1 and us-central1. You can change the values on server.tf and main.tf

Demo asciicast

Digital Ocean
# Initialize terraform provider
$ terraform init
Terraform has been successfully initialized!

# Create the resources
$ terraform apply -auto-approve
Apply complete! Resources: 6 added, 0 changed, 0 destroyed.
Outputs:
external_ip = x.x.x.x

Note: The droplet type and the region used are: s-2vcpu-4gb and nyc3. You can change the values on server.tf and variables.tf

Demo asciicast

4.- Access to VPS

# Access to VPS
$ ssh offensive@x.x.x.x -i ../credentials/offensive

Demo asciicast

5.- Destroy the VPS

# Destroy the resource
$ terraform destroy -auto-approve

:warning:Note: For Digital Ocean, if you dont have a default VPC created in the region used it shows an error to destroy the VPC but no problem, it will destroy the others resources.

:shield: Security

The service fail2ban has been installed to avoid brute force and block non-authorized users. :ghost::ghost:

:coffee: Donations

Thanks for your donations, are always appreciated.

Buy me a coffee

Contributing

Contributing Guide

:chart_with_upwards_trend: Stargazers over time

Stargazers over time

License

MIT

Copyright (c) 2020, Arsenio Aguirre