๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
โœ’๏ธ Web Hacking/Webhacking.kr

[Webhacking.kr] old-16 ์›Œ๊ฒŒ์ž„ ๋ฌธ์ œ ํ’€์ด

by A Lim Han 2023. 8. 22.

๐Ÿ– old-16 ์›Œ๊ฒŒ์ž„ ๋ฌธ์ œ ํ’€์ด

1.  ๋ฌธ์ œ ํ™”๋ฉด์œผ๋กœ ๋“ค์–ด๊ฐ„ ํ›„ ๋‹จ์ถ•ํ‚ค F12๋ฅผ ํ†ตํ•ด ๊ฐœ๋ฐœ์ž ๋„๊ตฌ ์˜คํ”ˆ

2.  Sources ํƒญ์˜ Index ํŽ˜์ด์ง€๋กœ ๋“ค์–ด๊ฐ€ ์ฝ”๋“œ ์—ด๋žŒ

 

<html>
<head>
<title>Challenge 16</title>
<body bgcolor=black onload=kk(1,1) onkeypress=mv(event.keyCode)>
<font color=silver id=c></font>
<font color=yellow size=100 style=position:relative id=star>*</font>
<script> 
document.body.innerHTML+="<font color=yellow id=aa style=position:relative;left:0;top:0>*</font>";
function mv(cd){
  kk(star.style.left-50,star.style.top-50);
  if(cd==100) star.style.left=parseInt(star.style.left+0,10)+50+"px";
  if(cd==97) star.style.left=parseInt(star.style.left+0,10)-50+"px";
  if(cd==119) star.style.top=parseInt(star.style.top+0,10)-50+"px";
  if(cd==115) star.style.top=parseInt(star.style.top+0,10)+50+"px";
  if(cd==124) location.href=String.fromCharCode(cd)+".php"; // do it!
}
function kk(x,y){
  rndc=Math.floor(Math.random()*9000000);
  document.body.innerHTML+="<font color=#"+rndc+" id=aa style=position:relative;left:"+x+";top:"+y+" onmouseover=this.innerHTML=''>*</font>";
}
</script>
</body>
</html>

 

++  ์ž…๋ ฅ ์ด๋ฒคํŠธ์— ๋”ฐ๋ผ ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๋Š” mv() ํ•จ์ˆ˜์— ์ฃผ๋ชฉ

++  Do it! ์ด๋ผ๋Š” ์ฃผ์„์ด ๋‹ฌ๋ฆฐ Line 15์— ์ฃผ๋ชฉ 

3.  ์•„๋ž˜ ์‚ฌ์ดํŠธ๋ฅผ ์ด์šฉํ•˜์—ฌ ASCII Code ์™€ ๋งค์นญ๋˜๋Š” ํ‚ค๋ณด๋“œ ๋ฌธ์ž ํƒ์ƒ‰

cd ๊ฐ’ (ASKII Code) ๋งค์นญ๋˜๋Š” ๋ฌธ์ž ์ˆ˜ํ–‰ ์ž‘์—…
100 d ๋ณ„์˜ x ์ขŒํ‘œ๋ฅผ
์˜ค๋ฅธ์ชฝ์œผ๋กœ 50px๋งŒํผ ์ด๋™
97 a ๋ณ„์˜ x ์ขŒํ‘œ๋ฅผ
์™ผ์ชฝ์œผ๋กœ 50px๋งŒํผ ์ด๋™
119 w ๋ณ„์˜ y ์ขŒํ‘œ๋ฅผ
์œ„์ชฝ์œผ๋กœ 50px๋งŒํผ ์ด๋™
115 s ๋ณ„์˜ y ์ขŒํ‘œ๋ฅผ
์•„๋ž˜์ชฝ์œผ๋กœ 50px๋งŒํผ ์ด๋™
124 | ๋ธŒ๋ผ์šฐ์ €๋ฅผ ๋‹ค๋ฅธ ํŽ˜์ด์ง€๋กœ ์ด๋™

 

++  ASCII Code ๋ณ€ํ™˜ ์‹œ ์ด์šฉํ•œ ๋„๊ตฌ

-->  https://ko.rakko.tools/tools/76/

 

ํ…์ŠคํŠธ-ASCII ๋ณ€ํ™˜๊ธฐ / ๋ฒˆ์—ญ๊ธฐ : ASCII์—์„œ ํ…์ŠคํŠธ๋กœ, ํ…์ŠคํŠธ์—์„œ ASCII๋กœ | RAKKOTOOLS๐Ÿ”ง

ํ…์ŠคํŠธ๋ฅผ ์•„์Šคํ‚ค๋กœ ๋˜๋Š” ์•„์Šคํ‚ค๋ฅผ ํ…์ŠคํŠธ๋กœ ๋ณ€ํ™˜

ko.rakko.tools

4.  ๋‹ค์‹œ ์›น์‚ฌ์ดํŠธ๋กœ ๋Œ์•„์™€ ํ‚ค๋ณด๋“œ์˜ " | (ํŒŒ์ดํ”„) " ํด๋ฆญ  -->  ๋ฌธ์ œ ํ•ด๊ฒฐ ์„ฑ๊ณต