{"id":13844702,"url":"https://github.com/elreydetoda/packer-kali_linux","last_synced_at":"2026-04-06T00:02:03.991Z","repository":{"id":38182199,"uuid":"119017409","full_name":"elreydetoda/packer-kali_linux","owner":"elreydetoda","description":"This is a repository that will be used to help create a process of a new kali vagrant box for hashicorp each week.","archived":false,"fork":false,"pushed_at":"2023-04-19T01:12:12.000Z","size":5365,"stargazers_count":42,"open_issues_count":28,"forks_count":15,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T21:05:25.531Z","etag":null,"topics":["automation","homelab","kali-box","kali-linux","kalilinux","packer","pentesting","pentestlab","redops","vagrant"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elreydetoda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-26T06:59:14.000Z","updated_at":"2025-01-02T02:15:51.000Z","dependencies_parsed_at":"2024-02-21T10:58:43.058Z","dependency_job_id":null,"html_url":"https://github.com/elreydetoda/packer-kali_linux","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/elreydetoda/packer-kali_linux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elreydetoda%2Fpacker-kali_linux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elreydetoda%2Fpacker-kali_linux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elreydetoda%2Fpacker-kali_linux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elreydetoda%2Fpacker-kali_linux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elreydetoda","download_url":"https://codeload.github.com/elreydetoda/packer-kali_linux/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elreydetoda%2Fpacker-kali_linux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31454200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","homelab","kali-box","kali-linux","kalilinux","packer","pentesting","pentestlab","redops","vagrant"],"created_at":"2024-08-04T17:02:52.793Z","updated_at":"2026-04-06T00:02:03.950Z","avatar_url":"https://github.com/elreydetoda.png","language":"Shell","funding_links":[],"categories":["Shell (473)","Shell"],"sub_categories":[],"readme":"# Automated Kali Vagrant Box\n\n[![Kali Vagrant img](https://www.kali.org/blog/announcing-kali-for-vagrant/images/kali-on-vagrant.jpg)](https://github.com/elreydetoda/packer-kali_linux)\n\n[credit/src](https://www.kali.org/blog/announcing-kali-for-vagrant/) [¹](#footnotes) for image.\n\n[![CircleCI](https://circleci.com/gh/elreydetoda/packer-kali_linux/tree/master.svg?style=svg)](https://circleci.com/gh/elreydetoda/packer-kali_linux/tree/master)\n[![CodeFactor](https://www.codefactor.io/repository/github/elreydetoda/packer-kali_linux/badge)](https://www.codefactor.io/repository/github/elreydetoda/packer-kali_linux)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/17c18e4c56b4477d8a21d10abbd94837)](https://app.codacy.com/app/unc741/packer-kali_linux?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=elreydetoda/packer-kali_linux\u0026utm_campaign=Badge_Grade_Dashboard)\n[![Gitter](https://img.shields.io/gitter/room/elreydetoda/packer-kali_linux.svg?color=red)](https://gitter.im/packer-kali_linux/community)\n[![Release Version](https://img.shields.io/github/release/elreydetoda/packer-kali_linux.svg)](https://github.com/elreydetoda/packer-kali_linux/releases/latest)\n\n\u003c!-- If the build status if failing please checkout [pinned issues](https://github.com/elreydetoda/packer-kali_linux/issues), and if there are no pinned issues then please file a detailed bug issue (template comming soon). --\u003e\n\n## Presentation\n\n* Slideshow - [https://slides.com/elrey741/redops](https://slides.com/elrey741/redops)\n* Video\n  * (coming soon)[SELF (Southeast Linuxfest)](https://www.youtube.com/user/southeastlinuxfest/playlists)\n  * [bsides chs](http://youtu.be/9EnDotVmcl8)\n  * Vagrant for Pentesters ( not directly tied to project, but applicable )\n\n    [![vagrant for pentesters vid](https://i.ytimg.com/vi_webp/Gb0peU3bckQ/maxresdefault.webp)](https://youtu.be/Gb0peU3bckQ)\n* Blog posts\n  * Part 1: [https://blog.secureideas.com/2018/09/automating-red-team-homelabs-part-1-kali-automation.html](https://blog.secureideas.com/2018/09/automating-red-team-homelabs-part-1-kali-automation.html)\n    * This blog post is a high level overview as to what I want to use this repo for\n  * Part 2: [https://blog.secureideas.com/2019/05/automating-red-team-homelabs-part-2-build-pentest-destroy-and-repeat.html](https://blog.secureideas.com/2019/05/automating-red-team-homelabs-part-2-build-pentest-destroy-and-repeat.html)\n    * This blog post is a deep dive into using packer and how I automated this github repo.\n\n\u003c!--\n## Quick Start\n\n### Use case #1\n\nThis will be if you just simply want to use this image and use my build of Kali Linux that gets built weekly on Saturdays. (For best user experience I will be using another repo of mine that has some additional provisioning (even if you don't want to use mine you can still look at what I am doing, in case you want to do something similar), which will be [here](https://github.com/elreydetoda/vagrant-files/tree/master/elrey741_kali-linux_amd64). Feel free to do your own thing if you know what you are doing: https://app.vagrantup.com/elrey741/boxes/kali-linux_amd64)\n\n* make sure you have all the software installed that is needed.\n  * [vagrant](https://www.vagrantup.com/downloads.html)\n  * [virtualbox](https://www.virtualbox.org/wiki/Downloads) or vmware\\*\n    * \\* - for vmware you need additional vagrant specific [plugins](https://www.vagrantup.com/docs/vmware/installation.html), also not providing a download link for vmware because if you know about it you most likely already have it installed.\n  * git (optional) (if you want to clone the software instead of just download)\n* Download necessary files- simply git or wget the files\n  * wget https://github.com/elreydetoda/vagrant-files/archive/master.zip`\n  * git clone https://github.com/elreydetoda/vagrant-files.git\n* cd into the necessary directory\n  * `cd vagrant-files/elrey741_kali-linux_amd64`\n* start download\n  * `vagrant up`\n* start use\n  * `vagrant ssh`\n\n*NOTE*: for general use condsiderations, please checkout the [things to consider](#things_to_consider)\n\n### Use case #2\n--\u003e\n\n## Overview\n\n### Vagrant Cloud Image\n\nhere is my account on vagrant cloud (which should list all the packer builds for this repo): [https://app.vagrantup.com/elrey741/](https://app.vagrantup.com/elrey741/)\n\nand specifically here is the vagrant box for the master branch: [https://app.vagrantup.com/elrey741/boxes/kali-linux_amd64](https://app.vagrantup.com/elrey741/boxes/kali-linux_amd64)\n\n### VM info\n\n* user: vagrant\n* pass: vagrant\n\n#### Installed software\n\nlisted in the scripts directory: [here](https://github.com/elreydetoda/packer-kali_linux/tree/master/prov_packer)\n\n### what this repo will be for\n\nSo 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.\n\nBased on vagrants help command (displayed below), this should destroy/delete anything from before the box was upgraded.\n\n```bash\n$ vagrant box update --help\nUsage: vagrant box update [options]\n\nUpdates the box that is in use in the current Vagrant environment,\nif there any updates available. This does not destroy/recreate the\nmachine, so you'll have to do that to see changes.\n\nTo update a specific box (not tied to a Vagrant environment), use the\n--box flag.\n```\n\n### grand scheme\n\n![packer vagrant eco](https://blog.secureideas.com/wp-content/uploads/2018/09/packer_vagrant_eco.png)\nSo 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.\n\n### things to consider\n\nbefore `vagrant destroy`\n\n* did you backup all your metasploit data? - `msfconsole -q -x \"db_export -f xml /root/pentesting/metasploit-backups/general/metasploit-backup-main.xml; exit\"`\n* 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\"`\n* do you have any customizations that could be automated in your Vagrantfile?\n* 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)\n\n## Dependencies\n\n* vagrant\n* packer\n* internet connection\n\n### Future plans\n\n* [ ] Create different kali box automations (i.e. with empire and other frameworks)\n* [ ] docs...eventually :D\n* [ ] different virtualization platforms (virtualbox)\n\n## Footnotes\n\n[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](https://gitlab.com/kalilinux/build-scripts/kali-vagrant/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felreydetoda%2Fpacker-kali_linux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felreydetoda%2Fpacker-kali_linux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felreydetoda%2Fpacker-kali_linux/lists"}