Giter VIP home page Giter VIP logo

bit-pentest-labs's Introduction

BIT Pentest Labs

Bit Pentest labs is a collection of open source security practice labs that we’ve automated the installation for ease of deploying and destroying security lab environments. The labs will be deployed to AWS or VirtualBox.

This project is in it's infancy stages. We will continue to enhance documentation and lab modules. Thanks for your patience and hack all the things!

AWS LAB Setup

Requirements

  • AWS account (We will use t2.micro instances when deploying instances. You are responsible for all charges in AWS)
  • terraform (terraform.io) Follow Hashicorps instructions on how to install terraform on your OS
  • ssh keys - Below is an example on generating ssh keys for labs. The keys will be added to AWS.
  • desire, passion, and knack to hack all the things! For learning purposes of course

Installation

Clone the bit-pentest-labs project

git clone [email protected]:BlacksInTechnologyOrg/bit-pentest-labs.git

goto project folder

cd bit-pentest-labs

Create feature branch.

git checkout -b <name>

Generate ssh keys

cd ~/.ssh
ssh-keygen -f bitHackLab -t rsa -b 4096

Update labs.tfvars

cd aws/terraform/deploy/
cp labs.tfvars.example labs.tfvars
vim labs.tvfars

update the following settings:
  - aws_access_key
  - aws_secret_key
  - ssh_public_key (Use public key from step 3)
  - ip_list
  - subnet_id (Get from AWS)
  - vpc_id (Get from AWS)

Prep deploy. (you will need to be in the aws/terraform/deploy directory)

cd aws/terraform/deploy
terraform get  (Pulls modules from the terraform modules folder to deploy/.terraform)
terraform plan -var-file="labs.tfvars" (This will let you see what will be deployed)
terraform apply -var-file="labs.tfvars" (Deploys labs to AWS)

Usage

Access webgoat instance after deploying

http://<public_ip>:8080/WebGoat

Destroy AWS lab

cd aws/terraform/deploy
terraform destroy -var-file="labs.tfvars" (type yes when prompted)

Please verify that everything was removed from AWS by logging into the console.

ssh to instances

ssh -i ~/.ssh/bitHackLab ec2-user@<x.x.x.x> (Use public ip address from the output of your deployment run>

run "terraform show terraform.tfstate" if you forgot you public ip's

Review AWS lab info

terraform show terraform.tfstate (this will give you the details of your aws deployment)

License

TODO: Write license

bit-pentest-labs's People

Contributors

ronhashjr avatar

Watchers

 avatar  avatar  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.