-
[Linux 공부] Bandit wargames 31~32 단계 gitLinux 2025. 5. 20. 23:11728x90반응형
OverTheWire: Level Goal
We're hackers, and we are good-looking. We are the 1%. <!-- Please read and accept the Rules! --> Level 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 s
overthewire.org
31 ~ 32 단계는 그냥 시키는대로만 하면 바로 끝나는 문제입니다.
1. SSH 접속
31 ~ 32 단계 접속 비밀번호는 fb5S2xb7bRyFmAvQYQGEqsbhVyJqhnDy 입니다.
ssh bandit31@bandit.labs.overthewire.org -p 22202. git push
# /tmp 아래 폴더를 만들고 git clone을 합니다. 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 echo "May I come in?" > key.txt ls -al # 응답 total 20 drwxrwxr-x 3 bandit31 bandit31 4096 May 20 13:57 . drwxrwxr-x 3 bandit31 bandit31 4096 May 20 13:57 .. drwxrwxr-x 8 bandit31 bandit31 4096 May 20 13:57 .git -rw-rw-r-- 1 bandit31 bandit31 6 May 20 13:57 .gitignore -rw-rw-r-- 1 bandit31 bandit31 147 May 20 13:57 README.md cat .gitignore # 응답 *.txt git branch * master git add -f key.txt git commit -m "key.txt" git push origin master #응답 bandit31-git@localhost's password: Enumerating objects: 4, done. Counting objects: 100% (4/4), done. Delta compression using up to 2 threads Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 321 bytes | 321.00 KiB/s, done. Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 remote: ### Attempting to validate files... #### remote: remote: .oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo. remote: remote: Well done! Here is the password for the next level: remote: 3O9RfhqyAlVBEZpVb6LYStshZoqoSx5K remote: remote: .oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo. remote: To ssh://localhost:2220/home/bandit31-git/repo ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'ssh://localhost:2220/home/bandit31-git/repo'728x90반응형'Linux' 카테고리의 다른 글
[Linux] 계정 비밀번호 정책 및 설정 feat.정보보안기사 (1) 2025.06.03 [Linux 공부] Bandit wargames 32~33 단계 login shell & $0 (0) 2025.05.20 [Linux 공부] Bandit wargames 30~31 단계 git (0) 2025.05.20 [Linux 공부] Bandit wargames 29~30 단계 git (0) 2025.05.20 [Linux 공부] Bandit wargames 28~29 단계 git log (1) 2025.05.20