Skip to content

Instantly share code, notes, and snippets.

@marckysharky
Created October 28, 2016 07:57
Show Gist options
  • Save marckysharky/34d131075448e559ab15f81d840871fe to your computer and use it in GitHub Desktop.
Save marckysharky/34d131075448e559ab15f81d840871fe to your computer and use it in GitHub Desktop.
#!/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