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

Commit 946328c

Browse files
committed
Missing File Names
Added printers.xml and drives.xml to the search.
1 parent 5fabddc commit 946328c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Exfiltration/Get-GPPPassword.ps1

Lines changed: 2 additions & 2 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.4.1
12+
Version: 2.4.2
1313
1414
.DESCRIPTION
1515
@@ -208,7 +208,7 @@ function Get-GPPPassword {
208208

209209
#discover potential files containing passwords ; not complaining in case of denied access to a directory
210210
Write-Verbose 'Searching the DC. This could take a while.'
211-
$XMlFiles = Get-ChildItem -Path "\\$Env:USERDNSDOMAIN\SYSVOL" -Recurse -ErrorAction SilentlyContinue -Include 'Groups.xml','Services.xml','Scheduledtasks.xml','DataSources.xml'
211+
$XMlFiles = Get-ChildItem -Path "\\$Env:USERDNSDOMAIN\SYSVOL" -Recurse -ErrorAction SilentlyContinue -Include 'Groups.xml','Services.xml','Scheduledtasks.xml','DataSources.xml','Printers.xml','Drives.xml'
212212

213213
if ( -not $XMlFiles ) {throw 'No preference files found.'}
214214

0 commit comments

Comments
 (0)