Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. from __future__ import print_function
  2. import frida
  3. import sys
  4.  
  5. session = frida.attach("hi")
  6. script = session.create_script("""
  7. var st = Memory.allocUtf8String("TESTMEPLZ!");
  8. var f = new NativeFunction(ptr("%s"), 'int', ['pointer']);
  9. // In NativeFunction param 2 is the return value type,
  10. // and param 3 is an array of input types
  11. f(st);
  12. """ % int(sys.argv[1], 16))
  13. def on_message(message, data):
  14. print(message)
  15. script.on('message', on_message)
  16. script.load()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement