Write `data` at `addr`
(self, addr, data)
| 1056 | return winproxy.VirtualFreeEx(self.handle, addr) |
| 1057 | |
| 1058 | def write_memory(self, addr, data): |
| 1059 | """Write `data` at `addr`""" |
| 1060 | data = raw_encode(data) |
| 1061 | if windows.current_process.bitness == 32 and self.bitness == 64: |
| 1062 | if not winproxy.is_implemented(winproxy.NtWow64WriteVirtualMemory64): |
| 1063 | raise ValueError("NtWow64WriteVirtualMemory64 non available in ntdll: cannot write into 64bits processus") |
| 1064 | return winproxy.NtWow64WriteVirtualMemory64(self.handle, addr, data, len(data)) |
| 1065 | return winproxy.WriteProcessMemory(self.handle, addr, lpBuffer=data) |
| 1066 | |
| 1067 | def low_read_memory(self, addr, buffer_addr, size): |
| 1068 | if windows.current_process.bitness == 32 and self.bitness == 64: |
no test coverage detected