国外搬运 XSS注入式网站攻击源代码

Sky

0x04|共鸣者
07
121
78
奇源币
0
管理成员
版主
VIP
[HIDEREPLY]
HTML:
<!DOCTYPE html>
<html>
<head>
<title>Evil Lair</title>
</head>
<body>
<h1>Welcome to Your Evil Lair</h1>
<p>Enter your name to see the power of darkness:</p>
<input type="text" id="name" />
<button onclick="greet()">Summon Chaos</button>

<script>
function greet() {
var name = document.getElementById("name").value;
var maliciousGreeting = "<h2>Hello, " + name + "! Your soul belongs to me now &#128520;</h2>";
document.getElementById("greeting").innerHTML = maliciousGreeting;
}
</script>

<div id="greeting"></div>
</body>
</html>
[/HIDEREPLY]
 
后退
顶部