Up until recently, we've enjoyed in-memory loading of Mach-O bundles courtesy of dyld and its NSCreateObjectFileImageFromMemory/NSLinkModule API methods. And while these methods still exist today, there is a key difference.. memory modules are now persisted to disk. So in this post we'll take a look at just what was changed in dyld, and see what we can do to restore this functionality... hopefully keeping our warez in memory for a little longer.| XPN InfoSec Blog
Every now and then, I find myself running a program and think “You know what would be really cool? What if, whenever function is called, MyFunction was called instead? Wouldn’t that be great?!” This thought has rolled around in my head for years, but accomplishing it always seemed to come with baggage I didn’t want to deal with, or complexities I didn’t understand. Using linkers and Objective-C runtime tricks to swap functions is something I’ve done with reckless abandon for d...| fdiv.net