kickthemout icon indicating copy to clipboard operation
kickthemout copied to clipboard

ERROR: Gateway IP could not be obtained. Please enter IP manually.

Open m1nrv4 opened this issue 2 years ago • 1 comments

Checklist for submitting an issue to KickThemOut:

  • [ ] I have carefully read the README file and haven't managed to resolve my issue.
  • [ ] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x] I am running the latest version of KickThemOut.
  • OS name & version: Kali Linux
  • Python version: 3.10.5
  • Scapy version: 2.4.4
  • Nmap version: 7.92
  • Link of Gist:

  • Description:

m1nrv4 avatar Aug 12 '22 15:08 m1nrv4

Try this new function I wrote

def getGatewayIP():
    global stopAnimation
    gws = netifaces.gateways()
    default_gateway = gws.get('default', {}).get(netifaces.AF_INET)
    if default_gateway:
        return default_gateway[0]
    else:
        return None

zLeki avatar Mar 26 '23 17:03 zLeki