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

Function main

UM/UM.cpp:6–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4DWORD64 baseaddress;
5
6int 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}

Callers

nothing calls this directly

Calls 5

GetProcessIdFunction · 0.85
initTargetFunction · 0.85
ConnectFunction · 0.70
GetBaseFunction · 0.70
DisconnectFunction · 0.70

Tested by

no test coverage detected