Moved NTLM code to Authentication\NTLM

This commit is contained in:
Tal Aloni 2017-02-15 15:32:45 +02:00
parent 6c5600d4fd
commit dbca07e803
20 changed files with 30 additions and 26 deletions

View file

@ -9,7 +9,7 @@ using System.Collections.Generic;
using System.Text;
using Utilities;
namespace SMBLibrary.Authentication
namespace SMBLibrary.Authentication.NTLM
{
public class AVPairUtils
{

View file

@ -9,7 +9,7 @@ using System.Collections.Generic;
using System.Text;
using Utilities;
namespace SMBLibrary.Authentication
namespace SMBLibrary.Authentication.NTLM
{
public class AuthenticationMessageUtils
{

View file

@ -12,7 +12,7 @@ using System.Security.Cryptography;
using System.Text;
using Utilities;
namespace SMBLibrary.Authentication
namespace SMBLibrary.Authentication.NTLM
{
public class NTLMCryptography
{

View file

@ -9,7 +9,7 @@ using System.Collections.Generic;
using System.Text;
using Utilities;
namespace SMBLibrary.Authentication
namespace SMBLibrary.Authentication.NTLM
{
/// <summary>
/// [MS-NLMP] AUTHENTICATE_MESSAGE (Type 3 Message)

View file

@ -9,7 +9,7 @@ using System.Collections.Generic;
using System.Text;
using Utilities;
namespace SMBLibrary.Authentication
namespace SMBLibrary.Authentication.NTLM
{
/// <summary>
/// [MS-NLMP] CHALLENGE_MESSAGE (Type 2 Message)

View file

@ -1,5 +1,5 @@
namespace SMBLibrary.Authentication
namespace SMBLibrary.Authentication.NTLM
{
public enum AVPairKey : ushort
{

View file

@ -1,5 +1,5 @@
namespace SMBLibrary.Authentication
namespace SMBLibrary.Authentication.NTLM
{
public enum MessageTypeName : uint
{

View file

@ -1,6 +1,6 @@
using System;
namespace SMBLibrary.Authentication
namespace SMBLibrary.Authentication.NTLM
{
[Flags]
public enum NegotiateFlags : uint

View file

@ -9,7 +9,7 @@ using System.Collections.Generic;
using System.Text;
using Utilities;
namespace SMBLibrary.Authentication
namespace SMBLibrary.Authentication.NTLM
{
/// <summary>
/// [MS-NLMP] 2.2.2.10 - VERSION

View file

@ -9,7 +9,7 @@ using System.Collections.Generic;
using System.Text;
using Utilities;
namespace SMBLibrary.Authentication
namespace SMBLibrary.Authentication.NTLM
{
/// <summary>
/// NTLMv2_CLIENT_CHALLENGE

View file

@ -9,7 +9,7 @@ using System.Collections.Generic;
using System.Text;
using Utilities;
namespace SMBLibrary.Authentication
namespace SMBLibrary.Authentication.NTLM
{
/// <summary>
/// [MS-NLMP] NEGOTIATE_MESSAGE (Type 1 Message)

View file

@ -31,23 +31,23 @@
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="Authentication\AuthenticateMessage\AuthenticateMessage.cs" />
<Compile Include="Authentication\AuthenticateMessage\AuthenticationMessageUtils.cs" />
<Compile Include="Authentication\AuthenticateMessage\AVPairUtils.cs" />
<Compile Include="Authentication\AuthenticateMessage\ChallengeMessage.cs" />
<Compile Include="Authentication\AuthenticateMessage\Enums\AVPairKey.cs" />
<Compile Include="Authentication\AuthenticateMessage\Enums\MessageTypeName.cs" />
<Compile Include="Authentication\AuthenticateMessage\Enums\NegotiateFlags.cs" />
<Compile Include="Authentication\AuthenticateMessage\NegotiateMessage.cs" />
<Compile Include="Authentication\AuthenticateMessage\NTLMv2ClientChallenge.cs" />
<Compile Include="Authentication\AuthenticateMessage\NTLMVersion.cs" />
<Compile Include="Authentication\GSSAPI\DerEncodingHelper.cs" />
<Compile Include="Authentication\GSSAPI\GSSAPIHelper.cs" />
<Compile Include="Authentication\GSSAPI\SimpleProtectedNegotiationToken.cs" />
<Compile Include="Authentication\GSSAPI\SimpleProtectedNegotiationTokenInit.cs" />
<Compile Include="Authentication\GSSAPI\SimpleProtectedNegotiationTokenResponse.cs" />
<Compile Include="Authentication\MD4.cs" />
<Compile Include="Authentication\NTLMCryptography.cs" />
<Compile Include="Authentication\NTLM\Helpers\AuthenticationMessageUtils.cs" />
<Compile Include="Authentication\NTLM\Helpers\AVPairUtils.cs" />
<Compile Include="Authentication\NTLM\Helpers\MD4.cs" />
<Compile Include="Authentication\NTLM\Helpers\NTLMCryptography.cs" />
<Compile Include="Authentication\NTLM\Structures\AuthenticateMessage.cs" />
<Compile Include="Authentication\NTLM\Structures\ChallengeMessage.cs" />
<Compile Include="Authentication\NTLM\Structures\Enums\AVPairKey.cs" />
<Compile Include="Authentication\NTLM\Structures\Enums\MessageTypeName.cs" />
<Compile Include="Authentication\NTLM\Structures\Enums\NegotiateFlags.cs" />
<Compile Include="Authentication\NTLM\Structures\NegotiateMessage.cs" />
<Compile Include="Authentication\NTLM\Structures\NTLMv2ClientChallenge.cs" />
<Compile Include="Authentication\NTLM\Structures\NTLMVersion.cs" />
<Compile Include="Client\SMBClient.cs" />
<Compile Include="Enums\NTStatus.cs" />
<Compile Include="Enums\SMBTransportType.cs" />

View file

@ -7,7 +7,7 @@
using System;
using System.Collections.Generic;
using System.Text;
using SMBLibrary.Authentication;
using SMBLibrary.Authentication.NTLM;
namespace SMBLibrary.Server
{

View file

@ -9,6 +9,7 @@ using System.Collections.Generic;
using System.Text;
using Utilities;
using SMBLibrary.Authentication;
using SMBLibrary.Authentication.NTLM;
namespace SMBLibrary.Server
{

View file

@ -8,6 +8,7 @@ using System;
using System.Collections.Generic;
using System.Text;
using SMBLibrary.Authentication;
using SMBLibrary.Authentication.NTLM;
using SMBLibrary.SMB1;
using Utilities;

View file

@ -8,6 +8,7 @@ using System;
using System.Collections.Generic;
using System.Text;
using SMBLibrary.Authentication;
using SMBLibrary.Authentication.NTLM;
using SMBLibrary.SMB1;
using Utilities;

View file

@ -7,6 +7,7 @@
using System;
using System.Collections.Generic;
using SMBLibrary.Authentication;
using SMBLibrary.Authentication.NTLM;
using SMBLibrary.SMB2;
using Utilities;

View file

@ -8,7 +8,7 @@ using System;
using System.Collections.Generic;
using System.Text;
using Utilities;
using SMBLibrary.Authentication;
using SMBLibrary.Authentication.NTLM;
namespace SMBLibrary
{

View file

@ -9,7 +9,7 @@ using System.Collections.Generic;
using System.Net;
using System.Text;
using Utilities;
using SMBLibrary.Authentication;
using SMBLibrary.Authentication.NTLM;
using SMBLibrary.Win32.Security;
using Microsoft.Win32;