mirror-ac/server/Types.cs

97 lines
2.8 KiB
C#
Raw Normal View History

2023-09-08 20:41:11 +02:00
using Org.BouncyCastle.Utilities;
using Serilog;
2023-09-02 17:56:46 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace server
{
namespace Types
{
2023-09-08 20:41:11 +02:00
namespace ClientSend
2023-09-02 17:56:46 +02:00
{
2023-09-08 20:41:11 +02:00
struct CLIENT_SEND_PACKET_HEADER
2023-09-02 17:56:46 +02:00
{
2023-09-08 20:41:11 +02:00
public int RequestId;
public int PacketSize;
2023-09-02 17:56:46 +02:00
};
2023-09-08 20:41:11 +02:00
[StructLayout(LayoutKind.Sequential)]
public unsafe struct PACKET_CLIENT_HARDWARE_INFORMATION
{
public fixed char MotherboardSerialNumber[32];
public fixed char DeviceDriver0Serial[32];
}
2023-09-02 17:56:46 +02:00
}
2023-09-08 20:41:11 +02:00
namespace ClientReport
2023-09-02 17:56:46 +02:00
{
[StructLayout(LayoutKind.Sequential)]
public unsafe struct MODULE_VERIFICATION_CHECKSUM_FAILURE
{
public int ReportCode;
public UInt64 ModuleBaseAddress;
public UInt64 ModuleSize;
public fixed char ModuleName[512];
}
public struct PROCESS_THREAD_START_FAILURE
{
public int ReportCode;
public long ThreadId;
public UInt64 StartAddress;
}
public struct PAGE_PROTECTION_FAILURE
{
public int ReportCode;
public UInt64 PageBaseAddress;
public long AllocationProtection;
public long AllocationState;
public long AllocationType;
}
public struct PATTERN_SCAN_FAILURE
{
public int ReportCode;
public int SignatureId;
public UInt64 Address;
}
public struct NMI_CALLBACK_FAILURE
{
public int ReportCode;
public int WereNmisDisabled;
public UInt64 KThreadAddress;
public UInt64 InvalidRip;
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct MODULE_VALIDATION_FAILURE
{
public int ReportCode;
public int ReportType;
public long DriverBaseAddress;
public long DriverSize;
public fixed char ModuleName[128];
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct OPEN_HANDLE_FAILURE_REPORT
{
public int ReportCode;
public int IsKernelHandle;
public uint ProcessId;
public uint ThreadId;
public uint DesiredAccess;
public fixed char ProcessName[64];
}
}
}
}