Giter Site home page Giter Site logo

nfttkcauzy / androidsuperinject Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cs1ime/androidsuperinject

0.0 0.0 0.0 39 KB

Injecting into SELinux-protected system service processes under root on Android.

License: GNU General Public License v3.0

Shell 0.94% C++ 78.11% Python 0.52% C 20.43%

androidsuperinject's Introduction

注入被SELinux保护的系统服务进程

  1. 手工映射要注入的SO,以对方的进程模块信息来修补SO的重定位

  2. 以对方进程libbacktrace.so的.text段作为nest,写入映射后的SO

  3. Hook对方进程的某个经常被调用的函数作为执行时机初始化代码(比如 libc.so.read)

  4. 编写要注入的SO文件时需保证不写全局变量(你在一个权限为r-x的内存范围内运行这个SO)

仓库里的代码是一个hook system_server的read函数从而劫持eventhub实现模拟触摸的半成品

使用方式:

把仓库里的build.sh文件中的以下几个变量修改成ndk的clang路径

export CXX
export CC
export OBJCOPY
export STRIP

bash 运行./build.sh bash 运行./run.sh

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.