Exploit databaseDownload repository ZIP
GH-2cd54743dc4f058e62eb99d21dbb8848
feiguang-ai/plz110-6.12.69-cve-2026-64560-ksu
Sources for CVE-2026-64560
19 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files13
feiguang-ai/plz110-6.12.69-cve-2026-64560-ksuRevision 80c7392992e0
- ↑..Parent directory
- accept_run.py
- batch_loop.sh
- device_retry3.sh
- device_run.py
- ksu_hit_watch.sh
- post_hit_check.sh
- pstore_classify.sh
- root_exec.sh
- shot.sh
- shot_loop.sh
- spray_probe.c
- verify-render.sh
- wiring_assert.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
repro/tools/post_hit_check.sh
Shell · 3,018 bytes#!/bin/sh
# post_hit_check.sh —— 命中 root 后的"应用环境是否正常"体检 + KernelSU 前后对照(A/B)
# 目的(用户要求):接管/root 之后必须保证**应用能正常启动**。
# 设计:不依赖锁屏状态(用"进程能否派生并存活 + 崩溃缓冲干净 + 活动状态"三判据)。
# 用法: sh repro/tools/post_hit_check.sh <标签> (标签如 shot / after-ksu)
set -u
SERIAL=${SERIAL:-YOUR_DEVICE_SERIAL}
D=${D:-/data/local/tmp/fgroot/plz110-242e1a07f878}
ADB=${ADB:-adb}
REPO=${REPO:-$(cd "$(dirname "$0")/../.." && pwd)}
RUNS="$REPO/repro/build/plz110/analysis/runs"
TAG=${1:-check}
LOG="$RUNS/post-hit-$TAG-$(date '+%Y%m%d-%H%M%S').log"
sh_() { "$ADB" -s "$SERIAL" shell "$1" 2>&1 | tr -d '\r'; }
say() { printf '%s %s\n' "$(date '+%F %T')" "$*" | tee -a "$LOG"; }
say "=== post_hit_check[$TAG] ==="
say "设备: $(sh_ 'echo "up=$(cut -d. -f1 /proc/uptime) boot=$(cat /proc/sys/kernel/random/boot_id) ksu=$(grep -c kernelsu /proc/modules) enforce=$(getenforce)"')"
say "root: $(sh_ "$D/su -c id 2>&1 | head -1")"
say "exploit 残留: $(sh_ "ps -A | grep -c '[c]ve-2026'") 个进程"
# 唤醒屏幕(不改任何设置;仅 KEYCODE_WAKEUP)
sh_ "input keyevent KEYCODE_WAKEUP" >/dev/null 2>&1
sleep 2
say "锁屏: $(sh_ 'dumpsys window 2>/dev/null | grep -m1 -o "mCurrentFocus=Window{[^}]*}"')"
crash_before=$(sh_ "logcat -d -b crash -t 200 2>/dev/null | grep -c 'FATAL\|AndroidRuntime'")
say "崩溃缓冲(前): $crash_before 条命中"
# 测试目标:默认 Settings;再自动挑 2 个已安装的自家应用(保证包名存在)
APPS="com.android.settings/.Settings"
extra=$(sh_ "pm list packages 2>/dev/null | sed 's/package://' | grep -E '^(com\\.oplus|com\\.heytap|com\\.coloros)\\.' | head -2")
for p in $extra; do
act=$(sh_ "cmd package resolve-activity --brief $p 2>/dev/null | tail -1")
case "$act" in */*) APPS="$APPS $act" ;; esac
done
say "测试目标: $APPS"
for A in $APPS; do
pkg=${A%%/*}
sh_ "am force-stop $pkg" >/dev/null 2>&1
c0=$(sh_ "logcat -d -b crash -t 200 2>/dev/null | grep -c 'FATAL\|AndroidRuntime'")
res=$(sh_ "am start -W -n $A 2>&1 | grep -E 'Status|Error|TotalTime' | tr '\n' ' '")
sleep 4
procs=$(sh_ "pidof $pkg 2>/dev/null | wc -w")
[ "${procs:-0}" = "0" ] && procs=$(sh_ "ps -A | grep \"$pkg\" | grep -v grep | wc -l")
acts=$(sh_ "dumpsys activity activities 2>/dev/null | grep -c \"$pkg\"")
c1=$(sh_ "logcat -d -b crash -t 200 2>/dev/null | grep -c 'FATAL\|AndroidRuntime'")
say "启动 $A -> $res| 进程=$(printf '%s' "$procs" | tr -d ' ') 活动记录=$(printf '%s' "$acts" | tr -d ' ') 新增崩溃=$((c1 - c0))"
done
crash_after=$(sh_ "logcat -d -b crash -t 200 2>/dev/null | grep -c 'FATAL\|AndroidRuntime'")
say "崩溃缓冲(后): $crash_after 条命中(增量 $((crash_after - crash_before)))"
say "zygote=$(sh_ 'ps -A | grep -c [z]ygote') launcher=$(sh_ 'ps -A | grep -c [l]auncher')"
say "=== post_hit_check[$TAG] 完成 -> $LOG ==="