-
[Linux 공부] Bandit wargames 9~10 단계 strings & grepDevelopment/Linux 2025. 5. 18. 22:29728x90반응형
OverTheWire: Level Goal
We're hackers, and we are good-looking. We are the 1%. <!-- Please read and accept the Rules! --> Level Goal The password for the next level is stored in the file data.txt in one of the few human-readable strings, preceded by several ‘=’ characters. Co
overthewire.org
9 ~ 10단계 문제는 바이너리 형태의 파일을 strings로 변경 후 정규 표현식으로 원하는 line을 찾는 문제입니다.
- strings
- 파일에서 사람이 읽을 수 있을 가능성이 있는 연속된 문자열들을 추출하여 표준 출력으로 보여주는 명령어이며 주로 바이너리 파일에서 텍스트 정보를 찾아낼 때 유용하게 사용됩니다.
1. SSH 접속
9 ~ 10단계 접속 비밀번호는 4CKMh1JI91bUIZZPXDqGanal4xvAg0JM 입니다.
ssh bandit9@bandit.labs.overthewire.org -p 22202. 원하는 텍스트 유형 찾기
cat data.txt 결과 ( 예시 ) ��t��g���~����ڼ?as�cl�g�K#��F��$*�;��#��V��*��Z;�u��v*���e}��v�c U6���o�x�V]�!�Xq�є��S�y�������m c�"��l>IF<¨"��ʋM���GHof/;��␦) strings data.txt 결과 ( 예시 ) qoB[ pIW[ A}5{ strings data.txt | grep '^=.' 결과 ========== the ========== password{k =========== is =wDk =3?lOt ========== FGUW5ilLVJrxX9kMYMmlN4MgbpfMiqey =D!f728x90반응형'Development > Linux' 카테고리의 다른 글
[Linux 공부] Bandit wargames 11~12 단계 tr 회전 글자 (0) 2025.05.18 [Linux 공부] Bandit wargames 10~11 단계 base64 디코딩 (0) 2025.05.18 [Linux 공부] Bandit wargames 8~9 단계 sort & uniq (0) 2025.05.18 [Linux 공부] Bandit wargames 7~8 단계 grep 정규 표현식 (0) 2025.05.18 [Linux 공부] Bandit wargames 6~7 단계 find 원하는 파일 찾기 (0) 2025.05.18 - strings