해킹/해킹기초

[Bandit-OverTheWire] Level7 -> Level8

리치라이프 연구소 2025. 2. 7. 02:55
반응형

Bandit Level 7 → Level 8
Level Goal
The password for the next level is stored in the file data.txt next to the word millionth

Commands you may need to solve this level
man, grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd

반응형

 

 

 

data.txt파일이 있다.

반응형

 

cat실행해보니 파일내용이 아주 많았다.

 

in the file data.txt next to the word millionth

millionth문자를 검색하는 리눈스 명령어 grep.

 
 
 
 

비밀번호 획득~!

반응형

 

 

* grep 명령어로 특정 문자 검색하기  

 

grep "검색할문자" 파일명.txt
 
줄 기준으로 찾고 싶다면 → grep -C 사용
 단어 앞뒤 일부만 출력하고 싶다면 → grep -oP 사용
 파일 전체에서 특정 패턴 앞뒤 줄 가져오기 → awk 또는 sed 활용
 
#해킹기초 #banditlevel7  
#리눅스 #grep명령어 #리눅스파일내문자검색 #리눅스명령어 #리눅스사용법  
#find예제 #리눅스기초 #리눅스고급 #리눅스서버 #리눅스파일관리  
#리눅스명령어정리 #서버운영 #리눅스관리자 #IT기초 #프로그래밍 

 

반응형