Skip to content

Instantly share code, notes, and snippets.

View jakeajames's full-sized avatar

Jake James jakeajames

  • Antartica
View GitHub Profile
@jakeajames
jakeajames / patchfinder.c
Created April 28, 2018 16:23
gPhysBase and gVirtBase patchfinder
...
//from stek29
uint64_t find_bootargs(void) {
/*
ADRP X8, #_PE_state@PAGE
ADD X8, X8, #_PE_state@PAGEOFF
LDR X8, [X8,#(PE_state__boot_args - 0xFFFFFFF0078BF098)]
ADD X8, X8, #0x6C
STR X8, [SP,#0x550+var_550]