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 files54
dungnm24/cve-2020-0796Revision fe7aebbe1789
- ↑..Parent directory
- CAggregSet.cs
- CAggregSortKey.cs
- CAggregSpec.cs
- CBaseStorageVariant.cs
- CCategSpec.cs
- CCategorizationSet.cs
- CCategorizationSpec.cs
- CCoercionRestriction.cs
- CColumnGroup.cs
- CColumnGroupArray.cs
- CColumnSet.cs
- CContentRestriction.cs
- CDbColId.cs
- CDbProp.cs
- CDbPropSet.cs
- CFeedbackRestriction.cs
- CFullPropSpec.cs
- CInGroupSortAggregSets.cs
- CInternalPropertyRestriction.cs
- CNatLanguageRestriction.cs
- CNodeRestriction.cs
- CPidMapper.cs
- CProbRestriction.cs
- CPropertyRestriction.cs
- CRangeCategSpec.cs
- CRelDocRestriction.cs
- CRestriction.cs
- CRestrictionArray.cs
- CReuseWhere.cs
- CRowSeekAt.cs
- CRowSeekAtRatio.cs
- CRowSeekByBookmark.cs
- CRowSeekNext.cs
- CRowsetProperties.cs
- CScopeRestriction.cs
- CSort.cs
- CSortAggregSet.cs
- CSortSet.cs
- CTableColumn.cs
- CTableVariant.cs
- CVectorRestriction.cs
- DECIMAL.cs
- RANGEBOUNDARY.cs
- SAFEARRAY.cs
- SAFEARRAYBOUND.cs
- SERIALIZEDPROPERTYVALUE.cs
- SProperty.cs
- VT_BLOB.cs
- VT_BLOB_OBJECT.cs
- VT_BSTR.cs
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
WindowsProtocolTestSuites/ProtoSDK/MS-WSP/Structures/CDbColId.cs
C# · 2,535 bytes// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
namespace Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Wsp
{
public enum CDbColId_eKind_Values : uint
{
/// <summary>
/// vString contains a property name.
/// </summary>
DBKIND_GUID_NAME = 0x00000000,
/// <summary>
/// ulId contains a 4-byte integer indicating the property ID.
/// </summary>
DBKIND_GUID_PROPID = 0x00000001,
}
/// <summary>
/// The CDbColId structure contains a column identifier.
/// </summary>
public struct CDbColId : IWspStructure
{
#region Fields
/// <summary>
/// This field indicates the contents of GUID and vValue.
/// </summary>
public CDbColId_eKind_Values eKind;
/// <summary>
/// The property GUID.
/// </summary>
public Guid GUID;
/// <summary>
/// If eKind is DBKIND_GUID_PROPID, this field contains an unsigned integer specifying the property ID.
/// If eKind is DBKIND_GUID_NAME, this field contains an unsigned integer specifying the number of Unicode characters contained in the vString field.
/// </summary>
public uint ulId;
/// <summary>
/// A non-null-terminated Unicode string representing the property name. It MUST be omitted unless the eKind field is set to DBKIND_GUID_NAME.
/// </summary>
public string vString;
#endregion
#region Constructors
public CDbColId(Guid property, uint value)
{
eKind = CDbColId_eKind_Values.DBKIND_GUID_PROPID;
GUID = property;
ulId = value;
vString = null;
}
public CDbColId(Guid property, string value)
{
eKind = CDbColId_eKind_Values.DBKIND_GUID_NAME;
GUID = property;
ulId = (uint)value.Length;
vString = value;
}
#endregion
public void FromBytes(WspBuffer buffer)
{
throw new NotImplementedException();
}
public void ToBytes(WspBuffer buffer)
{
buffer.Add(eKind);
buffer.Add(GUID, 8);
buffer.Add(ulId);
if (eKind == CDbColId_eKind_Values.DBKIND_GUID_NAME)
{
buffer.AddUnicodeString(vString);
}
}
}
}