Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 964 Bytes

README.md

File metadata and controls

22 lines (12 loc) · 964 Bytes

Python_Frida_Method_Return

A simple and dirty Python script that use Frida to print the returned value from an Android method.

Read the -h option first.

This script will read from the file "arguments.txt" in the same directory and pass each line as an argument to the Java method of the class and package specified. Then it will print the returned values.

This is usefull when trying to deobfuscate some strings that have custom deobfuscation methods. Just do something like:

cat > arguments.txt

And paste+enter the obfuscated strings (without ""). At the end, ctrl+c and execute the script. Dirty but easy.

The default script only works with public static methods. The script2.js has an example on how it could be done when a method instance is needed.

Example use:

python3 script.py com.example.package com.example.class.MainActivity exampleMethod

TODO

Include the -p option to attach to a process (due to apps with no front-end actvity).