Last active
November 27, 2018 14:50
-
-
Save Darkflib/fec7d4de4923ecc057b86dfe4db45a8e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Install dependencies (debootstrap) | |
| sudo apt-get install debootstrap | |
| # Fetch the latest Kali debootstrap script from git | |
| curl "http://git.kali.org/gitweb/?p=packages/debootstrap.git;a=blob_plain;f=scripts/kali;hb=HEAD" > kali-debootstrap &&\ | |
| sudo debootstrap kali-rolling ./kali-root http://http.kali.org/kali ./kali-debootstrap &&\ | |
| # Import the Kali image into Docker | |
| sudo tar -C kali-root -c . | sudo docker import - darkflib/kali-rolling &&\ | |
| sudo rm -rf ./kali-root &&\ | |
| # Test the Kali Docker Image | |
| docker run -t -i kalilinux/kali cat /etc/debian_version &&\ | |
| echo "Build OK" || echo "Build failed!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment