Skip to content

Instantly share code, notes, and snippets.

Antonio Frighetto afrighetto

Block or report user

Report or block afrighetto

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@afrighetto
afrighetto / build-xnu.sh
Last active Oct 10, 2018
Script to build any XNU kernel version.
View build-xnu.sh
# !/bin/bash
# Originally written by bazad (https://gist.github.com/bazad/654959120a423b226dc564073b435453), adapted and extended by antoniofrighetto.
# Build any XNU kernel version. Make sure you have the related MacOSX SDK version installed. Tested on macOS 10.13.6.
#
# MACOS_VERSION=10.13.3 BACKUP_SDK=1 OPTIONS=RELEASE,DEVELOPMENT ./build-xnu.sh
# XNU_VERSION=xnu-4570.41.2 ./build-xnu.sh
set_macos_version() {
[[ $XNU_VERSION != "xnu-"* ]] && XNU_VERSION="${XNU_VERSION/#/xnu-}"
echo "[+] Finding macOS version corresponding to XNU version ${XNU_VERSION}. May take a while..."
You can’t perform that action at this time.