649 / Memcrashed-DDoS-Exploit

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

socket.gaierror: [Errno -9] Address family for hostname not supported #42

Open M0dred opened 5 years ago

M0dred commented 5 years ago

Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-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 135, in send(IP(src=target, dst='%s' % i) / UDP(sport=int(str(targetport)),dport=11211)/Raw(load=data), count=power) File "/usr/local/lib/python3.6/dist-packages/scapy/base_classes.py", line 240, in call i.init(*args, **kargs) File "/usr/local/lib/python3.6/dist-packages/scapy/packet.py", line 134, in init self.fields[f] = self.get_field(f).any2i(self, v) File "/usr/local/lib/python3.6/dist-packages/scapy/fields.py", line 259, in any2i return self.h2i(pkt,x) File "/usr/local/lib/python3.6/dist-packages/scapy/fields.py", line 240, in h2i x = Net(x) File "/usr/local/lib/python3.6/dist-packages/scapy/base_classes.py", line 90, in init self.parsed,self.netmask = self._parse_net(net) File "/usr/local/lib/python3.6/dist-packages/scapy/base_classes.py", line 83, in _parse_net tmp[0]=socket.gethostbyname(tmp[0]) socket.gaierror: [Errno -9] Address family for hostname not supported

CrimsonTorso commented 5 years ago

Try running:

sudo python3 Memcrashed.py