Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import frida, sys
- ss = """
- Interceptor.attach(Module.findExportByName("libril-qc-qmi-1.so", "qcril_sms_process_mt_gw_sms"), {
- onEnter: function (args) {
- console.log('1:' + args[0] + " 2:" + args[1]);
- var pduSize = Memory.readU32(ptr(args[1]).add(28));
- var pduPtr = ptr(args[1]).add(32);
- console.log('Ptr:' + pduPtr + " Size:" + pduSize);
- console.log("SMS-DELIVER PDU: " + hexdump(pduPtr, { offset: 0, length: pduSize, header: false, ansi: false }));
- }
- });
- """
- device = frida.get_device_manager().enumerate_devices()[-1]
- session = device.attach("rild")
- script = session.create_script(ss)
- script.load()
- sys.stdin.read()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement