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 files26
dungnm24/cve-2020-0796Revision fe7aebbe1789
- ↑..Parent directory
- bin/
- obj/
- AccountCredential.cs
- CertContext.cs
- CertificateCredential.cs
- ClientSecurityContext.cs
- Consts.cs
- CredSspCred.cs
- Enums.cs
- IDtlsClientSecurityContext.cs
- IDtlsServerSecurityContext.cs
- MachineAccountCredential.cs
- SecurityBuffer.cs
- SecurityConfig.cs
- SecurityContext.cs
- SecurityPackageContextIssuerListInfo.cs
- SecurityPackageContextKeyInfo.cs
- SecurityPackageContextSizes.cs
- SecurityPackageInformation.cs
- ServerSecurityContext.cs
- SspiClientSecurityConfig.cs
- SspiException.cs
- SspiLib.csproj
- SspiServerSecurityConfig.cs
- SspiStructures.cs
- SspiUtility.cs
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
WindowsProtocolTestSuites/ProtoSDK/SspiLib/MachineAccountCredential.cs
C# · 3,731 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.Security.SspiLib
{
/// <summary>
/// MachineAccountCredential contains credential (DomainName, MachineName, AccountName, Password)
/// used by a machine.
/// </summary>
public class MachineAccountCredential : AccountCredential
{
/// <summary>
/// Machine name
/// </summary>
private string machineName;
/// <summary>
/// Initialize an instance of MachineAccountCredential class
/// with machine name and password
/// </summary>
/// <param name="domainName">
/// The domain name.
/// </param>
/// <param name="machineName">
/// The account name. In
/// Windows, all machine account names are the name of
/// the machine with a $ (dollar sign) appended.
/// </param>
/// <param name="machinePassword">
/// The password of the machine account.
/// </param>
/// <exception cref="ArgumentNullException">
/// Thrown when domainName, machineName or machinePassword is null.
/// </exception>
public MachineAccountCredential(string domainName, string machineName, string machinePassword) :
base(domainName, machineName + '$', machinePassword)
{
if (domainName == null)
{
throw new ArgumentNullException("domainName");
}
if (machineName == null)
{
throw new ArgumentNullException("machineName");
}
if (machinePassword == null)
{
throw new ArgumentNullException("machinePassword");
}
this.machineName = machineName;
}
/// <summary>
/// Initialize an instance of MachineAccountCredential class
/// </summary>
/// <param name="domainName">
/// Nrpc server domain name
/// </param>
/// <param name="machineName">
/// Nrpc client machine name
/// </param>
/// <param name="accountName">
/// Account name, such as trusted domain name or the name of
/// the machine with a $ (dollar sign) appended.
/// </param>
/// <param name="accountPassword">
/// Password of the account
/// </param>
/// <exception cref="ArgumentNullException">
/// Thrown when domainName, machineName, accountName or accountPassword is null.
/// </exception>
public MachineAccountCredential(
string domainName,
string machineName,
string accountName,
string accountPassword) :
base(domainName, accountName, accountPassword)
{
if (domainName == null)
{
throw new ArgumentNullException("domainName");
}
if (machineName == null)
{
throw new ArgumentNullException("machineName");
}
if (accountName == null)
{
throw new ArgumentNullException("accountName");
}
if (accountPassword == null)
{
throw new ArgumentNullException("accountPassword");
}
this.machineName = machineName;
}
/// <summary>
/// Machine name.
/// </summary>
public string MachineName
{
get
{
return machineName;
}
}
}
}