-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dlopen returns 0 for all processes. #4
Comments
Never mind, I figured it out. To anybody who might be reading this, arminject does not work anymore due to subsequent linker namespace hardeing in Bionic. |
In Android 7.0 or later versions, dlopen has been restricted by Google that .so file cannot be opened if not under app namespace and not in the while list. Reference: https://developer.android.com/about/versions/nougat/android-7.0-changes?hl=zh-cn |
Function Address showing 0 |
Which function?mmap? or dlopen?or dlsym? if anyone shows 0,Maybe the path of libc.so is incorrect, Modify it in injector.h |
maybe your function was not exported , if so ,please use maybe,if your code was compiled with g++,Please decorate your function with otherwise,your .so may depends some other .so libs whitch the target injected process was not loaded This tool works fine on my devices,from Android 7.0 to Adnroid 11. 可能是你的函数没有导出,如果是的话请用 也可能是你的代码是用g++编译的,如果是这样的话请用 否则的话可能是你的so引用了注入的目标进程没有加载的so 如果你都照做了,应该就没有其他问题了,这个工具在我7.0到11的安卓设备上都能用 |
I want to know how can I do that in android 11? |
long result=ptrace(PTRACE_GETREGS, pid, NULL, regs); |
attach maybe fail too...check your permission |
I am running as root Process is running as android app as some random user a0-46 aosp:/ # ./data/local/tmp/injector 18978 |
Use another app to test whether the injector working or not. |
I wrote an apk that just has one button and display message box. Note I am trying this on Android Emulator |
the injector and the libagent.so both are in the application namespace with 777 permissions. here is the libagent code `#include <stdio.h> attribute((visibility("default")))
}` a10s:/ # ./data/data/com.example.helloworld/injector 18283 |
Bad injection script for android |
@MafiaBoys any better injection method you know of ? |
Earn $1000 in Manta Network Tokens!Steps to Earn:
Important Note:Make sure to read the terms and conditions on the https://claim.mantarewards.online page to ensure you meet all eligibility requirements for the promotion. This offer is for a limited time, so don't miss out! Winners: @kagawagao, @guru4consulting, @lgs, @macrauder, @TheWaWaR, @kevinhughes27, @b13kjack |
Earn $1000 in Manta Network Tokens!Steps to Earn:
Important Note:Make sure to read the terms and conditions on the https://claim.mantarewards.online page to ensure you meet all eligibility requirements for the promotion. This offer is for a limited time, so don't miss out! Winners: @super-handsome-jason, @1160007652, @Time6628, @AR4Z, @changenamee, @LIU-WEIHUA, @lilamila |
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.
The text was updated successfully, but these errors were encountered: