C# 클래스 SharpCifs.Ntlmssp.Type2Message

Represents an NTLMSSP Type-2 message.
Represents an NTLMSSP Type-2 message.
상속: NtlmMessage
파일 보기 프로젝트 열기: brandonprry/Potato 1 사용 예제들

공개 메소드들

메소드 설명
GetChallenge ( ) : byte[]

Returns the challenge for this message.

Returns the challenge for this message.

GetContext ( ) : byte[]

Returns the local security context.

Returns the local security context.

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-2 message in the current environment.

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

GetDefaultFlags ( Type1Message type1 ) : int

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

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

GetDefaultTargetInformation ( ) : byte[]
GetTarget ( ) : string

Returns the authentication target.

Returns the authentication target.

GetTargetInformation ( ) : byte[]

Returns the target information block.

Returns the target information block.

SetChallenge ( byte challenge ) : void

Sets the challenge for this message.

Sets the challenge for this message.

SetContext ( byte context ) : void

Sets the local security context.

Sets the local security context. This is used by the client to negotiate local authentication.

SetTarget ( string target ) : void

Sets the authentication target.

Sets the authentication target.

SetTargetInformation ( byte targetInformation ) : void

Sets the target information block.

Sets the target information block. The target information block is used by the client to create an NTLMv2 response.

ToByteArray ( ) : byte[]
ToString ( ) : string
Type2Message ( Type1Message type1 ) : System

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

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

Type2Message ( Type1Message type1, byte challenge, string target ) : System

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

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

Type2Message ( byte material ) : System

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

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

Type2Message ( int flags, byte challenge, string target ) : System

Creates a Type-2 message with the specified parameters.

Creates a Type-2 message with the specified parameters.

비공개 메소드들

메소드 설명
Parse ( byte material ) : void
Type2Message ( ) : System

메소드 상세

GetChallenge() 공개 메소드

Returns the challenge for this message.
Returns the challenge for this message.
public GetChallenge ( ) : byte[]
리턴 byte[]

GetContext() 공개 메소드

Returns the local security context.
Returns the local security context.
public GetContext ( ) : byte[]
리턴 byte[]

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-2 message in the current environment.
Returns the default flags for a generic Type-2 message in the current environment.
public static GetDefaultFlags ( ) : int
리턴 int

GetDefaultFlags() 공개 정적인 메소드

Returns the default flags for a Type-2 message created in response to the given Type-1 message in the current environment.
Returns the default flags for a Type-2 message created in response to the given Type-1 message in the current environment.
public static GetDefaultFlags ( Type1Message type1 ) : int
type1 Type1Message
리턴 int

GetDefaultTargetInformation() 공개 정적인 메소드

public static GetDefaultTargetInformation ( ) : byte[]
리턴 byte[]

GetTarget() 공개 메소드

Returns the authentication target.
Returns the authentication target.
public GetTarget ( ) : string
리턴 string

GetTargetInformation() 공개 메소드

Returns the target information block.
Returns the target information block.
public GetTargetInformation ( ) : byte[]
리턴 byte[]

SetChallenge() 공개 메소드

Sets the challenge for this message.
Sets the challenge for this message.
public SetChallenge ( byte challenge ) : void
challenge byte The challenge from the domain controller/server.
리턴 void

SetContext() 공개 메소드

Sets the local security context.
Sets the local security context. This is used by the client to negotiate local authentication.
public SetContext ( byte context ) : void
context byte The local security context.
리턴 void

SetTarget() 공개 메소드

Sets the authentication target.
Sets the authentication target.
public SetTarget ( string target ) : void
target string The authentication target.
리턴 void

SetTargetInformation() 공개 메소드

Sets the target information block.
Sets the target information block. The target information block is used by the client to create an NTLMv2 response.
public SetTargetInformation ( byte targetInformation ) : void
targetInformation byte The target information block.
리턴 void

ToByteArray() 공개 메소드

public ToByteArray ( ) : byte[]
리턴 byte[]

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

Type2Message() 공개 메소드

Creates a Type-2 message in response to the given Type-1 message using default values from the current environment.
Creates a Type-2 message in response to the given Type-1 message using default values from the current environment.
public Type2Message ( Type1Message type1 ) : System
type1 Type1Message The Type-1 message which this represents a response to.
리턴 System

Type2Message() 공개 메소드

Creates a Type-2 message in response to the given Type-1 message.
Creates a Type-2 message in response to the given Type-1 message.
public Type2Message ( Type1Message type1, byte challenge, string target ) : System
type1 Type1Message The Type-1 message which this represents a response to.
challenge byte The challenge from the domain controller/server.
target string The authentication target.
리턴 System

Type2Message() 공개 메소드

Creates a Type-2 message using the given raw Type-2 material.
Creates a Type-2 message using the given raw Type-2 material.
If an error occurs while parsing the material. ///
public Type2Message ( byte material ) : System
material byte The raw Type-2 material used to construct this message.
리턴 System

Type2Message() 공개 메소드

Creates a Type-2 message with the specified parameters.
Creates a Type-2 message with the specified parameters.
public Type2Message ( int flags, byte challenge, string target ) : System
flags int The flags to apply to this message.
challenge byte The challenge from the domain controller/server.
target string The authentication target.
리턴 System