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
- Cube Root Attack
- 암호학
- XSS
- 시스템해킹
- dns
- Montgomery Reduction
- Hastad
- RSA
- Bandit Level 1 → Level 2
- pycrpytodome
- Crypto
- redirect
- overthewire
- shellcode
- picoCTF
- OverTheWire Bandit Level 1 → Level 2
- bandit
- 웹해킹
- 드림핵
- dreamhack
- rao
- return address overflow
- cryptography
- weak key
- Franklin-Reiter Related Message Attack
- spoofing
- arp
- CSRF
- AES
- RSA Common Modulas Attack
Archives
- Today
- Total
암호(수학) 등.. 공부한 거 잊을거 같아서 만든 블로그
OverTheWire Bandit Level 9 → Level 10 풀이 본문
문제
다음 단계의 암호는 몇 개의 '=' 문자 앞에 있는 몇 개의 사용자 입력 문자열 중 하나로 data.txt 파일에 저장됩니다.
풀이
data.txt의 내용을 확인하니 파일의 내용이 이상하게 출력되는 것을 보아 바이너리 파일임을 알 수 있다.
strings 명령어는 실행파일의 ASCII 값을 찾아 출력해주는 명령어이다.
strings [OPTION] [FILE]
strings data.txt를 해보면 data.txt의 내용중 문자열로 변환이 가능한 값들이 출력되어 나오는 것을 볼 수 있다.
내용이 많아서 일일이 찾기에는 시간이 걸린다.
문제에서 몇 개의 =문자 앞에 암호가 있다고 했으므로 파이프와 grep 명령어를 이용하여 =이 여러개 있는 문자열들을 검색하면 truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk 이 암호임을 알 수 있다.
'OverTheWire: Bandit' 카테고리의 다른 글
OverTheWire Bandit Level 11 → Level 12 풀이 (1) | 2022.04.13 |
---|---|
OverTheWire Bandit Level 10 → Level 11 풀이 (0) | 2022.04.13 |
OverTheWire Bandit Level 8 → Level 9 풀이 (0) | 2022.04.13 |
OverTheWire Bandit Level 7 → Level 8 풀이 (0) | 2022.04.13 |
OverTheWire Bandit Level 6 → Level 7 풀이 (0) | 2022.04.07 |