Created
March 7, 2018 12:55
-
-
Save T0w3ntum/08bcf8597ed206d7f5ade48de4e566c5 to your computer and use it in GitHub Desktop.
Wrapper to call Frida scripts
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 sys | |
scriptname = sys.argv[1] | |
procname = sys.argv[2] | |
fd = open(scriptname, "r") | |
def on_message(message, data): | |
print(message) | |
print(data) | |
session = frida.get_usb_device().attach(procname) | |
script = session.create_script(fd.read()) | |
fd.close() | |
script.on("message", on_message) | |
script.load() | |
sys.stdin.read() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment