I am trying implementing a simple application with full customized Negotiate(Or NTLM) based on C#, which will serve to me as a base for a more complex project like imckaet in python. At the moment, I need to write a custom Negotiate(Or NTLM) AuthenticationManager.
In Microsoft Doc, I've learned that AuthenticationManager can do this and a simple CustomBasicAuthentication found there, but I want to implement my CustomNegotiate.
So my question is because Negotiate works as a challenge-response protocol and WebRequest request is so open and called from a HttpWebRequest, how can I implement challenge-response based protocol by AuthenticationManager and how to send Authorization and Authentication packets by this class? How get challenge bytes to generate Authentication byte by (domain\user, password) pair?
I am trying implementing a simple application with full customized Negotiate(Or NTLM) based on C#, which will serve to me as a base for a more complex project like imckaet in python. At the moment, I need to write a custom Negotiate(Or NTLM) AuthenticationManager.
I implement the Authentication method like this:
In Microsoft Doc, I've learned that AuthenticationManager can do this and a simple CustomBasicAuthentication found there, but I want to implement my CustomNegotiate.
So my question is because Negotiate works as a challenge-response protocol and WebRequest request is so open and called from a HttpWebRequest, how can I implement challenge-response based protocol by AuthenticationManager and how to send Authorization and Authentication packets by this class? How get challenge bytes to generate Authentication byte by (domain\user, password) pair?