GoSecure / pywsus

Standalone implementation of a part of the WSUS spec. Built for offensive security purposes.
https://gosecure.net/blog/
MIT License
286 stars 44 forks source link

Add RegisterComputer Response #9

Closed j4w closed 3 years ago

j4w commented 3 years ago

Ran into an issue where the client machine would send a RegisterComputer request and pywsus would just hang with WARNING:root:SOAP Action not handled - which is weird because the get-config.xml says registration is not required (<IsRegistrationRequired>false</IsRegistrationRequired>).

According to Microsoft, when a client sends a RegisterComputer - "If no faults occur during the operation, the server MUST return a RegisterComputerResponse message to the client." https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-wusp/1c84550d-ba7b-4174-9b0d-bf7cb1a70238

Still not sure why the client was sending RegisterComputer, but was able to appease by just adding an additional elif to handle it. Hopefully it will be helpful for others.

nitbx commented 3 years ago

thank you for that !