Repository navigation
Conversation
…esktops tagWINDOWSTATION.desktops() dereferenced rpdeskList on every pass, so it returned only the first desktop of each window station and stopped at the second pass. It now follows rpdeskNext. A desktop without a name made windows.desktops fail with a TypeError on the str "Desktop" column; desktops and windows now render it as NotAvailableValue, as windows already does for window names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
tagWINDOWSTATION.desktops()dereferencesrpdeskListon every pass of its loop, so it yields the first desktop of each window station and stops on the second pass (the same offset is already inseen). The other desktops are never visited: on the image below,WinSta0hasDefault,DisconnectandWinlogon, and onlyDefaultis reported.A desktop whose name cannot be read is yielded with a
Nonename.windows.desktopsthen fails while rendering:Change
desktops()followsrpdeskNextafter each desktop, keeping theseenset andmax_desktopsas the stop conditions.windows.desktopsandwindows.windowsrender a missing desktop name asNotAvailableValue, aswindows.windowsalready does for window names. Both plugins get a patch version bump.Testing
Windows 10 19041 memory image from the public DFIR Madness case "The Stolen Szechuan Sauce" (
DESKTOP-SDN1RPT.mem):windows.desktops: fails with theTypeErrorabove before; completes after, with the unnamed desktop shown as-.windows.windows: 417 rows before, 420 after; the 3 added rows are the windows ofWinSta0\Winlogon, and the other rows are unchanged.ruff checkandruff format --checkpass with the repository's configuration.This change was prepared with the help of an AI assistant (Claude). I have reviewed and tested it.