mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-04-29 18:27:48 +02:00
SMBServer: Hid internal classes
This commit is contained in:
parent
f71ef6b232
commit
a7af73ae2d
27 changed files with 27 additions and 27 deletions
|
@ -13,7 +13,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB1
|
namespace SMBLibrary.Server.SMB1
|
||||||
{
|
{
|
||||||
public class FileStoreResponseHelper
|
internal class FileStoreResponseHelper
|
||||||
{
|
{
|
||||||
internal static SMB1Command GetCreateDirectoryResponse(SMB1Header header, CreateDirectoryRequest request, ISMBShare share, SMB1ConnectionState state)
|
internal static SMB1Command GetCreateDirectoryResponse(SMB1Header header, CreateDirectoryRequest request, ISMBShare share, SMB1ConnectionState state)
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB1
|
namespace SMBLibrary.Server.SMB1
|
||||||
{
|
{
|
||||||
public class NTCreateHelper
|
internal class NTCreateHelper
|
||||||
{
|
{
|
||||||
internal static SMB1Command GetNTCreateResponse(SMB1Header header, NTCreateAndXRequest request, ISMBShare share, SMB1ConnectionState state)
|
internal static SMB1Command GetNTCreateResponse(SMB1Header header, NTCreateAndXRequest request, ISMBShare share, SMB1ConnectionState state)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB1
|
namespace SMBLibrary.Server.SMB1
|
||||||
{
|
{
|
||||||
public class NTTransactHelper
|
internal class NTTransactHelper
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The client MUST send as many secondary requests as are needed to complete the transfer of the transaction request.
|
/// The client MUST send as many secondary requests as are needed to complete the transfer of the transaction request.
|
||||||
|
|
|
@ -17,7 +17,7 @@ namespace SMBLibrary.Server.SMB1
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Negotiate helper
|
/// Negotiate helper
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class NegotiateHelper
|
internal class NegotiateHelper
|
||||||
{
|
{
|
||||||
internal static NegotiateResponse GetNegotiateResponse(SMB1Header header, NegotiateRequest request, GSSProvider securityProvider, ConnectionState state)
|
internal static NegotiateResponse GetNegotiateResponse(SMB1Header header, NegotiateRequest request, GSSProvider securityProvider, ConnectionState state)
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB1
|
namespace SMBLibrary.Server.SMB1
|
||||||
{
|
{
|
||||||
public class OpenAndXHelper
|
internal class OpenAndXHelper
|
||||||
{
|
{
|
||||||
internal static SMB1Command GetOpenAndXResponse(SMB1Header header, OpenAndXRequest request, ISMBShare share, SMB1ConnectionState state)
|
internal static SMB1Command GetOpenAndXResponse(SMB1Header header, OpenAndXRequest request, ISMBShare share, SMB1ConnectionState state)
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,7 +15,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB1
|
namespace SMBLibrary.Server.SMB1
|
||||||
{
|
{
|
||||||
public class ReadWriteResponseHelper
|
internal class ReadWriteResponseHelper
|
||||||
{
|
{
|
||||||
internal static SMB1Command GetReadResponse(SMB1Header header, ReadRequest request, ISMBShare share, SMB1ConnectionState state)
|
internal static SMB1Command GetReadResponse(SMB1Header header, ReadRequest request, ISMBShare share, SMB1ConnectionState state)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB1
|
namespace SMBLibrary.Server.SMB1
|
||||||
{
|
{
|
||||||
public partial class SMB1FileStoreHelper
|
internal partial class SMB1FileStoreHelper
|
||||||
{
|
{
|
||||||
public static NTStatus GetFileInformation(out QueryInformation result, INTFileStore fileStore, string path, QueryInformationLevel informationLevel, SecurityContext securityContext)
|
public static NTStatus GetFileInformation(out QueryInformation result, INTFileStore fileStore, string path, QueryInformationLevel informationLevel, SecurityContext securityContext)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB1
|
namespace SMBLibrary.Server.SMB1
|
||||||
{
|
{
|
||||||
public partial class SMB1FileStoreHelper
|
internal partial class SMB1FileStoreHelper
|
||||||
{
|
{
|
||||||
// Filename pattern examples:
|
// Filename pattern examples:
|
||||||
// '\Directory' - Get the directory entry
|
// '\Directory' - Get the directory entry
|
||||||
|
|
|
@ -12,7 +12,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB1
|
namespace SMBLibrary.Server.SMB1
|
||||||
{
|
{
|
||||||
public partial class SMB1FileStoreHelper
|
internal partial class SMB1FileStoreHelper
|
||||||
{
|
{
|
||||||
public static NTStatus GetFileSystemInformation(out QueryFSInformation result, INTFileStore fileStore, QueryFSInformationLevel informationLevel)
|
public static NTStatus GetFileSystemInformation(out QueryFSInformation result, INTFileStore fileStore, QueryFSInformationLevel informationLevel)
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB1
|
namespace SMBLibrary.Server.SMB1
|
||||||
{
|
{
|
||||||
public partial class SMB1FileStoreHelper
|
internal partial class SMB1FileStoreHelper
|
||||||
{
|
{
|
||||||
public static NTStatus SetFileInformation(INTFileStore fileStore, object handle, SetInformation information)
|
public static NTStatus SetFileInformation(INTFileStore fileStore, object handle, SetInformation information)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB1
|
namespace SMBLibrary.Server.SMB1
|
||||||
{
|
{
|
||||||
public partial class SMB1FileStoreHelper
|
internal partial class SMB1FileStoreHelper
|
||||||
{
|
{
|
||||||
public static NTStatus CreateDirectory(INTFileStore fileStore, string path, SecurityContext securityContext)
|
public static NTStatus CreateDirectory(INTFileStore fileStore, string path, SecurityContext securityContext)
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB1
|
namespace SMBLibrary.Server.SMB1
|
||||||
{
|
{
|
||||||
public partial class ServerResponseHelper
|
internal partial class ServerResponseHelper
|
||||||
{
|
{
|
||||||
internal static SMB1Command GetCloseResponse(SMB1Header header, CloseRequest request, ISMBShare share, SMB1ConnectionState state)
|
internal static SMB1Command GetCloseResponse(SMB1Header header, CloseRequest request, ISMBShare share, SMB1ConnectionState state)
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,7 +17,7 @@ namespace SMBLibrary.Server.SMB1
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Session Setup helper
|
/// Session Setup helper
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class SessionSetupHelper
|
internal class SessionSetupHelper
|
||||||
{
|
{
|
||||||
internal static SMB1Command GetSessionSetupResponse(SMB1Header header, SessionSetupAndXRequest request, GSSProvider securityProvider, SMB1ConnectionState state)
|
internal static SMB1Command GetSessionSetupResponse(SMB1Header header, SessionSetupAndXRequest request, GSSProvider securityProvider, SMB1ConnectionState state)
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB1
|
namespace SMBLibrary.Server.SMB1
|
||||||
{
|
{
|
||||||
public class Transaction2SubcommandHelper
|
internal class Transaction2SubcommandHelper
|
||||||
{
|
{
|
||||||
internal static Transaction2FindFirst2Response GetSubcommandResponse(SMB1Header header, Transaction2FindFirst2Request subcommand, ISMBShare share, SMB1ConnectionState state)
|
internal static Transaction2FindFirst2Response GetSubcommandResponse(SMB1Header header, Transaction2FindFirst2Request subcommand, ISMBShare share, SMB1ConnectionState state)
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB1
|
namespace SMBLibrary.Server.SMB1
|
||||||
{
|
{
|
||||||
public class TransactionHelper
|
internal class TransactionHelper
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The client MUST send as many secondary requests as are needed to complete the transfer of the transaction request.
|
/// The client MUST send as many secondary requests as are needed to complete the transfer of the transaction request.
|
||||||
|
|
|
@ -14,7 +14,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB1
|
namespace SMBLibrary.Server.SMB1
|
||||||
{
|
{
|
||||||
public class TransactionSubcommandHelper
|
internal class TransactionSubcommandHelper
|
||||||
{
|
{
|
||||||
internal static TransactionTransactNamedPipeResponse GetSubcommandResponse(SMB1Header header, TransactionTransactNamedPipeRequest subcommand, ISMBShare share, SMB1ConnectionState state)
|
internal static TransactionTransactNamedPipeResponse GetSubcommandResponse(SMB1Header header, TransactionTransactNamedPipeRequest subcommand, ISMBShare share, SMB1ConnectionState state)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB1
|
namespace SMBLibrary.Server.SMB1
|
||||||
{
|
{
|
||||||
public class TreeConnectHelper
|
internal class TreeConnectHelper
|
||||||
{
|
{
|
||||||
internal static SMB1Command GetTreeConnectResponse(SMB1Header header, TreeConnectAndXRequest request, SMB1ConnectionState state, NamedPipeShare services, ShareCollection shares)
|
internal static SMB1Command GetTreeConnectResponse(SMB1Header header, TreeConnectAndXRequest request, SMB1ConnectionState state, NamedPipeShare services, ShareCollection shares)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB2
|
namespace SMBLibrary.Server.SMB2
|
||||||
{
|
{
|
||||||
public class CloseHelper
|
internal class CloseHelper
|
||||||
{
|
{
|
||||||
internal static SMB2Command GetCloseResponse(CloseRequest request, ISMBShare share, SMB2ConnectionState state)
|
internal static SMB2Command GetCloseResponse(CloseRequest request, ISMBShare share, SMB2ConnectionState state)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB2
|
namespace SMBLibrary.Server.SMB2
|
||||||
{
|
{
|
||||||
public class CreateHelper
|
internal class CreateHelper
|
||||||
{
|
{
|
||||||
internal static SMB2Command GetCreateResponse(CreateRequest request, ISMBShare share, SMB2ConnectionState state)
|
internal static SMB2Command GetCreateResponse(CreateRequest request, ISMBShare share, SMB2ConnectionState state)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB2
|
namespace SMBLibrary.Server.SMB2
|
||||||
{
|
{
|
||||||
public class IOCtlHelper
|
internal class IOCtlHelper
|
||||||
{
|
{
|
||||||
internal static SMB2Command GetIOCtlResponse(IOCtlRequest request, ISMBShare share, SMB2ConnectionState state)
|
internal static SMB2Command GetIOCtlResponse(IOCtlRequest request, ISMBShare share, SMB2ConnectionState state)
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace SMBLibrary.Server.SMB2
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Negotiate helper
|
/// Negotiate helper
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class NegotiateHelper
|
internal class NegotiateHelper
|
||||||
{
|
{
|
||||||
public const string SMB2002Dialect = "SMB 2.002";
|
public const string SMB2002Dialect = "SMB 2.002";
|
||||||
public const string SMB2xxxDialect = "SMB 2.???";
|
public const string SMB2xxxDialect = "SMB 2.???";
|
||||||
|
|
|
@ -12,7 +12,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB2
|
namespace SMBLibrary.Server.SMB2
|
||||||
{
|
{
|
||||||
public class QueryDirectoryHelper
|
internal class QueryDirectoryHelper
|
||||||
{
|
{
|
||||||
internal static SMB2Command GetQueryDirectoryResponse(QueryDirectoryRequest request, ISMBShare share, SMB2ConnectionState state)
|
internal static SMB2Command GetQueryDirectoryResponse(QueryDirectoryRequest request, ISMBShare share, SMB2ConnectionState state)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB2
|
namespace SMBLibrary.Server.SMB2
|
||||||
{
|
{
|
||||||
public class QueryInfoHelper
|
internal class QueryInfoHelper
|
||||||
{
|
{
|
||||||
internal static SMB2Command GetQueryInfoResponse(QueryInfoRequest request, ISMBShare share, SMB2ConnectionState state)
|
internal static SMB2Command GetQueryInfoResponse(QueryInfoRequest request, ISMBShare share, SMB2ConnectionState state)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB2
|
namespace SMBLibrary.Server.SMB2
|
||||||
{
|
{
|
||||||
public class ReadWriteResponseHelper
|
internal class ReadWriteResponseHelper
|
||||||
{
|
{
|
||||||
internal static SMB2Command GetReadResponse(ReadRequest request, ISMBShare share, SMB2ConnectionState state)
|
internal static SMB2Command GetReadResponse(ReadRequest request, ISMBShare share, SMB2ConnectionState state)
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@ namespace SMBLibrary.Server.SMB2
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Session Setup helper
|
/// Session Setup helper
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class SessionSetupHelper
|
internal class SessionSetupHelper
|
||||||
{
|
{
|
||||||
internal static SMB2Command GetSessionSetupResponse(SessionSetupRequest request, GSSProvider securityProvider, SMB2ConnectionState state)
|
internal static SMB2Command GetSessionSetupResponse(SessionSetupRequest request, GSSProvider securityProvider, SMB2ConnectionState state)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB2
|
namespace SMBLibrary.Server.SMB2
|
||||||
{
|
{
|
||||||
public class SetInfoHelper
|
internal class SetInfoHelper
|
||||||
{
|
{
|
||||||
internal static SMB2Command GetSetInfoResponse(SetInfoRequest request, ISMBShare share, SMB2ConnectionState state)
|
internal static SMB2Command GetSetInfoResponse(SetInfoRequest request, ISMBShare share, SMB2ConnectionState state)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ using Utilities;
|
||||||
|
|
||||||
namespace SMBLibrary.Server.SMB2
|
namespace SMBLibrary.Server.SMB2
|
||||||
{
|
{
|
||||||
public class TreeConnectHelper
|
internal class TreeConnectHelper
|
||||||
{
|
{
|
||||||
internal static SMB2Command GetTreeConnectResponse(TreeConnectRequest request, SMB2ConnectionState state, NamedPipeShare services, ShareCollection shares)
|
internal static SMB2Command GetTreeConnectResponse(TreeConnectRequest request, SMB2ConnectionState state, NamedPipeShare services, ShareCollection shares)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue