mirror of
https://github.com/donnaskiez/ac.git
synced 2024-11-21 22:24:08 +01:00
e
This commit is contained in:
parent
87d1b66fd9
commit
5eab151a2a
4 changed files with 16 additions and 24 deletions
|
@ -59,23 +59,23 @@ namespace server
|
|||
{
|
||||
for (int i = 0; i < 32; i++)
|
||||
{
|
||||
string_1[i] = _header.motherboard_serial_number[i];
|
||||
string_1[i] = (char)_buffer[16+i];
|
||||
}
|
||||
|
||||
for (int i=0;i<32;i++)
|
||||
{
|
||||
string_2[i] = _header.device_drive_0_serial[i];
|
||||
string_2[i] = (char)_buffer[16 + 32 + i];
|
||||
}
|
||||
}
|
||||
|
||||
string test1 = new string(string_1);
|
||||
string test2 = new string(string_2);
|
||||
|
||||
_logger.Information("SteamID: {0}, MoboSerial: {2}, DriveSerial: {3}, Message type: {1}",
|
||||
_logger.Information("SteamID: {0:x}, MoboSerial: {2:x}, DriveSerial: {3:x}, Message type: {1:x}",
|
||||
_header.steam64_id,
|
||||
_header.message_type,
|
||||
test1,
|
||||
test2
|
||||
string_1,
|
||||
string_2
|
||||
);
|
||||
|
||||
|
||||
|
@ -98,7 +98,7 @@ namespace server
|
|||
|
||||
unsafe private REPORT_PACKET_HEADER GetReportType()
|
||||
{
|
||||
return Helper.BytesToStructure<REPORT_PACKET_HEADER>(ref _buffer, sizeof(PACKET_HEADER));
|
||||
return Helper.BytesToStructure<REPORT_PACKET_HEADER>(ref _buffer, 80);
|
||||
}
|
||||
|
||||
unsafe private void HandleReportMessage(int reportId)
|
||||
|
@ -106,9 +106,9 @@ namespace server
|
|||
_logger.Information("Report id: {0}", reportId);
|
||||
|
||||
OPEN_HANDLE_FAILURE_REPORT openHandleFailure =
|
||||
Helper.BytesToStructure<Types.Reports.OPEN_HANDLE_FAILURE_REPORT>(ref _buffer, sizeof(PACKET_HEADER));
|
||||
Helper.BytesToStructure<Types.Reports.OPEN_HANDLE_FAILURE_REPORT>(ref _buffer, 80);
|
||||
|
||||
_logger.Information("Report code: {0}, Process Name: {4} ProcessID: {1:x}, ThreadId: {2:x}, DesiredAccess{3:x}",
|
||||
_logger.Information("Report code: {0}, ProcessID: {1:x}, ThreadId: {2:x}, DesiredAccess{3:x}",
|
||||
openHandleFailure.ReportCode,
|
||||
openHandleFailure.ProcessId,
|
||||
openHandleFailure.ThreadId,
|
||||
|
|
|
@ -74,23 +74,10 @@ namespace global
|
|||
global::headers::PIPE_PACKET_HEADER header;
|
||||
header.message_type = REPORT_PACKET_ID;
|
||||
header.steam64_id = TEST_STEAM_64_ID;
|
||||
memcpy( &header.system_information.drive_0_serial, &this->system_information->drive_0_serial, sizeof(this->system_information->drive_0_serial) );
|
||||
memcpy( &header.system_information.motherboard_serial, &this->system_information->motherboard_serial, sizeof( this->system_information->motherboard_serial ) );
|
||||
|
||||
memcpy(
|
||||
header.system_information.drive_0_serial,
|
||||
this->system_information->drive_0_serial,
|
||||
sizeof(this->system_information->drive_0_serial) );
|
||||
|
||||
memcpy(
|
||||
header.system_information.motherboard_serial,
|
||||
this->system_information->motherboard_serial,
|
||||
sizeof( this->system_information->motherboard_serial ) );
|
||||
|
||||
memcpy(
|
||||
this->report_buffer,
|
||||
&header,
|
||||
sizeof( global::headers::PIPE_PACKET_HEADER ) );
|
||||
|
||||
global::headers::PIPE_PACKET_HEADER* test = ( global::headers::PIPE_PACKET_HEADER* )this->report_buffer;
|
||||
memcpy( &this->report_buffer, &header, sizeof( global::headers::PIPE_PACKET_HEADER ) );
|
||||
memcpy( PVOID( ( UINT64 )this->report_buffer + sizeof( global::headers::PIPE_PACKET_HEADER ) ), Report, sizeof( T ) );
|
||||
this->pipe->WriteToPipe( this->report_buffer, sizeof(T) + sizeof( global::headers::PIPE_PACKET_HEADER ) );
|
||||
RtlZeroMemory( this->report_buffer, REPORT_BUFFER_SIZE );
|
||||
|
|
|
@ -31,6 +31,10 @@ DWORD WINAPI Init(HINSTANCE hinstDLL)
|
|||
global::headers::SYSTEM_INFORMATION system_information;
|
||||
kmanager.RequestHardwareInformation( &system_information );
|
||||
|
||||
|
||||
LOG_INFO( "drive serial dioctl: %s", system_information.drive_0_serial );
|
||||
LOG_INFO( "mobo serial dioctl: %s", system_information.motherboard_serial );
|
||||
|
||||
client_interface->UpdateSystemInformation( &system_information );
|
||||
|
||||
while ( !GetAsyncKeyState( VK_DELETE ) )
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "pipe.h"
|
||||
|
||||
#include "common.h"
|
||||
#include <intrin.h>
|
||||
|
||||
global::Pipe::Pipe( LPTSTR PipeName )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue