This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import frida | |
import sys | |
session = frida.attach("chrome.exe") | |
script = session.create_script(""" | |
var baseAddr = Module.findBaseAddress("chrome.exe"); | |
print("chrome.exe baseAddress is at :"+baseAddr); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function jhexdump(array) { | |
if(!array) return; | |
console.log("---------jhexdump start---------"); | |
var ptr = Memory.alloc(array.length); | |
for(var i = 0; i < array.length; ++i) | |
Memory.writeS8(ptr.add(i), array[i]); | |
console.log(hexdump(ptr, {offset: 0, length: array.length, header: false, ansi: false})); | |
console.log("---------jhexdump end---------"); | |
} |