Skip to content

Commit c0c2b2a

Browse files
authored
Adding unattended file locations
C root unattend.xml, unattended.xml, Autounattend.xml - but really, every root should be checked
1 parent c7985c9 commit c0c2b2a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Privesc/PowerUp.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2957,6 +2957,9 @@ function Get-UnattendedInstallFile {
29572957
$SearchLocations = @( "c:\sysprep\sysprep.xml",
29582958
"c:\sysprep\sysprep.inf",
29592959
"c:\sysprep.inf",
2960+
"c:\unattend.xml",
2961+
"c:\unattended.xml",
2962+
"C:\Autounattend.xml",
29602963
(Join-Path $Env:WinDir "\Panther\Unattended.xml"),
29612964
(Join-Path $Env:WinDir "\Panther\Unattend\Unattended.xml"),
29622965
(Join-Path $Env:WinDir "\Panther\Unattend.xml"),

0 commit comments

Comments
 (0)