flashnuke / deadnet

A dos (denial of service) attack for local networks using dead router attack (IPv6) and ARP attack (IPv4) simultaneously
GNU General Public License v3.0
70 stars 7 forks source link

gateway mac #4

Closed FirePoleR closed 1 year ago

FirePoleR commented 1 year ago

      ____                 _ _   _      _
     |  _ \  ___  ____  __| | \ | | ___| |_
     | | | |/ _ \/ _  |/ _` |  \| |/ _ \ __|
     | |_| |  __/ (_| | (_| | |\  |  __/ |_
     |____/ \___|\__,_|\__,_|_| \_|\___|\__|

Written by @flashnuke
=================================================
Traceback (most recent call last):
  File "/mnt/c/Program Files/Ovnia/deadnet/./deadnet.py", line 173, in <module>
    attacker = DeadNet(arguments.iface, arguments.cidrlen, arguments.s_time, arguments.gateway,
  File "/mnt/c/Program Files/Ovnia/deadnet/./deadnet.py", line 42, in __init__
    raise Exception(f"{RED}[-]{WHITE} Unable to get gateway mac -> {self.gateway_ipv4}")
Exception: [-] Unable to get gateway mac -> x.x.x.1

help need some guidance

flashnuke commented 1 year ago

What is the command you're running? Have you tried passing an interface using the -i arg?

FirePoleR commented 1 year ago

i'm running this ./deadnet.py -i eth0, I also tried setting the gateway manually but still gives me the same output

flashnuke commented 1 year ago

I created this branch with an alternative way to get the gateway MAC address https://github.com/flashnuke/deadnet/tree/test/gateway_mac

thanks!

flashnuke commented 1 year ago

this should address the issue https://github.com/flashnuke/deadnet/pull/5