Exploit databaseDownload repository ZIP
GH-ea91ecf629103514d4b348ce44007631
jamf/cve-2020-1206-poc
Sources for CVE-2020-1206
3 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files26
jamf/cve-2020-1206-pocRevision 9e917e593af3
- ↑..Parent directory
- FsccFileFullEaInformation.cs
- Smb2CreateAllocationSize.cs
- Smb2CreateAppInstanceId.cs
- Smb2CreateAppInstanceVersion.cs
- Smb2CreateContextRequest.cs
- Smb2CreateContextResponse.cs
- Smb2CreateDurableHandleReconnect.cs
- Smb2CreateDurableHandleReconnectV2.cs
- Smb2CreateDurableHandleRequest.cs
- Smb2CreateDurableHandleRequestV2.cs
- Smb2CreateDurableHandleResponse.cs
- Smb2CreateDurableHandleResponseV2.cs
- Smb2CreateEaBuffer.cs
- Smb2CreateQueryMaximalAccessRequest.cs
- Smb2CreateQueryMaximalAccessRequestEmpty.cs
- Smb2CreateQueryMaximalAccessResponse.cs
- Smb2CreateQueryOnDiskId.cs
- Smb2CreateQueryOnDiskIdResponse.cs
- Smb2CreateRequestLease.cs
- Smb2CreateRequestLeaseV2.cs
- Smb2CreateResponseLease.cs
- Smb2CreateResponseLeaseV2.cs
- Smb2CreateSdBuffer.cs
- Smb2CreateSvhdxOpenDeviceContext.cs
- Smb2CreateSvhdxOpenDeviceContextResponse.cs
- Smb2CreateTimewrapToken.cs
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
ProtoSDK/MS-SMB2/DataTypes/Smb2CreateSvhdxOpenDeviceContextResponse.cs
C# · 4,567 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>
/// The SVHDX_OPEN_DEVICE_CONTEXT packet is sent by the server in response to open the shared virtual disk request.
/// </summary>
public class Smb2CreateSvhdxOpenDeviceContextResponse : Smb2CreateContextResponse
{
/// <summary>
/// The version of the create context. It MUST be set to the highest supported version of the protocol.
/// </summary>
public uint Version;
/// <summary>
/// A Boolean value, where zero represents FALSE and nonzero represents TRUE.
/// </summary>
public bool HasInitiatorId;
/// <summary>
/// A GUID that optionally identifies the initiator of the open request.
/// </summary>
public Guid InitiatorId;
/// <summary>
/// Reserved. The client SHOULD set this field to 0x00000000, and the server MUST ignore it on receipt.
/// </summary>
public uint Flags;
/// <summary>
/// This field is used to indicate which component has originated or issued the operation.
/// </summary>
public uint OriginatorFlags;
/// <summary>
/// A 64-bit value assigned by the client for an outgoing request. The server MUST ignore it on receipt.
/// </summary>
public ulong OpenRequestId;
/// <summary>
/// The length, in bytes, of the InitiatorHostName, including the null termination.
/// </summary>
public ushort InitiatorHostNameLength;
/// <summary>
/// A 126-byte buffer containing a null-terminated Unicode UTF-16 string that specifies the computer name on which the initiator resides.
/// </summary>
public string InitiatorHostName;
}
/// <summary>
/// The SVHDX_OPEN_DEVICE_CONTEXT_V2 packet is sent by the server in response to open the shared virtual disk request.
/// </summary>
public class Smb2CreateSvhdxOpenDeviceContextResponseV2 : Smb2CreateContextResponse
{
/// <summary>
/// The version of the create context. It MUST be set to the highest supported version of the protocol.
/// </summary>
public uint Version;
/// <summary>
/// A Boolean value, where zero represents FALSE and nonzero represents TRUE.
/// </summary>
public bool HasInitiatorId;
/// <summary>
/// A GUID that optionally identifies the initiator of the open request.
/// </summary>
public Guid InitiatorId;
/// <summary>
/// Reserved. The client SHOULD set this field to 0x00000000, and the server MUST ignore it on receipt.
/// </summary>
public uint Flags;
/// <summary>
/// This field is used to indicate which component has originated or issued the operation.
/// </summary>
public uint OriginatorFlags;
/// <summary>
/// A 64-bit value assigned by the client for an outgoing request. The server MUST ignore it on receipt.
/// </summary>
public ulong OpenRequestId;
/// <summary>
/// The length, in bytes, of the InitiatorHostName, including the null termination.
/// </summary>
public ushort InitiatorHostNameLength;
/// <summary>
/// A 126-byte buffer containing a null-terminated Unicode UTF-16 string that specifies the computer name on which the initiator resides.
/// </summary>
public string InitiatorHostName;
/// <summary>
/// A field that indicates whether ServerVersion, VirtualSectorSize, PhysicalSectorSize and VirtualSize fields are updated
/// </summary>
public uint VirtualDiskPropertiesInitialized;
/// <summary>
/// The current version of the protocol running on the server
/// </summary>
public uint ServerServiceVersion;
/// <summary>
/// The virtual sector size of the virtual disk
/// </summary>
public uint VirtualSectorSize;
/// <summary>
/// The physical sector size of the virtual disk
/// </summary>
public uint PhysicalSectorSize;
/// <summary>
/// The current length of the virtual disk, in bytes
/// </summary>
public ulong VirtualSize;
}
}