Skip to content

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

Notifications You must be signed in to change notification settings

LaiKash/Python_Frida_Method_Return

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published