Bug0012

Description
Error: unsubscriptable object

Error in debug log when running scanner. Non fatal, but annoying. See debug below.

20612(Debug): Scanning file /pc01_p1/System Volume Information/_restore{45A06C03-C11F-4B05-B3F7-92EBCC517076}/RP953/snapshot/_REGISTRY_MACHINE_SOFTWARE (inode Ipc01_p1|K50878-128-0)
20613(Critical Error): Scanner (<RegScan.Scan instance at 0xb655f90c>) on Inode Ipc01_p1|K20684-128-0 Error: unsubscriptable object
20613(Critical Error): Scanner (<RegScan.Scan instance at 0xb655f90c>) on Inode Ipc01_p1|K20684-128-0 Error: unsubscriptable object
  File "/home/tmc/pyflag-beta-bin3/lib/python2.4/site-packages/pyflag/Scanner.py", line 463, in scanfile
    o.finish()
  File "/home/tmc/pyflag-beta-bin3/lib/python2.4/site-packages/pyflag/Scanner.py", line 247, in finish
    self.external_process(fd)
  File "/home/tmc/pyflag-beta-bin3/lib/python2.4/site-packages/pyflag/plugins/DiskForensics/FileHandlers/RegScan.py", line 118, in external_process
    store_key(root_key,path=parent_path)
  File "/home/tmc/pyflag-beta-bin3/lib/python2.4/site-packages/pyflag/plugins/DiskForensics/FileHandlers/RegScan.py", line 116, in store_key
    store_key(k,new_path)
  File "/home/tmc/pyflag-beta-bin3/lib/python2.4/site-packages/pyflag/plugins/DiskForensics/FileHandlers/RegScan.py", line 116, in store_key
    store_key(k,new_path)
  File "/home/tmc/pyflag-beta-bin3/lib/python2.4/site-packages/pyflag/plugins/DiskForensics/FileHandlers/RegScan.py", line 101, in store_key
    basename=nk_key['key_name'])
None

Logged
2007-03-02
Logged By

Tomasz

Assigned to
Status
Closed

Get back to the BugIndex


This is because we were not able to properly open the registry file. Obviously we need better registry parsing support - or there might be something weird with that file (its not a read registry file, its a backup).

Added a check for no nk_key to avoid exception.