1
mirror of https://github.com/carlospolop/PEASS-ng synced 2024-11-20 12:39:21 +01:00

User folder for cloud creds

This commit is contained in:
tunnellord 2024-09-22 14:35:21 +02:00 committed by GitHub
parent cb39091bfa
commit abfb06e77c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1282,7 +1282,7 @@ $CCreds = @(".aws\credentials",
".azure\azureProfile.json")
foreach ($u in $users) {
$CCreds | ForEach-Object {
if (Test-Path "c:\$u\$_") { Write-Host "$_ found!" -ForegroundColor Red }
if (Test-Path "c:\Users\$u\$_") { Write-Host "$_ found!" -ForegroundColor Red }
}
}