Post

[wargame] overthewire bandit 31 -> 32

Bandit Level 31 -> Level 32

user_id : bandit31
password : qp30ex3VLz5MDG1n91YowTv4Q8l7CDZL

목표

image

해결법

ssh://bandit31-git@localhost:2220/home/bandit31-git/repo

image

기본

image

이번에는 원격 레포지토리에 파일을 push하라고 한다

May I come in?을 내용으로 제목을 key.txt로 master브렌치에 push하란다

image

보낼 파일을 만들고

image

push해보면 지금 .gitignore 파일에 *.txt파일을 넣지 못하게 되어있고 강제로 넣고자 한다면 -f옵션을 사용하라고 한다

image

강제로 넣고 commit을 날린 뒤 push를 하면

image

원격에서 push 하는 것을 막아놨기에 push는 안되었지만 비밀번호를 얻어내었다

비밀번호 : 3O9RfhqyAlVBEZpVb6LYStshZoqoSx5K

This post is licensed under CC BY 4.0 by the author.