Exploit databaseDownload repository ZIP
GH-88d8bc551618926a04536090300b4292
dungnm24/cve-2020-0796
Sources for CVE-2020-0796
81 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files30
dungnm24/cve-2020-0796Revision fe7aebbe1789
- ↑..Parent directory
- TraditionalCases/
- MS-WSP_ServerTestSuite.csproj
- MS-WSP_ServerTestSuite.deployment.ptfconfig
- MS-WSP_ServerTestSuite.ptfconfig
- TestCaseAdmin_StatusInvalidParameter.cs
- TestCaseConnectOut_StatusInvalidParameter.cs
- TestCaseFetchValue_StatusInvalidParameterError.cs
- TestCaseFindIndices.cs
- TestCaseFindIndices_StatusInvalidParameter.cs
- TestCaseForQueryNotAssociatedCase.cs
- TestCaseForQueryOut_ClientNotConnectedCase.cs
- TestCaseForQueryOut_CreatingExistingQueryCasee.cs
- TestCaseFreeCursorFor_E_Fail.cs
- TestCaseGetRowsOutFor_E_Fail.cs
- TestCaseGetRowsOutFor_InvalidParameter.cs
- TestCaseGetRowsOut_E_FailErrorWithInvalidBinding.cs
- TestCaseGetRowsetNotify.cs
- TestCaseGetRowsetNotify_StatusInvalidParameter.cs
- TestCaseGetScopeStatistics.cs
- TestCaseGetScopeStatistics_StatusInvalid.cs
- TestCaseQueryAdminMessages.cs
- TestCaseQueryForDifferentQueryStatus.cs
- TestCaseQueryForResultSets.cs
- TestCaseQueryOutExFor_E_Fail.cs
- TestCaseRatioFinishedInFor_E_Fail.cs
- TestCaseSetBindingsError.cs
- TestCaseSetBindingsFor_E_Error.cs
- TestCaseSetScopePrioritization.cs
- TestCaseSetScopePrioritization_StatusInvalidParameter.cs
- WspModelTestBase.cs
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
WindowsProtocolTestSuites/TestSuites/MS-WSP/src/TestSuite/TestCaseAdmin_StatusInvalidParameter.cs
C# · 14,998 bytes// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.1434
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Microsoft.Protocols.TestSuites.WspTS
{
using Microsoft.Protocols.TestTools;
using Microsoft.Protocols.TestTools.Messages.Runtime;
[Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()]
public partial class TestCaseAdmin_StatusInvalidParameter : WspModelTestBase
{
public TestCaseAdmin_StatusInvalidParameter()
{
this.SetSwitch("generatedtestpath", "..\\\\TestSuite");
this.SetSwitch("generatedtestnamespace", "Microsoft.Protocols.TestSuites.WspTS");
this.SetSwitch("graphtimeout", "1000");
this.SetSwitch("statebound", "-1");
this.SetSwitch("stepbound", "6000");
this.SetSwitch("pathbound", "32");
this.SetSwitch("stepsperstatebound", "1024");
}
#region Expect Delegates
public delegate void CPMCiStateInOutResponseDelegate1(uint errorCode);
public delegate void CPMForceMergeInResponseDelegate1(uint errorCode);
public delegate void GetServerPlatformDelegate1(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.SkuOsVersion platform, bool @return);
public delegate void CPMConnectOutResponseDelegate1(uint errorCode);
public delegate void CPMCreateQueryOutResponseDelegate1(uint errorCode);
public delegate void CPMGetQueryStatusOutResponseDelegate1(uint errorCode);
public delegate void CPMGetQueryStatusExOutResponseDelegate1(uint errorCode);
public delegate void CPMRatioFinishedOutResponseDelegate1(uint errorCode);
public delegate void CPMSetBindingsInResponseDelegate1(uint errorCode);
public delegate void CPMGetRowsOutResponseDelegate1(uint errorCode);
public delegate void CPMFetchValueOutResponseDelegate1(uint errorCode);
public delegate void CPMSendNotifyOutResponseDelegate1(uint errorCode);
public delegate void CPMFreeCursorOutResponseDelegate1(uint errorCode);
public delegate void CPMFindIndicesOutResponseDelegate1(uint errorCode);
public delegate void CPMGetRowsetNotifyOutResponseDelegate1(uint errorCode);
public delegate void CPMGetScopeStatisticsOutResponseDelegate1(uint errorCode);
public delegate void CPMSetScopePrioritizationOutResponseDelegate1(uint errorCode);
public delegate void CPMUpdateDocumentsOutResponseDelegate1(uint errorCode);
#endregion
#region Event Metadata
static System.Reflection.MethodBase CPMCiStateInOutInfo = TestManagerHelpers.GetMethodInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMCiStateInOut");
static System.Reflection.EventInfo CPMCiStateInOutResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMCiStateInOutResponse");
static System.Reflection.MethodBase CPMDisconnectInfo = TestManagerHelpers.GetMethodInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMDisconnect");
static System.Reflection.MethodBase GetServerPlatformInfo = TestManagerHelpers.GetMethodInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "GetServerPlatform", typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.SkuOsVersion).MakeByRefType());
static System.Reflection.MethodBase CPMConnectInInfo = TestManagerHelpers.GetMethodInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMConnectIn");
static System.Reflection.MethodBase CPMCreateQueryInInfo = TestManagerHelpers.GetMethodInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMCreateQueryIn", typeof(bool));
static System.Reflection.MethodBase CPMGetQueryStatusInInfo = TestManagerHelpers.GetMethodInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMGetQueryStatusIn", typeof(bool));
static System.Reflection.MethodBase CPMGetQueryStatusExInInfo = TestManagerHelpers.GetMethodInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMGetQueryStatusExIn", typeof(bool));
static System.Reflection.MethodBase CPMRatioFinishedInInfo = TestManagerHelpers.GetMethodInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMRatioFinishedIn", typeof(bool));
static System.Reflection.MethodBase CPMSetBindingsInInfo = TestManagerHelpers.GetMethodInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMSetBindingsIn", typeof(bool), typeof(bool));
static System.Reflection.MethodBase CPMGetRowsInInfo = TestManagerHelpers.GetMethodInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMGetRowsIn", typeof(bool));
static System.Reflection.MethodBase CPMFetchValueInInfo = TestManagerHelpers.GetMethodInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMFetchValueIn", typeof(bool));
static System.Reflection.MethodBase CPMGetNotifyInfo = TestManagerHelpers.GetMethodInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMGetNotify", typeof(bool));
static System.Reflection.MethodBase CPMFreeCursorInInfo = TestManagerHelpers.GetMethodInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMFreeCursorIn", typeof(bool));
static System.Reflection.MethodBase CPMFindIndicesInInfo = TestManagerHelpers.GetMethodInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMFindIndicesIn", typeof(bool));
static System.Reflection.MethodBase CPMGetRowsetNotifyInInfo = TestManagerHelpers.GetMethodInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMGetRowsetNotifyIn", typeof(int), typeof(bool));
static System.Reflection.MethodBase CPMSetScopePrioritizationInInfo = TestManagerHelpers.GetMethodInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMSetScopePrioritizationIn", typeof(uint));
static System.Reflection.MethodBase CPMGetScopeStatisticsInInfo = TestManagerHelpers.GetMethodInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMGetScopeStatisticsIn");
static System.Reflection.EventInfo CPMConnectOutResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMConnectOutResponse");
static System.Reflection.EventInfo CPMCreateQueryOutResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMCreateQueryOutResponse");
static System.Reflection.EventInfo CPMGetQueryStatusOutResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMGetQueryStatusOutResponse");
static System.Reflection.EventInfo CPMGetQueryStatusExOutResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMGetQueryStatusExOutResponse");
static System.Reflection.EventInfo CPMRatioFinishedOutResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMRatioFinishedOutResponse");
static System.Reflection.EventInfo CPMSetBindingsInResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMSetBindingsInResponse");
static System.Reflection.EventInfo CPMGetRowsOutResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMGetRowsOutResponse");
static System.Reflection.EventInfo CPMFetchValueOutResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMFetchValueOutResponse");
static System.Reflection.EventInfo CPMSendNotifyOutResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMSendNotifyOutResponse");
static System.Reflection.EventInfo CPMFreeCursorOutResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMFreeCursorOutResponse");
static System.Reflection.EventInfo CPMFindIndicesOutResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMFindIndicesOutResponse");
static System.Reflection.EventInfo CPMGetRowsetNotifyOutResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMGetRowsetNotifyOutResponse");
static System.Reflection.EventInfo CPMGetScopeStatisticsOutResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMGetScopeStatisticsOutResponse");
static System.Reflection.EventInfo CPMSetScopePrioritizationOutResponseInfo = TestManagerHelpers.GetEventInfo(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter), "CPMSetScopePrioritizationOutResponse");
#endregion
#region Adapter Instances
private Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter IWspAdapterInstance;
#endregion
#region Class Initialization and Cleanup
[Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute()]
public static void ClassInitialize(Microsoft.VisualStudio.TestTools.UnitTesting.TestContext context)
{
PtfTestClassBase.Initialize(context);
}
[Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute()]
public static void ClassCleanup()
{
PtfTestClassBase.Cleanup();
}
#endregion
#region Test Initialization and Cleanup
protected override void TestInitialize()
{
this.InitializeTestManager();
this.IWspAdapterInstance = ((Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter)(this.GetAdapter(typeof(Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp.Adapter.IWspAdapter))));
this.Subscribe(CPMCiStateInOutResponseInfo, this.IWspAdapterInstance);
this.Subscribe(CPMConnectOutResponseInfo, this.IWspAdapterInstance);
this.Subscribe(CPMCreateQueryOutResponseInfo, this.IWspAdapterInstance);
this.Subscribe(CPMGetQueryStatusOutResponseInfo, this.IWspAdapterInstance);
this.Subscribe(CPMGetQueryStatusExOutResponseInfo, this.IWspAdapterInstance);
this.Subscribe(CPMRatioFinishedOutResponseInfo, this.IWspAdapterInstance);
this.Subscribe(CPMSetBindingsInResponseInfo, this.IWspAdapterInstance);
this.Subscribe(CPMGetRowsOutResponseInfo, this.IWspAdapterInstance);
this.Subscribe(CPMFetchValueOutResponseInfo, this.IWspAdapterInstance);
this.Subscribe(CPMSendNotifyOutResponseInfo, this.IWspAdapterInstance);
this.Subscribe(CPMFreeCursorOutResponseInfo, this.IWspAdapterInstance);
this.Subscribe(CPMFindIndicesOutResponseInfo, this.IWspAdapterInstance);
this.Subscribe(CPMGetRowsetNotifyOutResponseInfo, this.IWspAdapterInstance);
this.Subscribe(CPMGetScopeStatisticsOutResponseInfo, this.IWspAdapterInstance);
this.Subscribe(CPMSetScopePrioritizationOutResponseInfo, this.IWspAdapterInstance);
}
protected override void TestCleanup()
{
base.TestCleanup();
this.CleanupTestManager();
}
#endregion
#region Test Starting in S0
[Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()]
[Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("MS-WSP_R631, MS-WSP_R642")]
[Microsoft.VisualStudio.TestTools.UnitTesting.TestCategoryAttribute("CPMCiState")]
public virtual void TestCaseAdmin_StatusInvalidParameterS0()
{
this.Manager.BeginTest("TestCaseAdmin_StatusInvalidParameterS0");
this.Manager.Comment("reaching state \'S0\'");
this.Manager.Comment("executing step \'call CPMCiStateInOut()\'");
this.IWspAdapterInstance.CPMCiStateInOut();
this.Manager.Comment("reaching state \'S1\'");
this.Manager.Comment("checking step \'return CPMCiStateInOut\'");
this.Manager.Comment("reaching state \'S2\'");
this.Manager.ExpectEvent(this.QuiescenceTimeout, true, new ExpectedEvent(TestCaseAdmin_StatusInvalidParameter.CPMCiStateInOutResponseInfo, null, new CPMCiStateInOutResponseDelegate1(this.TestCaseAdmin_StatusInvalidParameterS0CPMCiStateInOutResponseChecker)));
this.Manager.Comment("reaching state \'S3\'");
this.Manager.Comment("executing step \'call CPMDisconnect()\'");
this.IWspAdapterInstance.CPMDisconnect();
this.Manager.Comment("reaching state \'S7\'");
this.Manager.Comment("checking step \'return CPMDisconnect\'");
this.Manager.Comment("reaching state \'S8\'");
this.Manager.EndTest();
}
private void TestCaseAdmin_StatusInvalidParameterS0CPMCiStateInOutResponseChecker(uint errorCode)
{
this.Manager.Comment("checking step \'event CPMCiStateInOutResponse(3221225485)\'");
this.Manager.Assert((errorCode == 3221225485), string.Format("expected \'3221225485\', actual \'{0}\' (errorCode of CPMCiStateInOutResponse, state " +
"S2)", errorCode));
this.Manager.Checkpoint("MS-WSP_R631");
}
#endregion
}
}