Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 3 tasks
m1nrv4 opened this issue Aug 12, 2022 · 1 comment
Open
1 of 3 tasks

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

m1nrv4 opened this issue Aug 12, 2022 · 1 comment

Comments

@m1nrv4
Copy link

m1nrv4 commented Aug 12, 2022

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.
  • 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:
@zLeki
Copy link

zLeki commented Mar 26, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants