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.
-
MinGW (Msys2)
- Download and install MinGW
- 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
- Generate Makefiles
cmake -G <generator name> -B build .
- Note: type
cmake --help
to list generators available in your system
- Go to build directory
cd build
- Build source code
make
- Go to examples folder
cd src/examples
- Generate makefiles
cmake -G <generator name> -B build .
- Go to build directory
cd build
- Build examples
make
To 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. -lhack
At this point the foo program will be statically linked to libhack, and will need libhack.dll or libhack.so to be opened correcly.
For more examples, please refer to examples below
- Reading a memory address
- Writing to a memory address
- Getting PID from a process
- Injecting DLL into another process
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