kickthemout
kickthemout copied to clipboard
ERROR: Gateway IP could not be obtained. Please enter IP manually.
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:
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