Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
offensive-docker-vps — Create a VPS on Google Cloud Platform or Digital Ocean easily with Offensive Docker included to launch assessment to the targets. | Kitploit
Tools/GitHubGitHub/aaaguirrep/offensive-docker-vps
Cloud Infrastructure SecurityScripting & AutomationPenetration TestingDevSecOps
GitHubaaaguirrep/offensive-docker-vps

offensive-docker-vps

Create a VPS on Google Cloud Platform or Digital Ocean easily with Offensive Docker included to launch assessment to the targets.

View Repository
832045 years agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Offensive Docker VPS

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

🎉🎉Digital Ocean Bonus🎉🎉 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
    • 2.- Credentials
      • For Google Cloud Platform
      • For Digital Ocean
      • SSH Private and Public keys
    • 3.- Full Automation: Terraform and Ansible
      • Google Cloud Platform
      • Digital Ocean
    • 4.- Access to VPS
    • 5.- Destroy the VPS
  • 🛡️ Security
  • ☕ Donations
  • Contributing
  • 📈 Stargazers over time
  • License

Requirements

  • Terraform installed (Version used: v0.13.4)
  • Ansible installed (Version used: 2.9.12)
  • SSH private and public keys
  • Google Cloud Platform or Digital Ocean account.
  • Usage

    1.- Clone the repository

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

    2.- Credentials

    • Create credentials folder.

      root@kitploit:~
      mkdir credentials
      
    For Google Cloud Platform
    • Create a new project.
    • Create service account with "Compute Admin" role and download a key in json format in credentials folder.
    • Rename the key to gcp.json
    • Enable "Compute Engine API" for the project.
    For Digital Ocean
    • Create a Personal access tokens with write permission and copy it. See Tutorial
    SSH Private and Public keys
    • Inside credentials folder run ssh-keygen -t rsa -f offensive in the terminal. Empty passphrase is ok.
    • It creates two files: private and public key.

    3.- Full Automation: Terraform and Ansible

    Google Cloud Platform
    • Enter to gcp folder and modify the next value:
      • In main.tf file change the project value with your project-id.
    • Run the next commands:
    root@kitploit:~
    # 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
    
    • Copy the external_ip value

    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
    • Enter to digital-ocean folder
    • With the personal access token copied run export TF_VAR_do_token="Personal_Access_Token_Here"
    • Run the next commands:
    root@kitploit:~
    # 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
    
    • Copy the external_ip value

    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

    • In gcp or digital-ocean folder run the next command. Change x.x.x.x by external_ip value copied.
    root@kitploit:~
    # Access to VPS
    $ ssh [email protected] -i ../credentials/offensive
    

    Demo asciicast

    5.- Destroy the VPS

    • In gcp or digital-ocean folder run the next command.
    root@kitploit:~
    # Destroy the resource
    $ terraform destroy -auto-approve
    

    ⚠️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.

    🛡️ Security

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

    ☕ Donations

    Thanks for your donations, are always appreciated.

    Buy me a coffee

    Contributing

    Contributing Guide

    📈 Stargazers over time

    Stargazers over time

    License

    MIT

    Copyright (c) 2020, Arsenio Aguirre

    Download Tool