Jump to content

1 post in this topic

Recommended Posts

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines