pypykatz: Win11 24H2 Signature Missing

Pypykatz doens’t contain the signatures for Win11 24H2 yet. I tried to implement it but I haven’t managed yet. If anybody is better at reverse engineering, this is my progress so far:

template.signature = b'\x4c\x8b\xfe\x48\x85\xf6\x0f\x84\x68'
template.first_entry_offset = 46
template.offset2 = -4

This might be completely wrong though.

I attached lsasrv.dll from Win11 24H2.

lsasrv.zip

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 16 (6 by maintainers)

Most upvoted comments

pushed fix, now pypykatz should support win24h2

the more data the merrier. What happened is that MS modified the layout of WLsaEnumerateLogonSession so it’s now not just a simple ptr retrieval to get to the start of the LogonSessionList.
Had this issue reported a few months ago to me by @jeffmcjunkin but had little time to finish up the code. Now with 2 whole minidumps I am 60% certain on the new way to parse this version.

Was this your card?

== LogonSession ==
authentication_id 322002 (4e9d2)
session_id 1
username magnify
domainname WIN11
logon_server WIN11
logon_time 2025-02-21T11:42:29.403870+00:00
sid S-1-5-21-800810350-130866625-3627431900-1004
luid 322002
        == MSV ==
                Username: magnify
                Domain: WIN11
                LM: NA
                NT: 382878d2f9d3591fe851c21b5e794dfd
                SHA1: 564a506572937f8c8358d7db8af47f97b55f8961
                DPAPI: 564a506572937f8c8358d7db8af47f97b55f8961