ObjectiveMCQ
Print Protected
This page is protected for print. Use the website to view the content.
What is the purpose of the provided PowerShell script?
powershell
function Test-Password {
if ($args[0] -eq 'mike12345') {
return 1
}
else {
return 0
}
}
$cracked=0
$i=0
Do {
$test='mike' + $i
$cracked = Test-Password $test
$i++
}
While($cracked -eq 0)
Write-Host "Cracked password:" $test
Correct Answer: B — B: Simulate a simplified form of password cracking.
The provided PowerShell script simulates a simplified form of password cracking.