- Read Process Memory
- Write Process Memory
- Get the pid of a process
- Get the module of a process
- Get the registers of a process
- git clone https://github.com/CyberSnakeH/LibSnake-Version1.1.git
- cd LibSnake-Version1.1
- Compile it : bash compile1.bash
- Go to the lib folder
- You can now use the libsnake.a library. To do so, include in your folder the library plus the file MemoryManagement.h
#include <stdio.h>
#include "MemoryManagement.h"
#define Addr 0x7ffdbe0a44c4
int main(void) {
printf("Hello world \n");
struct user_regs_struct X;
// Get Pid
unsigned int Pid = GetThePid("FakeGame");
// Get Module
unsigned long Module = GetModuleBase(Pid, "FakeGame.so");
printf("Pid is %d and Module is %lx\n", Pid, Module);
unsigned long ptr1;
// Read Process Memory
ReadProcessMemory(Addr, &ptr1, Pid);
printf("Value of addresse is %d\n", ptr1);
//Write Process Memory
WriteProcessMemory(Addr, 200, Pid);
// Get registers
GetRegs(Pid, &X);
// Print rax register for exemple
printf("Rax register : 0x%lx\n", X.rax);
return 0;
}gcc main.c -L. ./libsnake.a -o your_file_name
My Discord : https://discord.gg/BA9FN25
[Version 1.0]
In version 1.0 of the library you could just do :
- Read Process Memory
- Write Process Memory
- Get the pid of a process
- Get the module of a process
[which has been added]
Get the registers of a process