Hi'ya smart people,
I'm using Frida to intercept a specific method in a Unity game, and I'm getting an access violation exception thrown on the address I'm trying to hit.
Frida 15 with the JavaScript API is what i'm using, on an iPhone 5s running 13.6.1, jailbroken with unc0ver.
I'm assuming this is because of ASLR, however, this has not happened to me before upgrading to 15 recently, so it might just be something I'm missing.
Code snippet for reference:
const moduleBaseAddress = Module.getBaseAddress('naughtyapp');
console.log('Found module base address: ' + moduleBaseAddress); // moduleBaseAddress changes on every run, so ASLR, right?
const pointer = moduleBaseAddress.add('0x15c2bec');
console.log('Found pointer: ' + pointer); // pointer here changes on every run, so ASLR, right?
Interceptor.attach(pointer, {
onEnter(args) {
console.log("Whoop! Working, now do something naughty here...");
},
onLeave() {
console.log("Well, think it is time we leave, whatcha thing?");
}
});
I'm very new to Frida, and most of what I've been able to achieve has been by example, however, I cannot find a tangible solution on the interwebs that has any form of solution that works. Got told by someone on another forum that you guys are really good with these type of things so, hopefully, someone on here can help me out, would greatly appreciate it, or if there is a better way to intercept where the pointers just never change, would like to know about that as well.
Appreciate the time and effort on this query.