Created
October 28, 2016 07:57
-
-
Save marckysharky/34d131075448e559ab15f81d840871fe 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 | |
DEVICE_ID="disk2" | |
KALI_VERSION="2.1.2" | |
KALI_IMG="kali-$KALI_VERSION-rpi2.img" | |
# fetch image | |
wget https://images.offensive-security.com/arm-images/$KALI_IMG.xz | |
brew install xz | |
xz -d $KALI_IMG.xz | |
sudo diskutil unmountDisk /dev/$DEVICE_IDs1 | |
sudo dd bs=1m if=$KALI_IMG of=/dev/r$DEVICE_ID | |
sudo diskutil eject /dev/r$DEVICE_ID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment