Closed GoogleCodeExporter closed 8 years ago
So one note: the extra two values are probably after the value with the invalid
".Data" member and would therefore be accessible if we just did proper error
handling for possibly invalid members without doing a zread(). I'm working on
running tests against samples now to see what possible problems could arise
from this patch as it is, so it will take a bit longer...
Original comment by jamie.l...@gmail.com
on 12 Jun 2013 at 5:30
oh sorry, it's actually TimeZoneKeyName that seems to have the issue and
anyways there is no data returned.... so maybe this would be a good patch:
Index: volatility/win32/rawreg.py
===================================================================
--- volatility/win32/rawreg.py (revision 3436)
+++ volatility/win32/rawreg.py (working copy)
@@ -178,6 +178,8 @@
valdata = val.obj_vm.read(val.Data, val.DataLength)
valtype = VALUE_TYPES.get(val.Type.v(), "REG_UNKNOWN")
+ if valdata == None:
+ return (valtype, obj.NoneObject("Value data is unreadable"))
if valtype in ["REG_DWORD", "REG_DWORD_BIG_ENDIAN", "REG_QWORD"]:
if len(valdata) != struct.calcsize(value_formats[valtype]):
return (valtype, obj.NoneObject("Value data did not match the expected data size for a {0}".format(valtype)))
Original comment by jamie.l...@gmail.com
on 12 Jun 2013 at 5:48
So that looks like it works just fine on the TimezoneInformation key. Let me
know if you need me to run any further tests or anything.
Here are the results so you can confirm its working as you expected.
root@bt:/volatility# python vol.py -f jonsmith.mem --profile=Win7SP0x86
printkey -K "ControlSet001\Control\TimeZoneInformation"
Volatile Systems Volatility Framework 2.3_beta
Legend: (S) = Stable (V) = Volatile
----------------------------
Registry: \REGISTRY\MACHINE\SYSTEM
Key name: TimeZoneInformation (S)
Last updated: 2013-04-04 01:57:34 UTC+0000
Subkeys:
Values:
REG_DWORD Bias : (S) 300
REG_DWORD DaylightBias : (S) 4294967236
REG_SZ DaylightName : (S) @tzres.dll,-111
REG_BINARY DaylightStart : (S)
0x00000000 00 00 03 00 02 00 02 00 00 00 00 00 00 00 00 00 ................
REG_DWORD StandardBias : (S) 0
REG_SZ StandardName : (S) @tzres.dll,-112
REG_BINARY StandardStart : (S)
0x00000000 00 00 0b 00 01 00 02 00 00 00 00 00 00 00 00 00 ................
REG_SZ TimeZoneKeyName : (S) -
REG_DWORD DynamicDaylightTimeDisabled : (S) 0
Original comment by wyattroe...@gmail.com
on 12 Jun 2013 at 7:25
Awesome! Thanks for your help, Wyatt! I'll commit changes soon :-)
Original comment by jamie.l...@gmail.com
on 12 Jun 2013 at 7:26
This issue was closed by revision r3438.
Original comment by jamie.l...@gmail.com
on 12 Jun 2013 at 7:31
Original issue reported on code.google.com by
michael.hale@gmail.com
on 8 Jun 2013 at 3:52