OverTheWire-Level Directory
Previous Level: 16
Level 17 Fight!
If you are currently in a level type “logout”
Now type “ssh bandit17@bandit.labs.overthewire.org -p 2220 -i Bandit17.key”
We are told that the permissons are “too open”
I guess we can restrict them a bit huh?
“sudo chmod 400 bandit17.key”
Type in your actual sudo password and hit enter
This will protect a file against accidental overwriting.
We are now into level 17
For this level we are told
“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”
For this level we need to find the difference in 2 files
we can easily do this with “diff”
“diff passwords.new passwords.old”
This shows 2 possibilities
“
42c42
“>” kfBf3eYk5BPBRzwjqutbbfE887SVc5Yd
—
< w0Yfolrc5bwjS4qw5mq1nnQi6mF03bii
“
We can try both of these for the next level or
The password is “kfBf3eYk5BPBRzwjqutbbfE887SVc5Yd”
Once again we can use
“ssh bandit18@bandit.labs.overthewire.org -p 2220”
and the password we just found to login to the next level
Next Level: 18
