본문 바로가기
정보 보안 해킹 공부/모의해킹

[Wargames]missions/basic/11/

by 박나무 2022. 1. 11.
반응형

Sam decided to make a music site. Unfortunately he does not understand Apache. This mission is a bit harder than the other basics.

Basic 11

 

https://www.hackthissite.org/missions/basic/11/

 

www.hackthissite.org

샘은 음악 사이트를 만들기로 결정했다. 불행하게도 그는 아파치를 이해하지 못한다. 이번 미션은 다른 기본보다 조금 어려워요.

기본 11

I love my music! "Wouldn't Have You Any Other Way" is the best!

I love my music! "Between Seventeen and Twenty" is the best!

I love my music! "Written in the Stars" is the best!

I love my music! "Written in the Stars" is the best!

I love my music! "I'm Still Standing" is the best!

I love my music! "Just Like Strange Rain" is the best!

I love my music! "Ego " is the best!

I love my music! "January " is the best!

I love my music! "Blues Never Fade Away" is the best!

I love my music! "Sartorial Eloquence (Don't Ya Wanna Play This Game No More?)" is the best!

I love my music! "Western Ford Gateway" is the best!

I love my music! "Stones Throw From Hurtin'" is the best!

I love my music! "I Just Can't Wait to Be King" is the best!

I love my music! "I Don't Wanna Go on with You Like That" is the best!

I love my music! "Madness " is the best!

I love my music! "Just Like Noah's Ark" is the best!

I love my music! "The Bridge " is the best!

문제를 눌러보니 문구가 계속 달라지길래 계속 눌러봤다.ㅋ

아마 더 있겠지만 확실히 "" 이 안에만 문구가 변경된다.

I love my music! " 랜덤 " is the best!

문구들 검색해보니 노래 제목? 같은데

Elton John 이라는 가수 같다.

 

아파치가 뭔지 검색해보니 웹서버. 아파치 HTTP 서버 라고 나온다.

아파치 HTTP 서버는 아파치 소프트웨어 재단에서 관리하는 오픈 소스, 크로스 플랫폼 HTTP 웹 서버 소프트웨어다. BSD, 리눅스 등 유닉스 계열 뿐 아니라 마이크로소프트 윈도우나 노벨 넷웨어 같은 기종에서도 무료로 운용할 수 있다. 위키백과

음.. 명령어도 검색해보고  콘솔도 검색해서 여러가지 입력해봤으나 잘 안됨.

https://data.htscdn.org/images/missions/ 들어가보니

Access Denied

 

라는 문구가 뜬다! 이번에도 저걸 바꾸라는건가?? 다 해봤지만 실패...

이번 문제는 특이하게 레벨 11 누르면 바로 저 문구가 뜬다. 문제가 안나오고...

여기서!! 잠깐!!가수의 노래폴더??? 인가 라는 생각이 지나간다.(문제 풀기시작한지 6시간만에...ㅠㅠ)

https://www.hackthissite.org/missions/basic/11/EltonJohn 두근 두근한 마음으로 입력!

안된다...  응???

If at first you don't succeed, type, type again.

The requested URL /missions/basic/11/EltonJohn was not found on this server.

Click here to go back to the last page.

 

처음에 성공하지 못하면 다시 입력합니다.
요청한 URL /missions/basic/11/EltonJohn을 이 서버에서 찾을 수 없습니다.

마지막 페이지로 돌아가려면 여기를 클릭하십시오.

 

타입 타입 어게인? 다시 입력하라는건데...

웹서버가 있긴 있는데...

 

https://www.hackthissite.org/missions/basic/11/Elton 입력!

You're disappointed? Mom wanted us to be a doctor.

The requested URL /missions/basic/11/Elton was not found on this server.

 

실망했어? 엄마는 우리가 의사가 되기를 원하셨다.
요청한 URL /missions/basic/11/Elton을 이 서버에서 찾을 수 없습니다.


You had better pull over and ask for directions.

The requested URL /missions/basic/11/John was not found on this server.

차를 세우고 길을 물어보는 게 좋겠어요.
요청한 URL /missions/basic/11/John을 이 서버에서 찾을 수 없습니다.

 

 

뭐지 특이한 문구가 뜬다... 힌트인가?

On the internet, no one can hear you scream. 인터넷에서는 아무도 당신의 비명을 들을 수 없습니다.

The requested URL /missions/basic/11/doctor was not found on this server.
The page you wanted is taking a long lunch. 당신이 원하는 페이지는 점심을 오래 먹는 페이지입니다.

The requested URL /missions/basic/11/mom was not found on this server.
This page is only viewable by Jimmy Hoffa, Amelia Earhart, Jim Morrison, and Howard Hughes.

이 페이지는 Jimmy Hoffa, Amelia Earhart, Jim Morrison 및 Howard Hughes만 볼 수 있습니다.

The requested URL /missions/basic/11/lunch was not found on this server.

We sent this page to NASA for testing. 테스트를 위해 NASA에 이 페이지를 보냈습니다.

Hope you didn't pay too much for that URL. 그 URL에 너무 많은 돈을 지불하지 않았길 바랍니다.

JH, AE, JM, HH 이니셜 다 입력해봤지만 아니다;

J 입력 We didn't do it.

H 입력 Yup, one day this page got up and walked away

