Last active
May 9, 2020 02:58
-
-
Save Robert-Cunningham/5470c2ff32442652473008c5d4b47e77 to your computer and use it in GitHub Desktop.
Quick Frida Build
This file contains 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
import frida | |
import time | |
def on_message(m): | |
print(m['payload']) | |
device = frida.get_usb_device() | |
pid = device.spawn(["com.your.android.package"]) | |
print("PID is", pid) | |
session = device.attach(pid) | |
script = session.create_script(open('your_script.js').read()) | |
script.on('message', on_message) | |
device.resume(pid) | |
time.sleep(2) | |
script.load() | |
print('Done.') | |
input() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment