renames
This commit is contained in:
parent
787d58a83f
commit
455d300d8d
280 changed files with 2 additions and 2 deletions
|
@ -0,0 +1,18 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div>Changes top.location to javascript.info</div>
|
||||
|
||||
<script>
|
||||
top.location = 'https://javascript.info';
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,41 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<style>
|
||||
iframe {
|
||||
width: 400px;
|
||||
height: 100px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -20px;
|
||||
opacity: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
function attack() {
|
||||
|
||||
window.onbeforeunload = function() {
|
||||
window.onbeforeunload = null;
|
||||
return "Want to leave without learning all the secrets (he-he)?";
|
||||
};
|
||||
|
||||
document.body.insertAdjacentHTML('beforeend', '<iframe src="iframe.html">');
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<p>After a click on the button the visitor gets a "strange" question about whether he wants to leave.</p>
|
||||
|
||||
<p>Probably he would respond "No", and the iframe protection is hacked.</p>
|
||||
|
||||
<button onclick="attack()">Add a "protected" iframe</button>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue