masterzen / winrm

Command-line tool and library for Windows remote command execution in Go
Apache License 2.0
425 stars 129 forks source link

Implement the NegotiateEncryptedMessage message in the MS-WSMV protocol document 2.2.9.1.1 #130

Open Luoooio opened 1 year ago

Luoooio commented 1 year ago

Implement the NegotiateEncryptedMessage message in the MS-WSMV protocol document 2.2.9.1.1, which is the method of encrypting an HTTP connection on the default 5985 port, and you can refer to pywinrm's implementation at https://github.com/diyan/pywinrm/blob/master/winrm/encryption.py. The protocol document can be downloaded from https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-wsmv/055dc36b-db2a-41ae-a47b-82cbfa0b4a92.

Thank you for your code library, it has been a great help to me, but not having the implementation of the message is frustrating, and I look forward to your future updates.

CalypsoSys commented 1 year ago

I have a PR in to implement this in this repo but this seems to be not very active

you could use https://github.com/CalypsoSys/bobwinrm

see https://github.com/CalypsoSys/bobwinrmntlm for usage