drakvuf icon indicating copy to clipboard operation
drakvuf copied to clipboard

Windows XP SP3 support

Open aoshiken opened this issue 8 years ago • 5 comments

Hi,

I think is still in use (broader than most of us could believe) at least on ATM here in Europe but take this just as a heads up for getting proper support (although I don't tested it). :)

aoshiken avatar Apr 21 '16 10:04 aoshiken

Anyone tried that?

aoshiken avatar Oct 30 '18 10:10 aoshiken

Hi,

Windows XP is not supported by DRAKVUF because the way drakvuf identifies the current running process doesn't work on Windows XP.

More specifically, it locates the current thread via KPCR, and then attempts to locate the current EPROCESS via the Process field of the KTHREAD.

Unfortunately, this field only appeared since Windows Vista. I think Drakvuf should exit at initialization if a field is missing from the rekall profile.

Instead, in our situation, it reads garbage from the KTHREAD and the program crashes afterwards.

Surprisingly, the syscalls plugin doesn't crash, but only display a (null) process.

I hope that helps.

@tklengyel do yo have an opinion on the matter ? Thanks.

Wenzel avatar Mar 14 '19 16:03 Wenzel

It's not surprising syscalls works, that's expected. The kpcr being mapped through fs/gs does not apply to xp but there are other ways to get the current thread which drakvuf doesn't currently implement.

tklengyel avatar Mar 14 '19 16:03 tklengyel

get the current thread

getting the current process you mean ? getting the thread is fine.

which drakvuf doesn't currently implement.

Apart from iterating over the process list and building a hash with [cr3] -> [process] for performance, do you have other methods ?

Wenzel avatar Mar 14 '19 16:03 Wenzel

The way drakvuf get's the current process is by getting the thread first. If you have the thread, you can get to the process directly. There are specific tricks for XP that allowed for finding processes faster, but it has been a good several years since I looked at that so I don't remember the details from the top of my head.

tklengyel avatar Mar 14 '19 18:03 tklengyel