Niveau 18

Niveau 18

Level Goal

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

Commands you may need to solve this level

cat, grep, ls, diff

Pour se connecter à ce niveau on utilise la clef privée obtenu lors du niveau précédent :

~$ ssh bandit.labs.overthewire.org -p 2220 -l bandit17 -i ~/.ssh/level17

Ce niveau est pratiquement une redite du niveau 9. Si l'on liste les fichiers présents dans le répertoire home, on a :

bandit17@bandit:~$ ls
passwords.new  passwords.old

On peut utiliser la commande diff pour trouver l'intrus :

bandit17@bandit:~$ diff passwords.new passwords.old
42c42
< kfBf3eYk5BPBRzwjqutbbfE887SVc5Yd
---
> w0Yfolrc5bwjS4qw5mq1nnQi6mF03bii

D'après le manuel de la commande diff on peut en conclure que le mot de passe pour le prochain niveau est kfBf3eYk5BPBRzwjqutbbfE887SVc5Yd