Goal: local host의 port를 열어 bandit20의 비밀번호를 입력하여 다음 레벨의 비밀번호를 획득하자.
이 문제는 2개의 터미널이 필요하다.
사실 백그라운드로 돌려서 하면 하나만으로도 가능할 것 같다.
suconnect는 setuid가 설정된 파일이다.
nc -l은 listen을 하는 것이고
nc -l localhost -p 1234는 로컬호스트에서 1234포트를 listen으로 설정하는 것이다.
nc -l localhost -p 1234를 하고 ./suconnect 1234를 입력한 후
nc 터미널에 level 20의 비밀번호를 입력하니
21의 비밀번호를 알려주었다.
Username: bandit21
Password: gE269g2h3mw3pwgrj0Ha9Uoqen1c9DGr
'CyberSecurity > OverTheWire' 카테고리의 다른 글
[OverTheWire Wargames Bandit] Level 22 -> Level 23 (cron) (0) | 2021.10.10 |
---|---|
[OverTheWire Wargames Bandit] Level 21 -> Level 22 (cron) (0) | 2021.10.10 |
[OverTheWire Wargames Bandit] Level 19 -> Level 20 (0) | 2021.09.29 |
[OverTheWire Wargames Bandit] Level 18 -> Level 19 (0) | 2021.09.29 |
[OverTheWire Wargames Bandit] Level 17 -> Level 18 (diff) (0) | 2021.09.29 |