Giter Site home page Giter Site logo

elreydetoda / packer-kali_linux Goto Github PK

View Code? Open in Web Editor NEW
43.0 2.0 17.0 5.24 MB

This is a repository that will be used to help create a process of a new kali vagrant box for hashicorp each week.

License: GNU Lesser General Public License v3.0

Ruby 0.84% Shell 45.85% HCL 12.11% Python 41.19%
vagrant packer automation redops pentesting homelab kali-box kalilinux kali-linux pentestlab

packer-kali_linux's Introduction

Automated Kali Vagrant Box

Kali Vagrant img

credit/src ¹ for image.

CircleCI CodeFactor Codacy Badge Gitter Release Version

Presentation

Overview

Vagrant Cloud Image

here is my account on vagrant cloud (which should list all the packer builds for this repo): https://app.vagrantup.com/elrey741/

and specifically here is the vagrant box for the master branch: https://app.vagrantup.com/elrey741/boxes/kali-linux_amd64

VM info

  • user: vagrant
  • pass: vagrant

Installed software

listed in the scripts directory: here

what this repo will be for

So you can vagrant box update to get the new box that is created from this each month by a cron job on my server. This will allow for a fresh new image of Kali with the most up to date tools through the ease of vagrant and however you want to provision my kali box.

Based on vagrants help command (displayed below), this should destroy/delete anything from before the box was upgraded.

$ vagrant box update --help
Usage: vagrant box update [options]

Updates the box that is in use in the current Vagrant environment,
if there any updates available. This does not destroy/recreate the
machine, so you'll have to do that to see changes.

To update a specific box (not tied to a Vagrant environment), use the
--box flag.

grand scheme

packer vagrant eco So to get the new up to date kali box you would have to vagrant destroy and vagrant up it again. Then everything would be based on your Vagrantfile for provisioning.

things to consider

before vagrant destroy

  • did you backup all your metasploit data? - msfconsole -q -x "db_export -f xml /root/pentesting/metasploit-backups/general/metasploit-backup-main.xml; exit"
  • did you backup all your metasploit creds (doesn't get exported by metasploit by default...)? - msfconsole -q -x "creds -o /root/pentesting/metasploit-backups/creds/metasploit-backup-creds.csv; exit"
  • do you have any customizations that could be automated in your Vagrantfile?
  • putting all your data in your /vagrant folder is ideal, to keep everything shared and making sure it doesn't get lost when destroying boxes (because it is on your local machine as a shared folder)

Dependencies

  • vagrant
  • packer
  • internet connection

Future plans

  • Create different kali box automations (i.e. with empire and other frameworks)
  • docs...eventually :D
  • different virtualization platforms (virtualbox)

Footnotes

[1] KALI LINUX ™ is a trademark of Offensive Security. This repo is not the official implementation of Vagrant and Kali. You can find that here

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.