반응형
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.
![](https://blog.kakaocdn.net/dn/bUCOfW/btsL9NmrhdO/KAGhVCg5RbVxrmgfJQzwIk/img.png)
비밀번호 획득~!
반응형
* grep 명령어로 특정 문자 검색하기
grep "검색할문자" 파일명.txt
줄 기준으로 찾고 싶다면 → grep -C 사용
✅ 단어 앞뒤 일부만 출력하고 싶다면 → grep -oP 사용
✅ 파일 전체에서 특정 패턴 앞뒤 줄 가져오기 → awk 또는 sed 활용
✅ 단어 앞뒤 일부만 출력하고 싶다면 → grep -oP 사용
✅ 파일 전체에서 특정 패턴 앞뒤 줄 가져오기 → awk 또는 sed 활용
#해킹기초 #banditlevel7
#리눅스 #grep명령어 #리눅스파일내문자검색 #리눅스명령어 #리눅스사용법
#find예제 #리눅스기초 #리눅스고급 #리눅스서버 #리눅스파일관리
#리눅스명령어정리 #서버운영 #리눅스관리자 #IT기초 #프로그래밍
#find예제 #리눅스기초 #리눅스고급 #리눅스서버 #리눅스파일관리
#리눅스명령어정리 #서버운영 #리눅스관리자 #IT기초 #프로그래밍
반응형
'해킹 > 해킹기초' 카테고리의 다른 글
Ubuntu에 docker설치방법 (0) | 2025.02.08 |
---|---|
리눅스 find 명령어 완벽 정리! 초보부터 실무까지 (0) | 2025.02.06 |
[Bandit-OverTheWire] Level5 -> Level 6 (0) | 2025.02.06 |
[Bandit-OverTheWire] Level3 -> Level4 (0) | 2025.02.06 |
[Bandit-OverTheWire] Level2 -> Level 3 (0) | 2025.02.06 |