Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kernel-csgo-usermode/definitions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ typedef struct _INFO_STRUCT
ULONG process_id;
ULONG client_base;
ULONG address;
ULONG buffer;
void* buffer;
ULONG size;
}INFO_STRUCT, * PINFO_STRUCT;
2 changes: 1 addition & 1 deletion kernel-csgo-usermode/driver_control.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace driver_control
info.code = CODE_WRITE_MEMORY;
info.process_id = process_id;
info.address = address;
info.buffer = buffer;
info.buffer = &buffer;
info.size = sizeof(t);

hook::call_hook(&info);
Expand Down
2 changes: 1 addition & 1 deletion kernel-csgo/definitions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ typedef struct _INFO_STRUCT
ULONG process_id;
ULONG client_base;
ULONG address;
ULONG buffer;
void* buffer;
ULONG size;
}INFO_STRUCT, * PINFO_STRUCT;
2 changes: 1 addition & 1 deletion kernel-csgo/dispatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void dispatch::handler(void* info_struct)
PEPROCESS target_process = NULL;
if (NT_SUCCESS(PsLookupProcessByProcessId((HANDLE)info->process_id, &target_process)))
{
memory::write_memory(target_process, &info->buffer, (void*)info->address, info->size);
memory::write_memory(target_process, info->buffer, (void*)info->address, info->size);
}
}
}
Expand Down