Exploit databaseDownload repository ZIP
GH-e9e1115bb806f99926501113e9bd69c9
noctide/redmi-k50-temp-root
Sources for CVE-2026-43284
24 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files2
noctide/redmi-k50-temp-rootRevision e76e2c48bb50
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
scripts/install.ps1
PowerShell · 2,367 bytes<#
.SYNOPSIS
安装 DFRoot 并执行临时提权(Redmi K50 / rubens)
.DESCRIPTION
1. 校验并安装 APK
2. 放开 MIUI「获取应用列表」权限(MIUIOP 10022)
3. 启动 DFRoot
后续在手机上:Select a SU Manager → KernelSU → LAUNCH ROOT
.NOTES
需要 adb 在 PATH 中,或通过 -Adb 指定路径。
设备需已开启 USB 调试并完成授权。
#>
[CmdletBinding()]
param(
[string]$Adb = "adb",
[string]$Apk = "$PSScriptRoot\..\apk\DFRoot_4.7-rubens.apk",
[switch]$SkipInstall
)
$ErrorActionPreference = 'Stop'
function Step($msg) { Write-Host "`n=== $msg ===" -ForegroundColor Cyan }
Step "检查设备"
$devices = & $Adb devices | Select-String '^\S+\s+device$'
if (-not $devices) {
throw "未检测到设备。请确认 USB 调试已开启且已授权(adb devices 应显示 device)"
}
$serial = ($devices -split "`t")[0].Trim()
Write-Host "设备: $serial"
& $Adb shell "getprop ro.product.model; getprop ro.product.device"
if (-not $SkipInstall) {
Step "安装 APK"
if (-not (Test-Path $Apk)) { throw "APK 不存在: $Apk" }
Write-Host ("SHA256: {0}" -f (Get-FileHash $Apk -Algorithm SHA256).Hash)
# 旧版本签名不同,必须先卸载
& $Adb uninstall df.root 2>$null | Out-Null
& $Adb install -r $Apk
if ($LASTEXITCODE -ne 0) {
Write-Host @"
安装失败。若报 INSTALL_FAILED_USER_RESTRICTED,请用下面的方式手动授权一次:
adb push "$Apk" /sdcard/Download/DFRoot.apk
adb shell "am start -a android.intent.action.INSTALL_PACKAGE -d file:///sdcard/Download/DFRoot.apk -t application/vnd.android.package-archive"
然后在手机上:勾选「记住我的选择」→ 允许 → 继续安装
"@ -ForegroundColor Yellow
throw "安装失败"
}
}
Step "放开 MIUI 应用列表权限 (MIUIOP 10022)"
& $Adb shell "appops set df.root 10022 allow"
$check = & $Adb shell "appops get df.root 2>/dev/null | grep 10022"
Write-Host $check
Step "启动 DFRoot"
& $Adb shell "am start -n df.root/.MainActivity"
Write-Host @"
接下来在手机上操作:
1. 点 "Select a SU Manager"
2. 选择 KernelSU(必须自带 libksud.so)
3. 点 "LAUNCH ROOT"
成功标志:KernelSU 管理器显示「工作中 [越狱模式]」
查看日志:
adb logcat -d | Select-String 'dfroot'
"@ -ForegroundColor Green