Skip to content

Instantly share code, notes, and snippets.

@nadiaholmquist
nadiaholmquist / 0-pam-touchid-setup.md
Last active June 26, 2024 00:09
Permanent setup for sudo with Touch ID for macOS

Permanent sudo Touch ID setup for macOS

Want to use Touch ID with sudo but annoyed that the change gets reset every time macOS updates? Here's a hacky solution to fix that!

Installation

  1. Compile pam-touchid-setup.c
    clang -o pam-touchid-setup pam-touchid-setup.c
    
@pwn0rz
pwn0rz / fprpc.c
Created May 30, 2021 09:12
The MIG from FairplayIOKit to fairplayd
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <mach/mach.h>
#include <CommonCrypto/CommonCrypto.h>
#include <ctype.h>
void hexdump(void *ptr, int buflen) {
unsigned char *buf = (unsigned char*)ptr;
int i, j;