I want to capture the works of…
- User
I want to capture the works of com.instagram.notifications.push.fbns.FbnsPushNotificationHandler class using frida
Assistant
Here is some Python code using Frida to hook and print the methods called on the com.instagram.notifications.push.fbns.FbnsPushNotificationHandler class in Instagram:
pythonimport frida def on_message(message, data): print(message) session = frida.attach("instagram") script = session.create_script(""" Interceptor.attach(Module.getExportByName("libmain.so", "FbnsPushNotificationHandler"), { onEnter: function (args) { console.log("[+] " + Method.prototype.toString.call(this)); } }); """) script.on('message', on_message) script.load() input() # keep session open
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.