Skip to content

Instantly share code, notes, and snippets.

@superr4y
superr4y / dmg_extract.sh
Created September 6, 2017 19:44
Extract apple updates (dmg files)
#!/bin/bash
if [ $# -eq 1 ]; then
dmg2img $1 "$1.img"
USER=user
# get start and size of the last section
echo "Hit I"
sudo parted "$1.img" unit b p > tmp
out=$(sudo cat tmp | tail -2 | awk '{printf $2 $4}' | sed 's/B/ /g')
@superr4y
superr4y / adsf
Created July 2, 2016 11:12
vulnhub breach 1
asdfasdf