k4m4 / kickthemout

💤 Kick devices off your network by performing an ARP Spoof attack.
https://nikolaskama.me/kickthemoutproject
MIT License
2.53k stars 440 forks source link

it looks like it's off the net #498

Open lilnecati opened 3 years ago

lilnecati commented 3 years ago

Re-arping target...

WARNING! An unknown error has occurred, starting debug... Starting debug... (Please report this crash on 'https://github.com/k4m4/kickthemout/issues' with your private information removed where necessary) Current defaultGatewayMac: Reloading MAC retriever function... Reloaded defaultGatewayMac: Known gateway IP: 192.168.2.194 Crash trace: Traceback (most recent call last): File "/root/kickthemout/kickthemout.py", line 438, in kickoneoff time.sleep(10) KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/root/kickthemout/kickthemout.py", line 446, in kickoneoff
spoof.sendPacket(defaultGatewayMac, defaultGatewayIP, host[0], host[1])
File "/root/kickthemout/spoof.py", line 47, in sendPacket
broadcastPacket()
File "/root/kickthemout/spoof.py", line 45, in broadcastPacket
sendp(x=packet, verbose=False)
File "/usr/lib/python3/dist-packages/scapy/sendrecv.py", line 377, in sendp
results = gen_send(socket, x, inter=inter, loop=loop,
File "/usr/lib/python3/dist-packages/scapy/sendrecv.py", line 308, in __gen_send
s.send(p)
File "/usr/lib/python3/dist-packages/scapy/arch/linux.py", line 476, in send
return SuperSocket.send(self, x)
File "/usr/lib/python3/dist-packages/scapy/supersocket.py", line 71, in send
sx = raw(x)
File "/usr/lib/python3/dist-packages/scapy/compat.py", line 53, in raw
return bytes(x)
File "/usr/lib/python3/dist-packages/scapy/packet.py", line 498, in
bytes__
return self.build()
File "/usr/lib/python3/dist-packages/scapy/packet.py", line 618, in build
p = self.do_build()
File "/usr/lib/python3/dist-packages/scapy/packet.py", line 600, in do_build
pkt = self.self_build() File "/usr/lib/python3/dist-packages/scapy/packet.py", line 581, in self_build p = f.addfield(self, p, val) File "/usr/lib/python3/dist-packages/scapy/fields.py", line 151, in addfield return s + self.struct.pack(self.i2m(pkt, val)) File "/usr/lib/python3/dist-packages/scapy/layers/l2.py", line 155, in i2m return MACField.i2m(self, pkt, self.i2h(pkt, x)) File "/usr/lib/python3/dist-packages/scapy/fields.py", line 506, in i2m x = mac2str(x) File "/usr/lib/python3/dist-packages/scapy/utils.py", line 468, in mac2str return b"".join(chb(int(x, 16)) for x in plain_str(mac).split(':')) File "/usr/lib/python3/dist-packages/scapy/utils.py", line 468, in return b"".join(chb(int(x, 16)) for x in plain_str(mac).split(':')) ValueError: invalid literal for int() with base 16: ''

DEBUG FINISHED. Shutting down...

Thank you from now

T-1009 commented 2 years ago

On line 128 of the kickthemount.py file

`# make sure there is an internet connection def checkInternetConnection(): try:

urlopen('https://github.com', timeout=3)

    urlopen('https://www.baidu.com/', timeout=3)
    return True
except URLError as err:
    return False
except KeyboardInterrupt:
    shutdown()`

This function uses connection to GitHub to determine whether it is connected. In some countries and regions, such as China, the connection to GitHub will timeout. Please replace the GitHub URL with a website URL that can be opened stably and quickly in your region, or extend the timeout judgment from 3 seconds to 5 seconds or even longer