switched to cpp
This commit is contained in:
21
src/client/main.cpp
Normal file
21
src/client/main.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "memory.hpp"
|
||||
#include <stdint.h>
|
||||
|
||||
int main() {
|
||||
if (!open_device())
|
||||
return -1;
|
||||
|
||||
int pid = get_pid("nsnake");
|
||||
if (!open_process(pid))
|
||||
return -1;
|
||||
|
||||
uintptr_t addr = get_module("nsnake");
|
||||
printf("module : 0x%lx\n", addr);
|
||||
WPM<int>(addr + 0x1d71510, 1337);
|
||||
|
||||
int out = RPM<int>(addr + 0x1d71510);
|
||||
printf("Value from RPM: %d\n", out);
|
||||
|
||||
close_device();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user