[Bandit-OverTheWire] Level 17 -> Level 18

두비니

·

2020. 9. 23. 08:10

 

 

 

Bandit Level 17 → Level 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

 

 

 

접속

접속 : ssh bandit17@bandit.labs.overthewire.org -p2220
pw : xLYVMN9WE5zQ5vHacb0sZEVqbrp7nBTn

 

passwords.old와 password.new의 차이점을 가진 string이 비밀번호라고하네요.

 

이건 diff명령어를 이용하면 됩니다. 딱봐도 뭔가 차이점을 찾아줄거같이 생겼죠?

 

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

 

넘모 쉽죠?

password는 kfBf3eYk5BPBRzwjqutbbfE887SVc5Yd입니다.