../

OverTheWire - Bandit: Level 18 to Level 19


There are 2 files in the homedirectory: 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

We simply connect to the server using the previous found private key:

1$ touch bandit17.private.key
2$ nvim bandit17.private.key
3<insert found key>
4$ ssh -p 2220 -i bandit17.private.key bandit17@bandit.labs.overthewire.org

Both files, passwords.old and passwords.new, contain 100 lines of passwords each.

1$ wc -l passwords.*
2 100 passwords.new
3 100 passwords.old
4 200 total

To find the one line difference between both files we can use the diff utility.

1$ diff passwords.new passwords.old
242c42
3< hga5tuuCLF6fFzUpnagiMN8ssu9LFrdg
4---
5> p6ggwdNHncnmCNxuAt0KtKVq185ZU7AW

So the password is hga5tuuCLF6fFzUpnagiMN8ssu9LFrdg

Kategorien: #/writeups/; #/overthewire/

Tags: #/security/; #/hacking/; #/bash/; #/linux/; #/ctf/