Closed GoogleCodeExporter closed 9 years ago
I think the problem is that NoneObject.__str__ must return a string
(not another NoneObject). Which string is the question - it might
return some kind of reason (so if you do print on the NoneObject you
get a reason). Alternatively we might return an empty string so it
wont match.
Another option is to check the object before passing to re.search.
Which do you think?
Michael.
Original comment by scude...@gmail.com
on 30 Jan 2012 at 2:38
Someone just reported this issue to me today. I'm guessing this is also
related to issue 186. here's the output they sent:
$ python vol.py -f RAM.img imageinfo
Volatile Systems Volatility Framework 2.1_alpha
Determining profile based on KDBG search...
Suggested Profile(s) : WinXPSP3x86, WinXPSP2x86 (Instantiated with WinXPSP2x86)
AS Layer1 : JKIA32PagedMemoryPae (Kernel AS)
AS Layer2 : FileAddressSpace (/home/<user>/ITSM/RAM.img)
PAE type : PAE
DTB : 0xa48000
KDBG : 0x8054d2e0
KPCR : 0xffdff000
KUSER_SHARED_DATA : 0xffdf0000
Image date and time : 1970-01-01 00:00:00
Image local date and time : 1970-01-01 00:00:00
Traceback (most recent call last):
File "vol.py", line 135, in <module>
main()
File "vol.py", line 126, in main
command.execute()
File "/home/<user>/volatility/volatility/commands.py", line 101, in execute
func(outfd, data)
File "/home/<user>/volatility/volatility/plugins/imageinfo.py", line 37, in render_text
for k, v in data:
File "/home/<user>/volatility/volatility/cache.py", line 534, in generate
for x in g:
File "/home/<user>/volatility/volatility/plugins/imageinfo.py", line 112, in calculate
for csdversion, numprocessors in self.find_task_items(addr_space):
File "/home/<user>/volatility/volatility/plugins/imageinfo.py", line 149, in find_task_items
csdvers[str(task.Peb.CSDVersion)] = csdvers.get(str(task.Peb.CSDVersion), 0) + 1
TypeError: __str__ returned non-string (type NoneObject)
Original comment by jamie.l...@gmail.com
on 1 Feb 2012 at 11:00
This issue was closed by revision r1363.
Original comment by mike.auty@gmail.com
on 12 Feb 2012 at 10:01
NoneObject.__str__ has returned a string since October 2nd (r1100). This is
because UNICODE_STRING doesn't verify that it returns a string from __str__.
Please check that this resolves the issue, and reopen if there are any
problems...
Original comment by mike.auty@gmail.com
on 12 Feb 2012 at 10:04
All good from my perspective (the command in comment #1 no longer crashes).
Gleeda you may want to get the user who reported commet #2 to double check
Original comment by michael.hale@gmail.com
on 13 Feb 2012 at 3:47
Original issue reported on code.google.com by
michael.hale@gmail.com
on 30 Jan 2012 at 1:19