Notice
Recent Posts
Recent Comments
Link
«   2024/10   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Archives
Today
Total
관리 메뉴

아모에요

[webhacking.kr] old-10 본문

Study/Hacking

[webhacking.kr] old-10

dys4nt 2023. 6. 14. 15:00

문제에 접속하고 소스를 보면 다음과 같은 element가 존재한다.

<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>

이걸 1600번 클릭하면 문제가 풀릴 것 같다.

for(var i=0; i<1600; i++){
    document.getElementByTagName("a")[0].click();
}

를 콘솔창에 입력하면 문제가 풀리게 된다.

'Study > Hacking' 카테고리의 다른 글

[webhacking.kr] g00gle1  (0) 2023.06.14
[webhacking.kr] old-11  (0) 2023.06.14
[webhacking.kr] old-09  (0) 2023.06.14
[webhacking.kr] old-07  (0) 2023.06.14
[SECGAME] Response  (0) 2023.06.13