Created
February 27, 2018 12:35
-
-
Save lokori/0d108c34db4d7cd658606a3edc3d63ff to your computer and use it in GitHub Desktop.
harmless example for dns spoofing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
This file can be useful in conjunction with DNSSpoof | |
*/ | |
?> | |
<html> | |
<body> | |
<audio class="my_audio" preload="none" id = "saundi"> | |
<source src="Sad_Trombone.wav" type="audio/wav"> | |
</audio> | |
<p><img id="luuppi" style="z-index: 0; left: 0px; position: absolute; top: 0px" | |
float=top border=0 hspace=0 src="luuppi.png"></p> | |
<script> | |
function getStyleProp(elem, prop){ | |
if(window.getComputedStyle) | |
return window.getComputedStyle(elem, null).getPropertyValue(prop); | |
else if(elem.currentStyle) return elem.currentStyle[prop]; //IE | |
} | |
function setObj(obj, x, y) { | |
obj.style.left = x + "px"; | |
obj.style.top = y + "px"; | |
} | |
frame = 0; | |
spiidi = 0; | |
function framez() { | |
if (frame == 0) { | |
document.getElementById('saundi').play(); | |
} | |
pic = document.getElementById("luuppi"); | |
frame = frame + 1; | |
spiidi = spiidi + 20*Math.abs(Math.sin(frame/300)); | |
var xpos = Math.floor(Math.cos(spiidi/1200) * 350)-350; | |
var ypos = Math.floor(Math.sin(spiidi/1200) * 350); | |
setObj(pic, xpos, ypos); | |
setTimeout(framez, 20); // fps = 50 | |
} | |
setTimeout(framez, 50); // begin with a short delay | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment