C# Класс SharpCifs.Ntlmssp.Type3Message

Represents an NTLMSSP Type-3 message.
Represents an NTLMSSP Type-3 message.
Наследование: NtlmMessage
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetDefaultDomain ( ) : string

Returns the default domain from the current environment.

Returns the default domain from the current environment.

GetDefaultFlags ( ) : int

Returns the default flags for a generic Type-3 message in the current environment.

Returns the default flags for a generic Type-3 message in the current environment.

GetDefaultFlags ( Type2Message type2 ) : int

Returns the default flags for a Type-3 message created in response to the given Type-2 message in the current environment.

Returns the default flags for a Type-3 message created in response to the given Type-2 message in the current environment.

GetDefaultPassword ( ) : string

Returns the default password from the current environment.

Returns the default password from the current environment.

GetDefaultUser ( ) : string

Returns the default user from the current environment.

Returns the default user from the current environment.

GetDefaultWorkstation ( ) : string

Returns the default workstation from the current environment.

Returns the default workstation from the current environment.

GetDomain ( ) : string

Returns the domain in which the user has an account.

Returns the domain in which the user has an account.

GetLMResponse ( ) : byte[]

Returns the LanManager/LMv2 response.

Returns the LanManager/LMv2 response.

GetLMResponse ( Type2Message type2, string password ) : byte[]

Constructs the LanManager response to the given Type-2 message using the supplied password.

Constructs the LanManager response to the given Type-2 message using the supplied password.

GetLMv2Response ( Type2Message type2, string domain, string user, string password, byte clientChallenge ) : byte[]
GetMasterKey ( ) : byte[]

The real session key if the regular session key is actually the encrypted version used for key exchange.

The real session key if the regular session key is actually the encrypted version used for key exchange.

GetNTResponse ( ) : byte[]

Returns the NT/NTLMv2 response.

Returns the NT/NTLMv2 response.

GetNTResponse ( Type2Message type2, string password ) : byte[]

Constructs the NT response to the given Type-2 message using the supplied password.

Constructs the NT response to the given Type-2 message using the supplied password.

GetNtlMv2Response ( Type2Message type2, byte responseKeyNt, byte clientChallenge ) : byte[]
GetSessionKey ( ) : byte[]

Returns the session key.

Returns the session key.

GetUser ( ) : string

Returns the username for the authenticating user.

Returns the username for the authenticating user.

GetWorkstation ( ) : string

Returns the workstation from which authentication is being performed.

Returns the workstation from which authentication is being performed.

SetDomain ( string domain ) : void

Sets the domain for this message.

Sets the domain for this message.

SetLmResponse ( byte lmResponse ) : void

Sets the LanManager/LMv2 response for this message.

Sets the LanManager/LMv2 response for this message.

SetNtResponse ( byte ntResponse ) : void

Sets the NT/NTLMv2 response for this message.

Sets the NT/NTLMv2 response for this message.

SetSessionKey ( byte sessionKey ) : void

Sets the session key.

Sets the session key.

SetUser ( string user ) : void

Sets the user for this message.

Sets the user for this message.

SetWorkstation ( string workstation ) : void

Sets the workstation for this message.

Sets the workstation for this message.

ToByteArray ( ) : byte[]
ToString ( ) : string
Type3Message ( Type2Message type2 ) : System

Creates a Type-3 message in response to the given Type-2 message using default values from the current environment.

Creates a Type-3 message in response to the given Type-2 message using default values from the current environment.

Type3Message ( Type2Message type2, string password, string domain, string user, string workstation, int flags ) : System

Creates a Type-3 message in response to the given Type-2 message.

Creates a Type-3 message in response to the given Type-2 message.

Type3Message ( byte material ) : System

Creates a Type-3 message using the given raw Type-3 material.

Creates a Type-3 message using the given raw Type-3 material.

Type3Message ( int flags, byte lmResponse, byte ntResponse, string domain, string user, string workstation ) : System

Creates a Type-3 message with the specified parameters.

Creates a Type-3 message with the specified parameters.

Приватные методы

Метод Описание
Parse ( byte material ) : void
Type3Message ( ) : System

Описание методов

GetDefaultDomain() публичный статический Метод

Returns the default domain from the current environment.
Returns the default domain from the current environment.
public static GetDefaultDomain ( ) : string
Результат string

GetDefaultFlags() публичный статический Метод

Returns the default flags for a generic Type-3 message in the current environment.
Returns the default flags for a generic Type-3 message in the current environment.
public static GetDefaultFlags ( ) : int
Результат int

GetDefaultFlags() публичный статический Метод

Returns the default flags for a Type-3 message created in response to the given Type-2 message in the current environment.
Returns the default flags for a Type-3 message created in response to the given Type-2 message in the current environment.
public static GetDefaultFlags ( Type2Message type2 ) : int
type2 Type2Message
Результат int

GetDefaultPassword() публичный статический Метод

Returns the default password from the current environment.
Returns the default password from the current environment.
public static GetDefaultPassword ( ) : string
Результат string

GetDefaultUser() публичный статический Метод

Returns the default user from the current environment.
Returns the default user from the current environment.
public static GetDefaultUser ( ) : string
Результат string

GetDefaultWorkstation() публичный статический Метод

Returns the default workstation from the current environment.
Returns the default workstation from the current environment.
public static GetDefaultWorkstation ( ) : string
Результат string

GetDomain() публичный Метод

Returns the domain in which the user has an account.
Returns the domain in which the user has an account.
public GetDomain ( ) : string
Результат string

GetLMResponse() публичный Метод

Returns the LanManager/LMv2 response.
Returns the LanManager/LMv2 response.
public GetLMResponse ( ) : byte[]
Результат byte[]

GetLMResponse() публичный статический Метод

Constructs the LanManager response to the given Type-2 message using the supplied password.
Constructs the LanManager response to the given Type-2 message using the supplied password.
public static GetLMResponse ( Type2Message type2, string password ) : byte[]
type2 Type2Message The Type-2 message.
password string The password.
Результат byte[]

GetLMv2Response() публичный статический Метод

public static GetLMv2Response ( Type2Message type2, string domain, string user, string password, byte clientChallenge ) : byte[]
type2 Type2Message
domain string
user string
password string
clientChallenge byte
Результат byte[]

GetMasterKey() публичный Метод

The real session key if the regular session key is actually the encrypted version used for key exchange.
The real session key if the regular session key is actually the encrypted version used for key exchange.
public GetMasterKey ( ) : byte[]
Результат byte[]

GetNTResponse() публичный Метод

Returns the NT/NTLMv2 response.
Returns the NT/NTLMv2 response.
public GetNTResponse ( ) : byte[]
Результат byte[]

GetNTResponse() публичный статический Метод

Constructs the NT response to the given Type-2 message using the supplied password.
Constructs the NT response to the given Type-2 message using the supplied password.
public static GetNTResponse ( Type2Message type2, string password ) : byte[]
type2 Type2Message The Type-2 message.
password string The password.
Результат byte[]

GetNtlMv2Response() публичный статический Метод

public static GetNtlMv2Response ( Type2Message type2, byte responseKeyNt, byte clientChallenge ) : byte[]
type2 Type2Message
responseKeyNt byte
clientChallenge byte
Результат byte[]

GetSessionKey() публичный Метод

Returns the session key.
Returns the session key.
public GetSessionKey ( ) : byte[]
Результат byte[]

GetUser() публичный Метод

Returns the username for the authenticating user.
Returns the username for the authenticating user.
public GetUser ( ) : string
Результат string

GetWorkstation() публичный Метод

Returns the workstation from which authentication is being performed.
Returns the workstation from which authentication is being performed.
public GetWorkstation ( ) : string
Результат string

SetDomain() публичный Метод

Sets the domain for this message.
Sets the domain for this message.
public SetDomain ( string domain ) : void
domain string The domain.
Результат void

SetLmResponse() публичный Метод

Sets the LanManager/LMv2 response for this message.
Sets the LanManager/LMv2 response for this message.
public SetLmResponse ( byte lmResponse ) : void
lmResponse byte The LanManager response.
Результат void

SetNtResponse() публичный Метод

Sets the NT/NTLMv2 response for this message.
Sets the NT/NTLMv2 response for this message.
public SetNtResponse ( byte ntResponse ) : void
ntResponse byte The NT/NTLMv2 response.
Результат void

SetSessionKey() публичный Метод

Sets the session key.
Sets the session key.
public SetSessionKey ( byte sessionKey ) : void
sessionKey byte The session key.
Результат void

SetUser() публичный Метод

Sets the user for this message.
Sets the user for this message.
public SetUser ( string user ) : void
user string The user.
Результат void

SetWorkstation() публичный Метод

Sets the workstation for this message.
Sets the workstation for this message.
public SetWorkstation ( string workstation ) : void
workstation string The workstation.
Результат void

ToByteArray() публичный Метод

public ToByteArray ( ) : byte[]
Результат byte[]

ToString() публичный Метод

public ToString ( ) : string
Результат string

Type3Message() публичный Метод

Creates a Type-3 message in response to the given Type-2 message using default values from the current environment.
Creates a Type-3 message in response to the given Type-2 message using default values from the current environment.
public Type3Message ( Type2Message type2 ) : System
type2 Type2Message The Type-2 message which this represents a response to.
Результат System

Type3Message() публичный Метод

Creates a Type-3 message in response to the given Type-2 message.
Creates a Type-3 message in response to the given Type-2 message.
public Type3Message ( Type2Message type2, string password, string domain, string user, string workstation, int flags ) : System
type2 Type2Message The Type-2 message which this represents a response to.
password string The password to use when constructing the response.
domain string The domain in which the user has an account.
user string The username for the authenticating user.
workstation string /// The workstation from which authentication is /// taking place. ///
flags int
Результат System

Type3Message() публичный Метод

Creates a Type-3 message using the given raw Type-3 material.
Creates a Type-3 message using the given raw Type-3 material.
If an error occurs while parsing the material. ///
public Type3Message ( byte material ) : System
material byte The raw Type-3 material used to construct this message.
Результат System

Type3Message() публичный Метод

Creates a Type-3 message with the specified parameters.
Creates a Type-3 message with the specified parameters.
public Type3Message ( int flags, byte lmResponse, byte ntResponse, string domain, string user, string workstation ) : System
flags int The flags to apply to this message.
lmResponse byte The LanManager/LMv2 response.
ntResponse byte The NT/NTLMv2 response.
domain string The domain in which the user has an account.
user string The username for the authenticating user.
workstation string /// The workstation from which authentication is /// taking place. ///
Результат System