본문 바로가기

SWUFORCE 워게임👊🏻

[Webhacking] old-16 ; web

<워게임_Webhacking_web_old-16>

 

1. 활주로 같은 게 있다.

 

 

2. O에 커서를 갖다대니 yOu로 글자가 바뀌고, 떼니 다시 O로 바뀌었다. 커서를 갖다댄채로 클릭하니 앞으로 한칸씩(1px)씩 움직이는 것을 확인할 수 있었다. 근데 너무 천천히 움직여서 이걸 골대까지 클릭해서 가기에는 힘들었다. 아마도 코드를 수정하거나 해서 골대에 도착하게 만들어야 할 것 같았다.

 

<html>
<head>
<title>Challenge 10</title>
</head>

<body>
<hr style=height:100;background:brown;>
<table border=0 width=1800 style=background:gray>
<tr><td>
<a id=hackme style="position:relative;left:0;top:0" onclick="this.style.left=parseInt(this.style.left,10)+1+'px';if(this.style.left=='1600px')this.href='?go='+this.style.left" onmouseover=this.innerHTML='yOu' onmouseout=this.innerHTML='O'>O</a><br>
<font style="position:relative;left:1600;top:0" color=gold>|<br>|<br>|<br>|<br>Goal</font>
</td></tr>
</table>
<hr style=height:100;background:brown;>
</body>
</html>

 

3. 페이지 소스를 확인해보았다.

 

 

4. 이 부분이 flag를 얻는 데 중요한 부분. left 값이 1600px에 도달하도록 만들어야 했다.

 

5. url 뒤에 ?go=1600px 를 입력했더니 'no hack' 문구가 떴다. url로 접근하면 안되는 듯 하다..

 

 

6. 개발자 도구로 left 값을 1600px로 설정했더니 O가 Goal에 도착한 것을 볼 수 있었다. 근데 문제가 풀리지가 않았다.

 

7. 그래서 left 값을 1599px로 설정해 직접 한칸을 움직여 보았더니 문제가 풀렸다!

 

해결 완! 👊🏻

 

 

 

 

'SWUFORCE 워게임👊🏻' 카테고리의 다른 글

[CryptoHack] ASCII ; crypto  (0) 2024.11.05
[Webhacking] old-17 ; web  (2) 2024.10.08
[Webhacking] old - 03 ; web  (0) 2024.10.01
[Webhacking] old - 26 ; web  (0) 2024.10.01
[Webhacking] web ; old-16  (1) 2024.09.24