jipegit / OSXAuditor

OS X Auditor is a free Mac OS X computer forensics tool
Other
3.13k stars 280 forks source link

KeyError: LastConnected #44

Closed drewcrawford closed 8 years ago

drewcrawford commented 8 years ago
sudo python osxauditor.py -a > audit.txt
Traceback (most recent call last):
  File "osxauditor.py", line 1684, in <module>
    Main()
  File "osxauditor.py", line 1657, in Main
    ParseAirportPrefs()
  File "osxauditor.py", line 946, in ParseAirportPrefs
    PrintAndLog(u'SSID: ' + KnownNetworks[KnownNetwork]['SSIDString'].decode('utf-8') + u' - SSID: ' + str(KnownNetworks[KnownNetwork]['SSID']) + u' - Last connected: ' + str(KnownNetworks[KnownNetwork]['LastConnected']) + u' - Security type: ' + KnownNetworks[KnownNetwork]['SecurityType'] + u' - Geolocation: ' + Geolocation, 'INFO')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/_convenience.py", line 162, in __getitem__objectForKey_
    return container_unwrap(res, KeyError, key)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/_convenience.py", line 659, in container_unwrap
    raise exc_type(*exc_args)
KeyError: 'LastConnected'
jipegit commented 8 years ago

Fixed.