Skip to content

Instantly share code, notes, and snippets.

View mkYYY's full-sized avatar
😵

M6M mkYYY

😵
View GitHub Profile
@mkYYY
mkYYY / Makefile
Last active July 10, 2021 09:01
Apple Silicon HVF capability testing (you have to set amfi_get_out_of_my_way=1)
CC := $(shell which clang)
MKDIR := $(shell which mkdir)
CODESIGN := $(shell which codesign)
CFLAGS += -arch arm64
CFLAGS += -isysroot $(shell xcrun --show-sdk-path --sdk macosx)
CFLAGS += -framework Hypervisor
all: security.plist vmapple.plist private.plist
security.plist: cap results
@mkYYY
mkYYY / fizzbuzz.S
Created May 5, 2020 16:52
x86_64 AT&T assembly fizzbuzz
// $ gcc -o fizzbuzz fizzbuzz.S
// $ ./fizzbuzz <natural number>
.section .rodata
s_fizz: .asciz "Fizz\n"
s_buzz: .asciz "Buzz\n"
s_fizzbuzz: .asciz "FizzBuzz\n"
s_ldformat: .asciz "%ld\n"
.section .text
@mkYYY
mkYYY / generate.py
Last active January 20, 2020 23:19
Python script to give function names for iOS kernelcaches on Radare2, by using Jtool2's companion file
#!/usr/bin/env python3
import sys
import re
def usage():
print("""usage: %s <kernelcache> <Jtool2's companion file> <R2 project name>
Companion file can be obtained as follows:
$ jtool2 --analyze <kernelcache>
""")