Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
tihmstar / Odyssey14_leak.cpp
Last active Mar 25, 2021
Stable internal kernelRW primitives #odyssey14 #leak
View Odyssey14_leak.cpp
extern "C"
void initKernRw(mach_port_t dstTask, uint64_t dstTaskAddr, uint64_t (*kread64)(uint64_t addr), void (*write_20)(uint64_t addr, const void *buf)){
KernelRW *newKrw = new KernelRW;
auto p = newKrw->getPrimitivepatches(kread64,dstTaskAddr);
uint8_t buf[20];
for (int i=0; i<sizeof(buf); i+=8) {
*((uint64_t*)&buf[i]) = kread64(p.where-20+8+4+i);
View nvrampatcher.c
* The MIT License (MIT)
* Copyright (c) 2016 Pupyshev Nikita
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,