Exploit database

GH-88d8bc551618926a04536090300b4292

dungnm24/cve-2020-0796

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2020-0796

81 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files54Next files →

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

WindowsProtocolTestSuites/ProtoSDK/MS-WSP/Structures/CDbProp.cs

C# · 1,699 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
{
    /// <summary>
    /// The CDbProp structure contains a database property. These properties control how queries are interpreted by the GSS.
    /// </summary>
    public struct CDbProp : IWspStructure
    {
        /// <summary>
        /// A 32-bit unsigned integer indicating the property ID.This field uniquely identifies each property in a particular query, but has no other interpretation.
        /// </summary>
        public uint DBPROPID;

        /// <summary>
        /// Property options.This field MUST be set to 0x00000001 if the property is optional and to 0x00000000 otherwise.
        /// </summary>
        public uint DBPROPOPTIONS;

        /// <summary>
        /// Property status.
        /// </summary>
        public uint DBPROPSTATUS;

        /// <summary>
        /// A CDbColId structure that defines the database property being passed.
        /// </summary>
        public CDbColId colid;

        /// <summary>
        /// A CBaseStorageVariant containing the property value.
        /// </summary>
        public CBaseStorageVariant vValue;

        public void FromBytes(WspBuffer buffer)
        {
            throw new NotImplementedException();
        }

        public void ToBytes(WspBuffer buffer)
        {
            buffer.Add(DBPROPID);

            buffer.Add(DBPROPOPTIONS);

            buffer.Add(DBPROPSTATUS);

            colid.ToBytes(buffer);

            vValue.ToBytes(buffer);
        }
    }
}