Ce script permet de détecter si le vboot à était utilisé. Un flag est généré ce qui permet d’automatiser d’autre action
$Vbootactif = 0
$logfile = "C:\ldprovisioning\ProvisionGUI.exe.log"
if(test-path $logfile) {
$inf = Get-Content -path $logfile
$lastActionerror = "xxx"
$affiche = 0
Foreach ( $line in $inf ) {
if (($line -like "*SUCCESS*") -and ($line -like "*>Vboot<*")) { $Vbootactif = 1 }
}
}
if ($Vbootactif -eq 1) { ADD-content -path "c:\exploit\vbooton.flg" -value "voot" }