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
- 배당성장
- 현금흐름표
- 제태크
- javascript
- 알고리즘
- 인플레이션
- 오버라이딩
- 다형성
- 금리인상
- 접근제어자
- 무디스
- mco
- XLF
- 백준
- Java
- S&P500
- Bandit
- etf
- 자바
- 프로그래머스
- FCF
- 기업분석
- StringBuffer
- Redis
- 주식
- 그리디 알고리즘
- 미국주식
- 객체지향
- 주린이
- 잉여현금흐름
Archives
- Today
- Total
Dukbong
[Linux 공부] Bandit wargames 18~19 단계 SSH 본문
반응형
OverTheWire: Level Goal
We're hackers, and we are good-looking. We are the 1%. <!-- Please read and accept the Rules! --> Level Goal The password for the next level is stored in a file readme in the homedirectory. Unfortunately, someone has modified .bashrc to log you out when yo
overthewire.org
18 ~ 19 단계 문제는 SSH 접속 시 바로 명령어를 실행할 수 있다는 걸 확인하는 문제입니다.
1. SSH 접속
18 ~ 19 단계 접속 비밀번호는 x2gLTTjFwMOhQ8oWNbMN362QKxfRqGlO 입니다.
하지만 지금 문제에서는 해당 서버에 bashrc에서 접속 시 바로 종료되게끔 설정되어 있기 때문에 일반 접속으로는 readme 파일을 확인할 수 없습니다.
ssh bandit18@bandit.labs.overthewire.org -p 2220 # ❌
ssh bandit18@bandit.labs.overthewire.org -p 2220 'cat readme' # 👌
결과
cGWpMaKXVwDUNgPAVJbWYuGHVn9zl3j8
반응형
'Linux' 카테고리의 다른 글
[Linux 공부] Bandit wargames 20~21 단계 setuid & nc (1) | 2025.05.19 |
---|---|
[Linux 공부] Bandit wargames 19~20 단계 setuid (0) | 2025.05.19 |
[Linux 공부] Bandit wargames 16~18 단계 nmap & ssl 통신 & diff (0) | 2025.05.19 |
[Linux 공부] Bandit wargames 15~16 단계 ssl 통신 (0) | 2025.05.18 |
[Linux 공부] Bandit wargames 13~15 단계 ssh key 사용 및 네트워크 통신 (0) | 2025.05.18 |
Comments