frncscrlnd's writeups

Writeups from challenges and CTFs i take part in.


Project maintained by frncscrlnd Hosted on GitHub Pages — Theme by mattgraham

Level 17 → Level 18

After logging in with the private key (Level 16 → Level 17 for reference) we can see, by running ls, that there are 2 files in the home/bandit17 directory: passwords.new and passwords.old. the game tells us that the password for the next level is the only line that has been changed from passwords.old to passwords.new.

To visualiza the differences between two files we ca use the diff command:

diff passwords.old passswords.new

This will be the output:

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

This means that on line 42 this line

gvE89l3AhAhg3Mi9G2990zGnn42c8v20

was replaced with this one, which is our new password:

x2gLTTjFwMOhQ8oWNbMN362QKxfRqGlO