WarGames 4

[OverTheWire Wargames Bandit] Level 20 -> Level 21 (nc)

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

[OverTheWire Wargames Bandit] Level 9 -> Level 10

Goal: data.txt파일에서 =가 앞에오는 사람이 읽을 수 있는 텍스트에서 비밀번호 획득하기 data.txt파일은 바이너리 파일이다. 바이너리 파일을 읽을 때, strings 명령어를 사용하면 사람이 읽을 수 있는 데이터만 볼 수 있다. 그 중 =가 있는 라인을 찾기 위해 grep 명령어를 함께 사용한다. Username: bandit10 Password: truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk

1