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 /
Last active Oct 10, 2018
Script to build any XNU kernel version.
# !/bin/bash
# Originally written by bazad (, 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.
# XNU_VERSION=xnu-4570.41.2 ./
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.