using Org.BouncyCastle.Utilities; using Serilog; 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 { namespace ClientSend { struct CLIENT_SEND_PACKET_HEADER { public int RequestId; public int PacketSize; }; [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public unsafe struct PACKET_CLIENT_HARDWARE_INFORMATION { [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)] public string MotherboardSerialNumber; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)] public string DeviceDriver0Serial; } } namespace ClientReport { [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public unsafe struct PROCESS_MODULE_INTEGRITY_CHECK_FAILURE { public int ReportCode; public UInt64 ModuleBaseAddress; public UInt64 ModuleSize; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)] public string ModuleName; } 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, CharSet = CharSet.Ansi)] public unsafe struct MODULE_VALIDATION_FAILURE { public int ReportCode; public int ReportType; public long DriverBaseAddress; public long DriverSize; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)] public string ModuleName; } [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public unsafe struct OPEN_HANDLE_FAILURE_REPORT { public int ReportCode; public int IsKernelHandle; public uint ProcessId; public uint ThreadId; public uint DesiredAccess; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)] public string processName; } } } }