write multiple passwords

This commit is contained in:
Audrey Aaliyah Jensen 2023-08-25 11:33:10 -05:00
parent 38c5b2f96b
commit 217053000f

View File

@ -11,7 +11,7 @@ $pwPattern = [regex] "[A-z 0-9 \-]{1,251}\((?<PW>[A-z0-9]{1,251})\)\.zip";
$files = Get-ChildItem;
$passwords = [Regex]::Matches($files, $pwPattern);
Write-Output $passwords.groups.Value[1]
$passwords.groups.Value | ForEach-Object {Write-Output $_ }
Get-ChildItem | Where-Object { $_.name -match $pwPattern} | ForEach-Object {Write-Output $_.group }
Write-Output Done;