frida示例代码仓库
check_for_native_calls.py | ||
dump_dynamically_created_files.py | ||
log_string_builders_and_string_compare.js | ||
README.md |
learn-frida-the-hard-way
TODOs: Add GIFs & docs
-
Hook example:
java.lang.reflect.Method#invoke(Object obj, Object... args, boolean bool)
Java.use('java.lang.reflect.Method').invoke.overload('java.lang.Object', '[Ljava.lang.Object;', 'boolean').implementation = function(a,b,c) { console.log('hooked!', a, b, c); return this.invoke(a,b,c); };
-
Hook constructor
Java.use('java.lang.StringBuilder').$init.overload('java.lang.String').implementation = function(stringArgument) { console.log("c'tor"); return this(stringArgument); };