Shared Library Injector on Android
shunix / tinyinjector Goto Github PK
View Code? Open in Web Editor NEWShared Library Injector on Android
License: Apache License 2.0
Shared Library Injector on Android
License: Apache License 2.0
Hello @shunix
How to use your libs with xposed or Do you know how to inject shared libs into any app with xposed?
Thanks
I tried this but it worked for Vphonegaga/VMOS or you can say that 32 bit environment or android 7.2
But when using that in my rooted devices with android 11 it even can't inject it.
Any way to do that it android 11?
env:
MEIZU MX6
android:7.1.1
rooted
when call GetRemoteFuctionAddr(pid, LINKER_PATH, ((long) (void*)dlopen));
, it return 0 ,
then i check file /proc/pid/maps
,search modules /system/lib64/libc.so
/system/lib64/libdl.so
/system/lib64/libRS.so
,
but i can't find /system/lib64/libdl.so
.
i don't know why it missing
Injection started...
Attached to process 1652
mmap called, function address f2db1095 process 1652 size 1024
Write 8 bytes to 0xffced8b8 process 1652
Call remote function f2db1095 with 6 arguments, return value is fffffffff1975000
Write 11 bytes to 0xf1975000 process 1652
dlopen called, function address f1b0dd15 process 1652 library path libhook.so
Call remote function f1b0dd15 with 2 arguments, return value is 0
munmap called, function address f2ddda0c process 1652 address f1975000 size 1024
Call remote function f2ddda0c with 2 arguments, return value is 0
Injection failed...
Detached from process 1652
This is what I get regardless of the process I am trying to attach to.
Any idea what might be going wrong? dlopen returns 0 every time.
If i try to inject to a test app then it works fine.
but when i try to inject to android app then it gets stuck here
it is basically stuck at this line
long result=ptrace(PTRACE_GETREGS, pid, NULL, regs);
result is less than 0 so it is basically unable to get the regs value
Any solution to it???
aosp:/ # ./data/local/tmp/injector 18978
process name: nextapp.fx, library path: /data/data/nextapp.fx/lib/libtest.so, pid: 18978
Injection started...
Attached to process 18978
mmap called, function address c3bb48b0 process 18978 size 1024
Write 8 bytes to 0xc76bc7d4 process 18978
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.