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 |
Tags
- OverTheWire Bandit Level 1 → Level 2
- rao
- XSS
- 드림핵
- spoofing
- pycrpytodome
- 웹해킹
- dreamhack
- overthewire
- Bandit Level 1 → Level 2
- dns
- shellcode
- RSA
- Montgomery Reduction
- CSRF
- Franklin-Reiter Related Message Attack
- picoCTF
- redirect
- cryptography
- bandit
- Hastad
- RSA Common Modulas Attack
- 시스템해킹
- Crypto
- weak key
- AES
- 암호학
- Cube Root Attack
- arp
- return address overflow
Archives
- Today
- Total
암호(수학) 등.. 공부한 거 잊을거 같아서 만든 블로그
OverTheWire Bandit Level 1 → Level 2 풀이 본문
문제

다음 수준의 암호는 홈 디렉토리에 있는 -라는 파일에 저장됩니다.
풀이

ls로 디렉터리에 어떤 파일이 있는지 확인해보니 문제에서 말했던 것처럼 - 가 이름인 파일이 있다는 것을 알 수 있다.

파일의 내용을 보기 위해 cat - 를 입력 했지만 아무것도 출력이 안되는 것을 볼 수 있는데
이는 - 문자가 명령어의 옵션을 지정할 때 사용되는 문자이기 때문에 발생하는 상황이다.

따라서 현재 경로를 가리키는 ./를 사용하여 -파일을 지정하면 해결된다.
cat ./- 을 입력하니 - 파일에 저장되어 있는 암호인 CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9 가 출력되는 것을 볼 수 있다.
'OverTheWire: Bandit' 카테고리의 다른 글
OverTheWire Bandit Level 4 → Level 5 풀이 (0) | 2022.04.07 |
---|---|
OverTheWire Bandit Level 3 → Level 4 풀이 (0) | 2022.04.07 |
OverTheWire Bandit Level 2 → Level 3 풀이 (0) | 2022.04.07 |
OverTheWire Bandit Level 0 → Level 1 풀이 (0) | 2022.04.07 |
OverTheWire Bandit Level 0 풀이 (0) | 2022.04.07 |