diff options
author | Chris Campbell <obscuresec@gmail.com> | 2013-07-03 21:42:34 -0400 |
---|---|---|
committer | Chris Campbell <obscuresec@gmail.com> | 2013-07-03 21:42:34 -0400 |
commit | 321e53ee236c7271594f3be769890cc711b40309 (patch) | |
tree | 1081f513fde9f947968363c16385555a723bb333 | |
parent | eb85e1ce9d7409ccd0fe27a310ed8708dfd0308f (diff) | |
download | PowerSploit-321e53ee236c7271594f3be769890cc711b40309.tar.gz PowerSploit-321e53ee236c7271594f3be769890cc711b40309.zip |
Fix improper use of $Error[0]
-rw-r--r-- | Exfiltration/Get-GPPPassword.ps1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Exfiltration/Get-GPPPassword.ps1 b/Exfiltration/Get-GPPPassword.ps1 index 6e6594d..7204a45 100644 --- a/Exfiltration/Get-GPPPassword.ps1 +++ b/Exfiltration/Get-GPPPassword.ps1 @@ -57,7 +57,7 @@ return [System.Text.UnicodeEncoding]::Unicode.GetString($OutBlock) } - catch {Write-Error "$Error[0]"} + catch {Write-Error $Error[0]} } #ensure that machine is domain joined and script is running as a domain account |