| 4 | DWORD64 baseaddress; |
| 5 | |
| 6 | int main() |
| 7 | { |
| 8 | //use your mapper code here: |
| 9 | |
| 10 | //send your driver following stuff: (use kdmapper or something else) |
| 11 | |
| 12 | // mdl pointer, STATUS_CODE_ADDRESS, STRUCT_OFFSET_ADDRESS, pid |
| 13 | //NTSTATUS EntryPoint(ULONG64 mdl, ULONG64 code, ULONG64 output, ULONG64 PID) |
| 14 | |
| 15 | |
| 16 | std::cout << "Hello world!" << std::endl; |
| 17 | Connect(); |
| 18 | |
| 19 | pid = GetProcessId(L"FortniteClient-Win64-Shipping.exe"); |
| 20 | |
| 21 | std::cout << "PID:" << pid << std::endl; |
| 22 | //init our target |
| 23 | if (!initTarget(pid)) return 1; |
| 24 | |
| 25 | baseaddress = GetBase(); |
| 26 | |
| 27 | std::cout << "base: 0x" << std::hex << baseaddress << std::endl; |
| 28 | |
| 29 | //a test |
| 30 | uint64_t UWORLD = Read<uint64_t>(0xB78BC70 + baseaddress); |
| 31 | |
| 32 | std::cout << "test: 0x" << std::hex << UWORLD << std::endl; |
| 33 | |
| 34 | Disconnect(); |
| 35 | |
| 36 | } |
nothing calls this directly
no test coverage detected