티스토리 뷰

Goal
There is a git repository at ssh://bandit31-git@localhost/home/bandit31-git/repo via the port 2220. The password for the user bandit31-git is the same as for the user bandit31.
Clone the repository and find the password for the next level.
2220번 포트를 통해 ssh://bandit31-git@localhost/home/bandit31-git/repo에 접속하면 git 저장소에 접근할 수 있다. bandit31-git 유저의 패스워드는 bandit31 유저의 패스워드와 동일하다.
저장소를 클론해 다음 레벨의 패스워드를 찾아라.
Commands you may need to solve this level
`git`
Write Up
bandit31@bandit:/tmp/tmp.JvaMeAuqzn/repo$ cat README.md
This time your task is to push a file to the remote repository.
Details:
File name: key.txt
Content: 'May I come in?'
Branch: master
`README.md` 파일에서 이 레벨에서 해야하는 것은 리모트에 아래에 정의된 파일을 push 하는 것이다.
bandit31@bandit:/tmp/tmp.3VOqvQhGNV/repo$ echo "May I come in?" > ./key.txt
bandit31@bandit:/tmp/tmp.3VOqvQhGNV/repo$ git add -f "./key.txt"
bandit31@bandit:/tmp/tmp.3VOqvQhGNV/repo$ git commit -m "add key.txt"
[master 91f6677] add key.txt
1 file changed, 1 insertion(+)
create mode 100644 key.txt
bandit31@bandit:/tmp/tmp.3VOqvQhGNV/repo$ git push -u origin master'Wargame > Bandit' 카테고리의 다른 글
| Bandit Level 32 → Level 33 (0) | 2024.05.16 |
|---|---|
| Bandit Level 30 → Level 31 (0) | 2024.05.16 |
| Bandit Level 29 → Level 30 (0) | 2024.05.16 |
| Bandit Level 28 → Level 29 (0) | 2024.05.16 |
| Bandit Level 27 → Level 28 (0) | 2024.05.16 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- PS
- React
- 회고
- oauth2
- test
- askers
- Spring Security
- WarGame
- Framework
- WEB
- Bandit
- webgoat
- JPA
- opengraph
- CSRF
- DP
- XSS
- Misc
- java
- SEO
- linux
- sqli
- sql injection
- math
- Dreamhack
- Database
- Transaction
- Spring
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함