areizen / jni-frida-hook Goto Github PK
View Code? Open in Web Editor NEWScript to quickly hook natives call to JNI in Android
Script to quickly hook natives call to JNI in Android
360加固自己实现了类似linker的so加载,这样加载出来的so无法被被识别为module,find_module为null
I tried on a sample app - https://github.com/berkayyildi/Frida-Android-Hooking/blob/master/MyApplicationJNI.zip.
But I got an error
$ frida -U -l _agent.js --no-pause -f com.noplay.myapplication
____
/ _ | Frida 12.6.1 - A world-class dynamic instrumentation toolkit
| (_| |
> _ | Commands:
/_/ |_| help -> Displays the help system
. . . . object? -> Display information about 'object'
. . . . exit/quit -> Exit
. . . .
. . . . More info at http://www.frida.re/docs/home/
Spawned `com.noplay.myapplication`. Resuming main thread!
ReferenceError: identifier 'library_name' undefined
at [anon] (../../../frida-gum/bindings/gumjs/duktape.c:81174)
at /repl1.js:4
at o (/repl1.js:1)
at r (/repl1.js:1)
at /repl1.js:110
Changed two lines in agent.js
library_name = "libnative-lib.so" // ex: libsqlite.so
function_name = "Java_com_noplay_myapplication_MainActivity_stringFromJNI" // ex: JNI_OnLoad
$ frida-compile agent.js -o _agent.js
[Genymotion Google Pixel::com.noplay.myapplication]-> Frida.version
"12.6.1"
➜ JNI-Frida-Hook git:(master) ✗ frida-compile --version
8.0.3
ReferenceError: 'require' is not defined
at (agent.js:1)
很不错的项目
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.