UnderTheWire Century is a beginner-level PowerShell training series. It seems like Linux hosts are not supported, so I’m using Windows Terminal for this.
Century 1
Challenge
The password for Century2 is the build version of the instance of PowerShell installed on this system.
NOTE:
– The format is as follows: **.*.*****.****
– Include all periods
– Be sure to look for build version and NOT PowerShell version
Solution
Enter $PSVersionTable and the build number is in the output.
Century 2
Password
10.0.14393.4583
Challenge
The password for Century3 is the name of the built-in cmdlet that performs the wget like function within PowerShell PLUS the name of the file on the desktop.
NOTE:
– If the name of the cmdlet is “get-web” and the file on the desktop is named “1234”, the password would be “get-web1234”.
– The password will be lowercase no matter how it appears on the screen.
Solution
get-alias wget feels kind of like cheating but whatever. The password for the next level is invoke-webrequest443
Century 3
Password
invoke-webrequest443
Challenge
The password for Century4 is the number of files on the desktop.
Solution
Century 4
Password
123
Challenge
The password for Century5 is the name of the file within a directory on the desktop that has spaces in its name.
NOTE:
– The password will be lowercase no matter how it appears on the screen.
Solution
Century 5
Password
5548
Challenge
The password for Century6 is the short name of the domain in which this system resides in PLUS the name of the file on the desktop.
NOTE:
– If the short name of the domain is “blob” and the file on the desktop is named “1234”, the password would be “blob1234”.
– The password will be lowercase no matter how it appears on the screen.
Solution
Some of the other commands I’ve tried all require higher privileges. Only this one worked. The password is underthewire3347.
Century 6
Password
underthewire3347
Challenge
The password for Century7 is the number of folders on the desktop.
Solution
Seems like nothing special had to be done to look for directories specifically.
Century 7
Password
197
Challenge
The password for Century8 is in a readme file somewhere within the contacts, desktop, documents, downloads, favorites, music, or videos folder in the user’s profile.
NOTE:
– The password will be lowercase no matter how it appears on the screen.
Solution
Century 8
Password
7points
Challenge
The password for Century9 is the number of unique entries within the file on the desktop.
Solution
Get-Content’s alias is gc
Century 9
Password
696
Challenge
The password for Century10 is the 161st word within the file on the desktop.
NOTE:
– The password will be lowercase no matter how it appears on the screen.
Solution
The text file has some words delimited by spaces.
-Split is an operator that can either be placed before the delimited string (defaulting to whitespace as delimiter; -Split <delimited>, -Split <delimited[]>, or after the string to specify a delimiter (<delimited> -Split <delimiter>).
Century 10
Password
pierid
Challenge
The password for Century11 is the 10th and 8th word of the Windows Update service description combined PLUS the name of the file on the desktop.
NOTE:
– The password will be lowercase no matter how it appears on the screen.
– If the 10th and 8th word of the service description is “apple” and “juice” and the name of the file on the desktop is “88”, the password would be “applejuice88”.
Solution
The password is windowsupdates110.
Century 11
Password
windowsupdates110
Challenge
The password for Century12 is the name of the hidden file within the contacts, desktop, documents, downloads, favorites, music, or videos folder in the user’s profile.
NOTE:
– Exclude “desktop.ini”.
– The password will be lowercase no matter how it appears on the screen.
Solution
The output would be cleaner if I stacked a bunch of where-object conditions, but this is fine for the moment.
Century 12
Password
secret_sauce
Challenge
The password for Century13 is the description of the computer designated as a Domain Controller within this domain PLUS the name of the file on the desktop.
NOTE:
– The password will be lowercase no matter how it appears on the screen.
– If the description “today_is” and the file on the desktop is named “_cool”, the password would be “today_is_cool”.
Solution
The password is i_authenticate_things.
Century 13
Password
i_authenticate_things
Challenge
The password for Century14 is the number of words within the file on the desktop.
Solution
Century 14
Password
755
Challenge
The password for Century15 is the number of times the word “polo” appears within the file on the desktop.
NOTE:
– You should count the instances of the whole word only..
Solution
$_ is used because the LHS streams values and not objects. -exp is used to expand the count value in the object into a value.