UnderTheWire Groot Guide

here's how to solve the Groot level 10 → 11

Back to the Groot Guides

Previous Level Guide: Groot Level 9 → 10


Access

SSH: ssh groot10@groot.underthewire.tech -p 22

Password: t-25_tester

Info

The password for groot11 is the one word that makes the two files on the desktop different.

NOTE:
– The password will be lowercase no matter how it appears on the screen.

Theory

To get the password, as the description says, we're told to find the difference between the two files in the desktop. This is really simple, as there's already a command that does this for us. Compare-Object, although it only compares two strings, so for that, we can inject the file's content as a string with Get-Content. Finally, use the dir command to know what the two file's names are, and the commands look like this:

dir
Compare-Object (Get-Content first_text.txt) (Get-Content second_text.txt)

Solution

Now that we are inside the shell, we can see what the filenames might be:

PS C:\users\Groot10\desktop> dir


    Directory: C:\users\Groot10\desktop


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----        8/30/2018   5:52 AM          17324 new.txt
-a----        8/30/2018   5:52 AM          17313 old.txt

Now that we know the names of the two files, we can put them in the command from earlier:

PS C:\users\Groot10\desktop> Compare-Object (Get-Content old.txt) (Get-Content new.txt)

InputObject SideIndicator
----------- -------------
taserface   =>

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

https://underthewire.tech/groot-10
Next Level Guide: Groot Level 11 → Level 12