A 입력 We sent this page to NASA for testing.

E 입력 On the internet, no one can hear you scream.

뭘 입력하던 랜덤 문구가 나온다....

 

응????

https://www.hackthissite.org/missions/basic/11/e/

뭐지 ? 노래 가사 뜨는 부분에서 적으니까 된다? 대박; 원래 어떻게 하는건지는 모르겠다;;

https://www.hackthissite.org/missions/basic/11/e/l/t/o/n/

폴더가 이렇게 쭉 있다 근데... 아무 파일이 없는데...

뒤에 J 를 더 치니까 랜덤 문구가 또 뜬다.

 

l/ 2013-12-30 05:28
t/ 2013-12-30 05:28
o/ 2013-12-30 05:28
n/ 2019-03-01 20:34


n 만 날짜가 다르다... 

다시 문제를 생각해보자

샘은 음악 사이트를 만들기로 결정했다.

불행하게도 그는 아파치를 이해하지 못한다.

이번 미션은 다른 기본보다 조금 어려워요.

https://www.hackthissite.org/missions/basic/11/e/l/t/o/n/?C=N;O=A

https://www.hackthissite.org/missions/basic/11/e/l/t/o/n/?C=M;O=A

https://www.hackthissite.org/missions/basic/11/e/l/t/o/n/?C=S;O=D

https://www.hackthissite.org/missions/basic/11/e/l/t/o/n/?C=D;O=A 

이게 뭘까 페이지 소스에 있는데 다 똑같은 페이지인데 뒤에가 다르다.

CNMSD

OAD

c=d d=o o=a

 

아이콘 치니까

Forbidden

You don't have permission to access this resource.

 

이것도 권한인가....?ㅋㅋ; 소스도 아무것도 안나온다...뭐지 도대체 

https://www.hackthissite.org/missions/basic/11/e/l/t/o/n/john.xml  찍기신공

document 도 쳐보고~

https://www.hackthissite.org/missions/basic/11/index.html 입력하니

I love my music! "Don't Let the Sun Go Down on Me" is the best!  랜덤문구가 또나오네; 

https://www.hackthissite.org/missions/basic/11/index.php 입력하니 헐 된다.

Enter correct password:  패스워드를 입력하라고 나왔다!!!!!!!!!!!

올바른 암호 입력:

이것 저것 콘솔창에 검색해서 다 넣어봤는데 안된다.

 

6 : .htpasswd 파일에 등록된 모든 사용자를 허용할 경우 사용한다.  
출처: https://tyen.tistory.com/72 [TYen]

 

.htpasswd 이것도 콘솔에 써봤지만 안된다...?

아! https://www.hackthissite.org/missions/basic/11/.htpasswd  에이 혹시나 했는데 안된다.

https://www.hackthissite.org/missions/basic/11/e/l/t/o/n/.htpasswd 이것도 안된다...

https://www.hackthissite.org/missions/basic/11/e/l/t/o/n/httpd/.htpasswd 안됨...

https://www.hackthissite.org/missions/basic/11/e/l/t/o/n/.htpasswd%20web-admin 안돼~

 

 .htpasswd 파일 만들기

         .htpasswd 는 .htaccess 를 작성 후 htpasswd 를 실행하면 자동으로 생성되는 패스워드 파일입니다.

          가. 처음 사용자 만들기

htpasswd -c /var/www/.htpasswd superuser


         나. 사용자 추가하기

htpasswd /var/www/.htpasswd user2

         처음 사용자를 만들 경우 "-c" 옵션을 사용합니다.
         "-c" 옵션은 초기화 후 새로운 파일로 시작할 때 사용하는 옵션입니다.

          주의) user2를 만들 때 "-c" 옵션을 사용한다면 이전 user-id는 없어지고 다시 user2가 첫 사용자가 됩니다.

 

도움주신 url : http://blog.naver.com/polong77?Redirect=Log&logNo=140011269601출처: https://chovoda.tistory.com/entry/Apache-로그인-페이지htpasswd-걸기 [초보의 공간]

 

 

https://www.hackthissite.org/missions/basic/11/e/l/t/o/n/.htaccess  들어가졌다.

IndexIgnore DaAnswer.* .htaccess
<Files .htaccess>
require all granted
</Files>

IndexIgnore DaAnswer.* .htaccess
<파일 .htaccess>
모든 것을 인정해 줄 것을 요구하다.
</파일>

https://www.hackthissite.org/missions/basic/11/e/l/t/o/n/DaAnswer

The answer is right here! Just look a little harder.

정답은 여기 있습니다! 조금만 더 자세히 보세요.

정답 right here

느낌표 없이 띄어쓰기 해야함...

 

와 끝났다............ 

솔직히 노가다로 찍어서 맞춘거라 찝찝하긴하지만

아파치에 대해 더 공부해야겠다.

몇시간 걸렸는지 체크를 못했다.

 

 

반응형

'정보 보안 해킹 공부 > 모의해킹' 카테고리의 다른 글

[드림핵] XSS, CSRF 등 공부  (0) 2022.02.21
[OWASP Top 10] 2021 취약점 공부  (0) 2022.02.15
[Wargames]missions/basic/10  (0) 2022.01.09
[Wargames]missions/basic/9  (0) 2022.01.08
[Wargames]워게임 Bandit 시작  (0) 2022.01.08

댓글