Created
February 5, 2024 12:03
-
-
Save 1njected/e391828e057f34f65e8b3e32af69ec79 to your computer and use it in GitHub Desktop.
ccmcache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Initialize an empty array | |
$array = @() | |
# Add letters 'a' to 'z' | |
for ($i = [int][char]'a'; $i -le [int][char]'z'; $i++) { | |
$array += [char]$i | |
} | |
# Add numbers '10' to '99' | |
for ($number = 10; $number -le 99; $number++) { | |
$array += "$number" | |
} | |
# Add combinations '1a' to '1z' through '9a' to '9z' | |
for ($number = 1; $number -le 9; $number++) { | |
for ($i = [int][char]'a'; $i -le [int][char]'z'; $i++) { | |
$array += "$number$([char]$i)" | |
} | |
} | |
# Display the array | |
#$array | |
foreach ($item in $array) { | |
Get-ChildItem -Recurse C:\Windows\ccmcache\$item -ErrorAction SilentlyContinue | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment