bandit29

KJH·2022년 12월 7일

bandit

목록 보기
25/29
ssh bandit29@bandit.labs.overthewire.org -p 2220 
#tQKvmcwNYcFS6vmPHIUSI3ShmsrQZK8S

There is a git repository at ssh://bandit29-git@localhost/home/bandit29-git/repo. The password for the user bandit29-git is the same as for the user bandit29.

ssh://bandit29-git@localhost/home/bandit29-git/repo에 git 저장소가 있습니다. 사용자 밴디트 29-git의 암호는 사용자 밴디트 29의 암호와 동일합니다.

풀이

정보

  • git checkout [branch]를 통해서 branch를 바꿀 수 있다
  • git log -p로 수정된것만 볼 수 있다
#mktemp -d로 임시폴더만들고 이동해서 진행

ssh://bandit29-git@localhost:2220/home/bandit29-git/repo
#tQKvmcwNYcFS6vmPHIUSI3ShmsrQZK8S

git checkout dev # dev 브랜치로 변경
bandit29@bandit:/tmp/tmp.pTgWuyrMjx/repo$ git log -p
commit 4177db8d2e8f795a23b911550ee864880ae643ff (HEAD -> dev, origin/dev)
Author: Morla Porla <morla@overthewire.org>
Date:   Sat Dec 3 08:14:07 2022 +0000

    add data needed for development

diff --git a/README.md b/README.md
index 1af21d3..a4b1cf1 100644
--- a/README.md
+++ b/README.md
@@ -4,5 +4,5 @@ Some notes for bandit30 of bandit.
 ## credentials

 - username: bandit30
-- password: <no passwords in production!>
+- password: xbhV3HpNGlTIdnjUrdAlPzc2L6y9EOnS

0개의 댓글