Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. /*
  2. LAUNCHER:
  3.  
  4. import frida
  5. import time
  6. device = frida.get_usb_device()
  7. pid = device.spawn(["com.ants360.yicamera.international"])
  8. time.sleep(1) #Without it Java.perform silently fails
  9. session = device.attach(pid)
  10. script = session.create_script(open("script.js").read())
  11. script.load()
  12. device.resume(pid)
  13.  
  14. raw_input()
  15. */
  16.  
  17. //Script
  18. console.log("DeviceID finder, target version 4.0.5_20190318");
  19. Java.perform(function x(){
  20. var target = Java.use("com.ants360.yicamera.util.i");
  21. target.c.implementation = function()
  22. {
  23. var res = this.c();
  24. console.log("DeviceID: " + res);
  25. return res;
  26. }
  27. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement