full of bugs & inproper syntax
hazeyez opened this issue · 2 comments
this script is either terribly written or not at all optimized for python3 ?
after having to add parenthesis to every "print" line 23-26,33,35,37,39,47,48
i.e: print "Author : HA-MRX" should = print ("Author : HA-MRX")
I get the following error:
File "/home/hazeyez/ddos/DDos-Attack/ddos-attack.py", line 28, in
ip = raw_input("IP Target : ")
NameError: name 'raw_input' is not defined
raw_input was changed to 'input' for python3 so that needed to be edited.
once all of these changes were made, the script ran, but i got the error sh: 1: figlet: not found
after entering the IP & Port, I got the following error:
sh: 1: figlet: not found
[ ] 0%
[===== ] 25%
[========== ] 50%
[=============== ] 75%
[====================] 100%
Traceback (most recent call last):
File "/home/hazeyez/ddos/DDos-Attack/ddos-attack.py", line 45, in
sock.sendto(bytes, (ip,port))
TypeError: an integer is required (got type str)
good tools https://github.com/H1R0GH057/Anonymous
TypeError: an integer is required (got type str)
sock.sendto(bytes, (ip,port))
input()
saved the port as a string,
hence the TypeError,
TypeError: an integer is required (got type str)
use:
sock.sendto(bytes, (ip,int(port)))
fixed in 98083eb
although I am unclear as to what "figlet" means.