Search

WebHacking.kr Challenge old-14

목표 : 콘솔
단순히 입력 칸 하나만 있다
우선 소스를 보자
<html> <head> <title>Challenge 14</title> <style type="text/css"> body { background:black; color:white; font-size:10pt; } </style> </head> <body> <br><br> <form name=pw onsubmit=ck()><input type=text name=input_pwd><input type=button value="check" onclick=ck()></form> <script> function ck(){ var ul=document.URL; ul=ul.indexOf(".kr"); ul=ul*30; if(ul==pw.input_pwd.value) { location.href="?"+ul*pw.input_pwd.value; } else { alert("Wrong"); } return false; } </script> </body> </html>
PHP
복사
var ul=document.URL; ul=ul.indexOf(".kr"); ul=ul*30;
PHP
복사
이 값만 알면 쉽게 구할 수 있겠다.
콘솔에다 직접 반복해 넣었다.
540이다 빈칸에 입력하자

✓ 다른 [워게임] 포스트

WebHacking.kr Challenge Write-Up (70/80)
In progress
WebHacking.kr Challenge Write-Up (70/80)
In progress
Load more
︎ 더 많은 게시물을 보려면
︎ 작성자가 궁금하면?
 2023. absolroot all rights reserved.