Skip to content

Instantly share code, notes, and snippets.

Avatar

Antonio Frighetto afrighetto

View GitHub Profile
@afrighetto
afrighetto / 6974.c
Created Mar 1, 2020
CVE-2015-6974 IOHIDFamily UAF PoC
View 6974.c
// 2k20 antoniofrighetto & benjamin
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <mach/mach.h>
@afrighetto
afrighetto / build-xnu.sh
Last active Aug 6, 2020
Script to build any XNU kernel version.
View build-xnu.sh
# !/bin/bash
# 2k20 ~antoniofrighetto
# Build any XNU kernel version. Make sure you have the related MacOSX SDK version installed
#
# macOS 10.15.4 kernel compilation successfully tested on macOS 10.15.6 and Xcode 11.6
#
# MACOS_VERSION=10.15.4 BACKUP_SDK=1 OPTIONS=RELEASE,DEVELOPMENT ./build-xnu.sh
# XNU_VERSION=xnu-4570.41.2 ./build-xnu.sh
set_macos_version() {
You can’t perform that action at this time.