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 files13

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

WindowsProtocolTestSuites/ProtoSDK/MS-SMB2/Client/Smb2ClientGlobalConfig.cs

C# · 1,580 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.Smb2
{
    /// <summary>
    /// Contains config about global context
    /// </summary>
    public class Smb2ClientGlobalConfig
    {
        /// <summary>
        /// A Boolean that, if set, indicates that this node requires that messages MUST be signed 
        /// if the message is sent with a user security context that is neither anonymous nor guest.
        /// If not set, this node does not require that any messages be signed, but MAY still choose
        /// to do so if the other node requires it
        /// </summary>
        public bool RequireMessageSigning
        {
            get
            {
                return true;
            }
        }

        public TimeSpan Timeout
        {
            get
            {
                return TimeSpan.FromSeconds(10);
            }
        }

        public bool ImplementedV2002
        {
            get
            {
                return true;
            }
        }

        public bool ImplementedV21
        {
            get
            {
                return true;
            }
        }

        public bool MaySignRequest
        {
            get
            {
                return false;
            }
        }

        public bool MayReuseConnection
        {
            get
            {
                return false;
            }
        }
    }
}