Bandit17 - bandit18

From JaxHax
Jump to navigation Jump to search

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


Solution

"diff" is a good linux tool for finding the differences between files, so well use it here.

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

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

bandit17@melinda:~$


The password is the top one... kfBf3eYk5BPBRzwjqutbbfE887SVc5Yd