Wednesday, July 1, 2015

OverTheWire - Bandit - Level 18

Level Goal

There are 2 files in the home directory: passwords.old and passwords.new. The password for the next level is in passwords.new and is the only line that has been changed between passwords.old and passwords.new

NOTE: if you have solved this level and see 'Byebye!' when trying to log into bandit18, this is related to the next level, bandit19.

Commands you may need to solve this level

  • cat
  • grep
  • ls
  • diff

Helpful Reading Material

  • None provided, however I recommend reading up on the diff command.

This level is as simple as running the diff command against the two files.
diff passwords.new passwords.old
We can pipe the output to gawk to clean it up a little bit, but it doesn't help much since the other difference will be displayed as well.
diff passwords.new passwords.old | gawk '{print $2}'
Use the value from passwords.new which in this sample is the one shown on top to log in to bandit18. Note that you will not be able to do anything as it immediately ends your session. See the post on Level 18 for more information.

No comments:

Post a Comment