Akash Trehan
Write-ups

OverTheWire Bandit Level 17 → 18 Walkthrough

Using diff to find the one changed line between two password files

By Akash Trehan · · 1 min read · Wargame
OverTheWire Bandit Level 17 wargame title banner
OverTheWire Bandit Level 17 → 18 Walkthrough

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: cat, grep, ls, diff

Helpful reading: None

Write-up

Simple use of diff command.

1
bandit17@melinda:~$ diff passwords.old passwords.new

diff output

The output from password.new file gives the password.

Level 18 password: kfBf3eYk5BPBRzwjqutbbfE887SVc5Yd