UnderTheWire Century Guide

here's how to solve the Century level 14 → 15

Back to the Century Guides

Previous Level Guide: Century Level 13 → 14


Access

SSH: ssh century14@century.underthewire.tech -p 22

Password: 755

Info

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..

Theory

To get the password, we could probably do a really confusing and complex command, or download the file directly like last time. So we'll use the same command, we just need to know the location, which is very probable that it's in the desktop, and the name of the file. Then a website or code that finds all instances of a specific thing in a big string. And we need to search for " polo " with spaces around it, because in the description, it tells us that we need to find the whole word only, so "anthropologies" or "carpology" has polo in it, but it's not exactly polo. And after that, check if there is a polo at either the first word, or the last word, because these don't have both spaces around it, and if there is, add it to the final count. And the commands, kinda like last level:

dir
scp century14@century.underthewire.tech:C:\path\to\file.txt C:\Users\shukularuni\Documents

Solution

Now that we are in machine, let's get the words file:

PS C:\users\century14\desktop> dir


    Directory: C:\users\century14\desktop


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----        8/30/2018  11:24 PM         202900 countpolos

Now that we know what the file name is, we can run the scp command with it:

PS C:\users\century14\desktop> exit
Connection to century.underthewire.tech closed.

C:\Users\shukularuni>scp century14@century.underthewire.tech:C:\users\century14\desktop\countpolos C:\Users\shukularuni\Documents
century14@century.underthewire.tech's password: 755
countpolos                                                                            100%  198KB 427.0KB/s   00:00

Now that we have the file, we can paste the entire thing in a website that counts all patterns of this, and because we just want polo exactly we'll put spaces a:

Text: faulting cacographical ureterorectostomy ligate hool calmed singultus otherways beltmaker wristed babblers slims dorsodynia burros
Search for: " polo "

Result: 152 instances of " polo ".

Now to we just need to check if there is a polo in either the first word or the last, because if that's so, then the spaces around it will skip it, since instead of the space it's the beginning or ending of the file. And wouldn't you know it, there is a polo in the end the file as the last word, so we'll just add one to the count and we get this:

153

And that's the password! Now we should be good to go to the next level.

https://underthewire.tech/century-14
Next Level Guide: Century Level 15