GithubHelp home page GithubHelp logo

mustime / adrill Goto Github PK

View Code? Open in Web Editor NEW
58.0 58.0 14.0 139 KB

An Android native libraries injection tool. supports arch arm/arm64/x86/x86_64. Support Android 4.x to 11.0.

License: Other

CMake 2.10% Shell 0.42% C++ 92.18% C 5.30%
android inject injection

adrill's People

Contributors

mustime avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

adrill's Issues

1>clang.exe: error: linker command failed with exit code 1 (use -v to see invocation)

I build it but it has error. i cannt understand this. please help me
Build started... 1>------ Build started: Project: adrill, Configuration: Debug x64 ------ 1>ANDROID_HOME=F:\\Microsoft\AndroidSDK\25 1>ANT_HOME=D:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Apps\apache-ant-1.9.3 1>JAVA_HOME=C:\Program Files\Eclipse Foundation\jdk-8.0.302.8-hotspot 1>NDK_ROOT=F:\\Microsoft\AndroidNDK64\android-ndk-r16b 1>ANDROID_HOME=F:\\Microsoft\AndroidSDK\25 1>ANT_HOME=D:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Apps\apache-ant-1.9.3 1>JAVA_HOME=C:\Program Files\Eclipse Foundation\jdk-8.0.302.8-hotspot 1>NDK_ROOT=F:\\Microsoft\AndroidNDK64\android-ndk-r16b 1>main.cc 1>selinux.cc 1>sdk_code.cc 1>elf_dlfcn.cc 1>file_utils.cc 1>ptrace_wrapper.cc 1>call_procedure.cc 1>call_procedure-x86.cc 1>clang.exe: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] 1>clang.exe: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument] 1> undefined reference to 'CallProcedure::returnValue()' 1> undefined reference to 'CallProcedure::returnValue()' 1> undefined reference to 'CallProcedure::returnValue()' 1> undefined reference to 'CallProcedure::returnValue()' 1> undefined reference to 'CallProcedure::_setupCall(unsigned long, std::__ndk1::vector<long, std::__ndk1::allocator<long> > const&)' 1> undefined reference to 'CallProcedure::_checkCall()' 1> undefined reference to 'strtof_l' 1> undefined reference to 'strtod_l' 1>clang.exe: error: linker command failed with exit code 1 (use -v to see invocation) 1>D:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Application Type\Android\3.0\Android.Common.targets(119,5): error MSB6006: "clang.exe" exited with code 1. 1>Done building project "adrill.vcxproj" -- FAILED. 2>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug x64 ------ 2>Project not selected to build for this solution configuration ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 1 skipped ==========

dlopen failed: library

Hello, I made the following error when using your tool.It may be the problem of SO. Could you please provide the case of so injection? Thank you
error

Build in Windows

hi, i am facing problem building with windows, can you help me to build using android.mk and Application.mk ?

dlopen failed

needed or dlopened by "(unknown)" is not accessible for the namespace "(anonymous)"

error

3|aosp:/data/local/tmp # ./i --pid 11529 --libpath /data/local/tmp/libudp.so
WARNING: linker: /data/local/tmp/i: unsupported flags DT_FLAGS_1=0x8000001
[!] func 'mmap'(0xc75a88b0) is not within module '/system/lib/libc.so'(0xffffffff-0x0)
[!] func 'munmap'(0xc75f75c4) is not within module '/system/lib/libc.so'(0xffffffff-0x0)
[!] func 'dlopen'(0xc771834c) is not within module '/system/lib/libdl.so'(0xffffffff-0x0)
[!] func 'dlerror'(0xc7718200) is not within module '/system/lib/libdl.so'(0xffffffff-0x0)
[!] something went wrong, see errors listed above.

CallProcedure::remoteCall failed to check call status on x64 - android 9.0 emulator

I tried to inject shared library into app on Android 9.0 (64bit) by Adrill x86-64 and Adrill x86 but it is not impossible

C:\Users\Admin>adb shell "su 0 /data/local/tmp/adrill --pname com.ketchapp.rider --libpath /data/local/tmp/libsoLib.so"
[>] found pid 5416 for process 'com.ketchapp.rider'
[-] attcahing to process 5416 ...
[-] saving registers ...
[-] calling remote mmap ...
CallProcedure::remoteCall failed to check call status
[!] failed to call remote mmap
[-] restoring registers ...
[-] detaching from process 5416 ...
[!] something went wrong, see errors listed above.

so what i need to do now?

dlopen问题

按照你的方法,将so文件放到目标app的files文件夹中,依然还是不能正常注入

未找到进程,但它明明已经打开,在模拟器上面

3|PCRT00:/data/local/tmp # ./adrill_x86 --pid 5744 --libpath /data/local/tmp/libjni_cmake.so
WARNING: linker: /data/local/tmp/adrill_x86: unsupported flags DT_FLAGS_1=0x8000001
[!] process 5744 not found!
[!] something went wrong, see errors listed above.

3|PCRT00:/data/local/tmp # ./adrill_x86 --pname com.thunder.ty --libpath /data/local/tmp/libjni_cmake.so
WARNING: linker: /data/local/tmp/adrill_x86: unsupported flags DT_FLAGS_1=0x8000001
[>] found pid 5744 for process 'com.thunder.ty'
[!] process 5744 not found!
[!] something went wrong, see errors listed above.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.