C# Class SharpCifs.Ntlmssp.NtlmMessage

Abstract superclass for all NTLMSSP messages.
Abstract superclass for all NTLMSSP messages.
Inheritance: NtlmFlags
Mostrar archivo Open project: brandonprry/Potato

Protected Properties

Property Type Description
NtlmsspSignature byte[]
UniEncoding string

Public Methods

Method Description
GetFlag ( int flag ) : bool

Returns the status of the specified flag.

Returns the status of the specified flag.

GetFlags ( ) : int

Returns the flags currently in use for this message.

Returns the flags currently in use for this message.

SetFlag ( int flag, bool value ) : void

Sets or clears the specified flag.

Sets or clears the specified flag.

SetFlags ( int flags ) : void

Sets the flags for this message.

Sets the flags for this message.

ToByteArray ( ) : byte[]

Returns the raw byte representation of this message.

Returns the raw byte representation of this message.

Private Methods

Method Description
GetOemEncoding ( ) : string
ReadSecurityBuffer ( byte src, int index ) : byte[]
ReadULong ( byte src, int index ) : int
ReadUShort ( byte src, int index ) : int
WriteSecurityBuffer ( byte dest, int offset, int bodyOffset, byte src ) : void
WriteULong ( byte dest, int offset, int value ) : void
WriteUShort ( byte dest, int offset, int value ) : void

Method Details

GetFlag() public method

Returns the status of the specified flag.
Returns the status of the specified flag.
public GetFlag ( int flag ) : bool
flag int The flag to test (i.e., NTLMSSP_NEGOTIATE_OEM).
return bool

GetFlags() public method

Returns the flags currently in use for this message.
Returns the flags currently in use for this message.
public GetFlags ( ) : int
return int

SetFlag() public method

Sets or clears the specified flag.
Sets or clears the specified flag.
public SetFlag ( int flag, bool value ) : void
flag int /// The flag to set/clear (i.e., /// NTLMSSP_NEGOTIATE_OEM). ///
value bool /// Indicates whether to set (true) or /// clear (false) the specified flag. ///
return void

SetFlags() public method

Sets the flags for this message.
Sets the flags for this message.
public SetFlags ( int flags ) : void
flags int The flags for this message.
return void

ToByteArray() public abstract method

Returns the raw byte representation of this message.
Returns the raw byte representation of this message.
public abstract ToByteArray ( ) : byte[]
return byte[]

Property Details

NtlmsspSignature protected_oe static_oe property

The NTLMSSP "preamble".
The NTLMSSP "preamble".
protected static byte[] NtlmsspSignature
return byte[]

UniEncoding protected_oe static_oe property

protected static string UniEncoding
return string