A modern and easy to use memory hacking library.
Explore docs »
Examples
·
Report Bug
·
Request Feature
This is a simple and easy to use memory hacking library. It was created to make my work on the project easier but can be used for many other purposes.
To get a local copy up and running follow these simple steps.
This is an example of how to list things you need to use the software and how to install them.
-
GCC (Linux)
-
MinGW (Windows)
- Download and install MinGW through MSYS2
- https://www.msys2.org/wiki/MSYS2-installation/
-
CMake
- Clone the libhack
git clone https://github.com/lucas-engen/libhack.git- Go to project folder
cd libhack- Configure the project
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release- Build the library
cmake --build build --parallel- Run the tests
cmake --build build --target testTo install the library and headers locally, run:
cmake --install build --prefix "$HOME/.local"- Configure the project with examples enabled
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DLIBHACK_BUILD_EXAMPLES=ON- Build the examples
cmake --build build --parallelTo use this library, simply copy the development files to your project source code folder. Example:
We have a project called foo and it has the following files: foo.c and main.c localized inside the foo folder. The project tree will be something like this:
foo
| foo.c
| main.c
If you want to use libhack library, just put the libhack header files and libhack import library inside the foo folder. The source code tree will be:
foo
| foo.c
| main.c
| hack.h
| process.h
| ...
| ...
| ...
| libhack.a
In order to build the project foo, you just need to run
gcc foo.c main.c -L. -lhackAt this point the foo program will be dynamically linked to libhack, and will need libhack.dll or libhack.so to be opened correctly.
For more examples, please refer to examples below
- Reading a memory address - Windows
- Writing to a memory address - Windows
- Getting PID from a process - Windows
- Injecting DLL into another process - Windows
- Writing to a memory address - Linux
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/new_feature) - Commit your Changes (
git commit -m 'Add new feature') - Push to the Branch (
git push origin feature/new_feature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Lucas Vieira - Instagram - Gmail
Project Link: https://github.com/lucas-engen/libhack
- To God for life
- To my father Jenner Silva who introduced me to the world of computing