MCPcopy Create free account
hub / github.com/Spuckwaffel/Kernel-Thread-Driver / write_virtual_memory

Function write_virtual_memory

Driver/utilities.h:91–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91NTSTATUS write_virtual_memory(ULONG pid, PEPROCESS process, PVOID source_address, PVOID target_address, SIZE_T size)
92{
93 SIZE_T bytes = 0;
94 //print("writing to target: 0x%llX", target_address);
95 if (NT_SUCCESS(MmCopyVirtualMemory(PsGetCurrentProcess(), source_address, process, target_address, size, KernelMode, &bytes)))
96 return STATUS_SUCCESS;
97
98 return STATUS_UNSUCCESSFUL;
99}
100
101NTSTATUS read_virtual_memory(ULONG pid, PEPROCESS process, PVOID source_address, PVOID target_address, SIZE_T size)
102{

Callers 4

writelocalFunction · 0.85
SUCESSFULFunction · 0.85
ONLINEFunction · 0.85
ERRORFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected