Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- redirect
- picoCTF
- Crypto
- RSA
- 웹해킹
- XSS
- arp
- overthewire
- Franklin-Reiter Related Message Attack
- Hastad
- return address overflow
- AES
- cryptography
- bandit
- CSRF
- RSA Common Modulas Attack
- shellcode
- Bandit Level 1 → Level 2
- Cube Root Attack
- 암호학
- spoofing
- rao
- OverTheWire Bandit Level 1 → Level 2
- pycrpytodome
- 드림핵
- Montgomery Reduction
- dreamhack
- 시스템해킹
- dns
- weak key
Archives
- Today
- Total
암호(수학) 등.. 공부한 거 잊을거 같아서 만든 블로그
OverTheWire Bandit Level 6 → Level 7 풀이 본문
문제
다음 단계의 암호는 서버의 어딘가에 저장되며 다음 모든 속성을 가집니다.
owned by user bandit7
owned by group bandit6
33 bytes in size
풀이
find 명령어를 사용하여 최상위 디렉터리인 / 에서 부터 유저가 bandit7, 그룹이 bandit6, 크기가 33바이트인 파일을 찾아보면 많은 파일이 검색되지만 대부분의 파일은 허가를 거부한다는 에러 메세지가 나온다.
이 에러값들을 /dev/null 에다가 버려서 제대로 된 출력 결과만 보려고
find / -size 33c -user bandit7 -group bandit6 2> /dev/null 을 입력하면 에러들은 버려지고 정상적인 결과들만 출력된다.
따라서 find 명령의 결과인 /var/lib/dpkg/info/bandit7.password의 저장된 내용을 확인해보면 암호값인 HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs 값을 확인할 수 있다.
'OverTheWire: Bandit' 카테고리의 다른 글
OverTheWire Bandit Level 8 → Level 9 풀이 (0) | 2022.04.13 |
---|---|
OverTheWire Bandit Level 7 → Level 8 풀이 (0) | 2022.04.13 |
OverTheWire Bandit Level 5 → Level 6 풀이 (0) | 2022.04.07 |
OverTheWire Bandit Level 4 → Level 5 풀이 (0) | 2022.04.07 |
OverTheWire Bandit Level 3 → Level 4 풀이 (0) | 2022.04.07 |