Frida monitor memory read and write

When analyzing an application, a string is found, but the index of the string cannot be found, such as the situation in the figure below

insert image description here

At this time, you can use frida to monitor the reading and writing of memory. The corresponding module is MemoryAccessMonitor. The code snippet is as follows:

MemoryAccessMonitor.enable({
    
    
    base:libjni.base.add(0x581799),
    size:12
},{
    
    
    onAccess: function(details) {
    
    
        console.log("0x" + (details.from - libjni.base).toString(16))
    }
})

Guess you like

Origin blog.csdn.net/weixin_56039202/article/details/127041865