본문 바로가기
war game/웹 워게임(Webhacking.kr)

Webhacking.kr 10번 문제(js)

by 강깅꽁 2017. 9. 21.


html code

<a id=hackme style="position:relative;left:0;top:0" onclick="this.style.posLeft+=1;if(this.style.posLeft==800)this.href='?go='+this.style.posLeft" onmouseover=this.innerHTML='yOu' onmouseout=this.innerHTML='O'>O</a><br>


onclick부분을 해석해보면 이 hackme의 posLeft가 800이면 ?go=800 을 href에 넣어 준다.

즉 url에 ?go=800을 넣어주면 된다.