Skip to content

Instantly share code, notes, and snippets.

@1njected
Created February 5, 2024 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1njected/e391828e057f34f65e8b3e32af69ec79 to your computer and use it in GitHub Desktop.
Save 1njected/e391828e057f34f65e8b3e32af69ec79 to your computer and use it in GitHub Desktop.
ccmcache
# 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