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 files19
jamf/cve-2020-1206-pocRevision 9e917e593af3

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

ProtoSDK/FileAccessService/FileServiceServerSession.cs

C# · 1,871 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;
using Microsoft.Protocols.TestTools.StackSdk.Security.Sspi;
using System.Collections.ObjectModel;

namespace Microsoft.Protocols.TestTools.StackSdk.FileAccessService
{
    /// <summary>
    /// An authenticated context that is established between am SMB 2.0 
    /// Protocol client and an SMB 2.0 Protocol server over an SMB 2.0 
    /// Protocol connection for a specific security principal. There 
    /// could be multiple active sessions over a single SMB 2.0 Protocol
    /// connection. The SessionId field distinguishes the various sessions.
    /// </summary>
    public interface IFileServiceServerSession
    {
        #region  Properties

        /// <summary>
        /// The connection associated with this session.
        /// </summary>
        IFileServiceServerConnection Connection
        {
            get;
        }


        /// <summary>
        /// The 16-byte session key associated with this session, as obtained from the authentication packages 
        /// after successful authentication.
        /// </summary>
        byte[] SessionKey
        {
            get;
        }


        /// <summary>
        /// The 16-byte session key associated with this session which is used in SMB only.
        /// </summary>
        byte[] SessionKey4Smb
        {
            get;
        }


        /// <summary>
        /// All the tree connects in this session.
        /// </summary>
        ReadOnlyCollection<IFileServiceServerTreeConnect> TreeConnectTable
        {
            get;
        }


        /// <summary>
        /// Session Id of the Session
        /// </summary>
        long SessionId
        {
            get;
        }
        
        #endregion
    }
}