-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
36 lines (29 loc) · 933 Bytes
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>demo</title>
<meta name="description" content="">
</head>
<body>
<div class="flex-child">
<a href="#" class="ui-idx-link">
<div class="">查看面板console</div>
</a>
</div>
<script src="xss.js"></script>
<script>
window.addEventListener("load", function() {
xss(function() {
console.log('可疑行为:', arguments);
});
// var a = document.createElement("script");a.src="baidu.com"
// document.getElementsByTagName("script")[0].setAttribute("src","baidu.com")
// document.getElementsByTagName("script")[0].src="http://haha.js"
// var a = document.createElement("script");a.setAttribute("src","xss2.js");document.body.appendChild(a);
// var a = document.createElement("script");a.innerHTML="alert();";document.body.appendChild(a);
});
</script>
</body>
</html>