Angstromctf2020 - The Magic Word
The Magic Word
페이지 소스코드에 동작하는 스크립트가 있다.
1
2
3
4
5
6
7
8
9
10
<script>
var msg = document.getElementById("magic");
setInterval(function() {
if (magic.innerText == "please give flag") {
fetch("/flag?msg=" + encodeURIComponent(msg.innerText))
.then(res => res.text())
.then(txt => magic.innerText = txt.split``.map(v => String.fromCharCode(v.charCodeAt(0) ^ 0xf)).join``);
}
}, 1000);
</script>
요구사항에 따라 magic의 innerText에 please give flag를 넣으면 된다.
1
actf{1nsp3c7_3l3m3nt_is_y0ur_b3st_fri3nd}
This post is licensed under CC BY 4.0 by the author.

