maldevel/gdog

IndexError: list index out of range

Opened this issue · 0 comments

If the target machine network interface do not have the ipv4 attribute or AF_INET, the client.py will crash. The error tracer below show the gdog client.py error.

C:\Users\xxxxxxxxx\Desktop\gdog>python client.py
Traceback (most recent call last):
  File "client.py", line 229, in <module>
    sysInfo = SystemInfo()
  File "client.py", line 198, in __init__
    self.IPv4 = netifaces.ifaddresses(iface).get(netifaces.AF_INET, [])[0]['addr']
IndexError: list index out of range