import depuis ancien GitHub
This commit is contained in:
13
provisioning-detect-vboot-mode/DetectVbootMode.ps1
Normal file
13
provisioning-detect-vboot-mode/DetectVbootMode.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
$VbootActive = 0
|
||||
$logfile = "C:\ldprovisioning\ProvisionGUI.exe.log"
|
||||
|
||||
if (Test-Path $logfile) {
|
||||
$inf = Get-Content -path $logfile
|
||||
$lastActionError = "xxx"
|
||||
$display = 0
|
||||
foreach ($line in $inf) {
|
||||
if (($line -like "*SUCCESS*") -and ($line -like "*Vboot*")) { $VbootActive = 1 }
|
||||
}
|
||||
}
|
||||
|
||||
if ($VbootActive -eq 1) { Add-Content -Path "C:\exploit\vbooton.flg" -Value "vboot" }
|
||||
Reference in New Issue
Block a user