Exploit database

GH-ea91ecf629103514d4b348ce44007631

jamf/cve-2020-1206-poc

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2020-1206

3 sources

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

Repository files3

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

TestSuites/BranchCache/src/MS-PCCRTP/Shared/Logger.cs

C# · 1,963 bytes
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Protocols.TestSuites.Pccrtp
{
    using System;
    using Microsoft.Protocols.TestTools;
    using Microsoft.Protocols.TestTools.StackSdk.CommonStack;

    /// <summary>
    /// This class implements all methods of ILogger.
    /// </summary>
    public class Logger : ILogPrinter
    {
        /// <summary>
        /// An instance of ITestSite.
        /// </summary>
        private ITestSite site;

        /// <summary>
        /// Initializes a new instance of the Logger class.
        /// </summary>
        /// <param name="site">An instance of ITestSite.</param>
        public Logger(ITestSite site)
        {
            if (null == site)
            {
                throw new ArgumentNullException("site", "The input parameter (site) is null.");
            }

            this.site = site;
        }

        /// <summary>
        /// The method implements adding the log of warning information.
        /// </summary>
        /// <param name="message">Message reprents the log information.</param>
        public void AddWarning(string message)
        {
            this.site.Log.Add(LogEntryKind.Warning, message);
        }

        /// <summary>
        /// The method implements adding the log information.
        /// </summary>
        /// <param name="message">Message reprents the log information.</param>
        public void AddInfo(string message)
        {
            this.site.Log.Add(LogEntryKind.Comment, message);
        }

        /// <summary>
        /// The method implements adding the log of debug information.
        /// </summary>
        /// <param name="message">Message reprents the log information.</param>
        public void AddDebug(string message)
        {
            this.site.Log.Add(LogEntryKind.Debug, message);
        }
    }
}