Skip to content

Instantly share code, notes, and snippets.

View gteissier's full-sized avatar
🎱
Focusing

guillaume teissier gteissier

🎱
Focusing
View GitHub Profile
// iPhone11,2-4-6
void inject_trusts(int pathc, const char *paths[])
{
printf("[+] injecting into trust cache...\n");
extern uint64_t g_kern_base;
static uint64_t tc = 0;
if (tc == 0) {
// loaded_trust_caches: 0xFFFFFFF008F702C8
@gteissier
gteissier / Makefile
Last active October 17, 2018 14:23
Binary grep: Python re, C Knuth-Pratt-Morris, C memmem, Ragel based. Indication of performance: Ragel is the winner, memmem is the worst
CFLAGS=-g -O2
all: bgrep-ragel.rl bgrep-kmp.c
ragel -C -G2 -o bgrep-ragel.c bgrep-ragel.rl
gcc -Wno-unused-const-variable $(CFLAGS) -c bgrep-ragel.c -o bgrep-ragel.o
gcc -o bgrep-ragel bgrep-ragel.o
gcc $(CFLAGS) -c bgrep-kmp.c -o bgrep-kmp.o
gcc -o bgrep-kmp bgrep-kmp.o
gcc $(CFLAGS) -c bgrep-memmem.c -o bgrep-memmem.o
gcc -o bgrep-memmem bgrep-memmem.o