Giter Site home page Giter Site logo

excloudx6 / vps-mainrecon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from l34r00t/vps-mainrecon

0.0 0.0 0.0 27 KB

Create a VPS on Digital Ocean easily with the mainRecon included to launch the recon workflow.

License: MIT License

HTML 50.47% HCL 41.32% Dockerfile 8.21%

vps-mainrecon's Introduction

VPS - mainRecon

Create a VPS on Digital Ocean easily with the mainRecon included to launch the recon workflow.

Digital Ocean Bonus

You can sign up with my referral link https://m.do.co/c/b5a9fc36fd95 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/l34r00t/vps-mainRecon.git
cd vps-mainRecon

2.- Credentials

  • Create credentials folder.

    mkdir credentials
SSH Private and Public keys
  • Inside credentials folder run ssh-keygen -t rsa -f mainRecon in the terminal. Empty passphrase is ok.
  • It creates two files: private key (mainRecon) and public key (mainRecon.pub).
For Digital Ocean
  • Create a Personal access tokens with write permission and copy it. See Tutorial

3.- Full Automation: Terraform and Ansible

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:
# Initialize terraform provider
$ terraform init
Terraform has been successfully initialized!

# Create the resources
$ terraform apply -auto-approve
Apply complete! Resources: 3 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 & Run mainRecon

  • In digital-ocean folder run the next command. Change x.x.x.x by external_ip value copied.
# Access to VPS
$ ssh [email protected] -i ../credentials/mainRecon
  • For run mainRecon image you can see the mainRecon repository.

Demo asciicast

6.- Destroy the VPS

  • In digital-ocean folder run the next command.
# Destroy the resource
$ terraform destroy -auto-approve

โš ๏ธNote: 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

If you like my content, please consider inviting me a coffee.

Buy me a coffee

Contributing

Contributing Guide

Stargazers over time

Stargazers over time

Credits

This repository has been possible thank you to my friend Arsenio Aguirre

License

MIT

Copyright (c) 2020, L34r00t

vps-mainrecon's People

Contributors

l34r00t avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.