Code Monkey home page Code Monkey logo

hackswlabs's Introduction

help

ıllıllı hAcksWlbaS ıllıllı

docker Python AWS Build Status

Deploy your kali linux machine in aws

Tools and packages do you need

python3 pip3 -r install requeriments.txt

Help

help

SSH KEYS example

ssh

How to use

After installing boto3

Next, set up credentials (in e.g. ~/.aws/credentials):

[default]
aws_access_key_id = YOUR_KEY
aws_secret_access_key = YOUR_SECRET

Then, set up a default region (in e.g. ~/.aws/config):

[default]
region=us-east-1
➜  hAckWsLabS git:(main) ✗ python3 hackslabs.py -h      
usage: hackslabs [-h] [-l {aws,gcp,azure}] [-z SIZE] [-mx MAXVM] [-mn MINVM]
                 [-k KEYS] [--stop STOP] [-s START] [-t TERMINATE]
                 [-in GETINFO] [-kg SSHKEYGEN] [-ds AWSDESCRIBE] [-v]

Example

python3 hackslabs.py -l aws -z t2.micro -mx 1 -mn 1 -k KaliLinux

Commands to use this script

short large help
-z --awstype type of the instance
-mx --maxvm Max number of VM
-mn --minvm Min number
-k --keypair SSH Keys Pairs in AWS
-l --launch Launch instance
--stop Stop instances
-s --start Start instances
-t --terminate Terminate instances
-in --getinfo all information of vm
-v --version get version of script
-ds --describe get info of sshkeys
-ds --intances-types get info instances and types
Instance vCPU* CPU Credits / hour Mem GiB Storage Network Performance
t2.nano 1 3 0.5 EBS-Only Low
t2.micro 1 6 1 EBS-Only Low to Moderate
t2.small 1 12 2 EBS-Only Low to Moderate
t2.medium 2 24 4 EBS-Only Low to Moderate
t2.large 2 36 8 EBS-Only Low to Moderate
t2.xlarge 4 54 16 EBS-Only Moderate
t2.2xlarge 8 81 32 EBS-Only Moderate

Use docker to deploy this tool

docker build -t hackslabs:0.1.0 .

Run the docker container

docker run -d -ti --name hackslabs <image_id>

verify that container is running

docker ps

Execute commands inside of container

docker exec -ti <conatiner_name> /bin/bash

hackswlabs's People

Contributors

moisestapia avatar snyk-bot avatar mend-bolt-for-github[bot] avatar deepsource-autofix[bot] avatar

Watchers

 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.