Given:
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
- ssh into bandit 17 using the private key provided in the previous level
- Do not forget to change the permissions of the file in which you have save the RSA private key.
└─$ ssh -i key bandit17@bandit.labs.overthewire.org -p 2220
bandit17@bandit:~$ ls -la
total 36
drwxr-xr-x 3 root root 4096 Jul 11 2020 .
drwxr-xr-x 41 root root 4096 May 7 2020 ..
-rw-r — — — 1 bandit17 bandit17 33 Jul 11 2020 .bandit16.password
-rw-r — r — 1 root root 220 May 15 2017 .bash_logout
-rw-r — r — 1 root root 3526 May 15 2017 .bashrc
-rw-r — — — 1 bandit18 bandit17 3300 May 7 2020 passwords.new
-rw-r — — — 1 bandit18 bandit17 3300 May 7 2020 passwords.old
-rw-r — r — 1 root root 675 May 15 2017 .profile
drwxr-xr-x 2 root root 4096 Jul 11 2020 .ssh
bandit17@bandit:~$ diff passwords.old passwords.new
42c42
< w0Yfolrc5******mq1nnQi6mF03bii
— -
> kfBf3eYk5******jqutbbfE887SVc5Yd