- with
gh(preferred)
gh repo create ChangeMe --template hugsy/template-pwn --clone # --private- with
git
git clone --depth 1 -q https://github.com/hugsy/template-pwn ChangeMeEdit source files in src/ and add their paths to CMakeLists.txt.
cd ChangeMe
cmake -S ./ -B build/ -T host=x64 -A x64
cmake --build buildMake sure to change all the ChangeMe values, and edit the root CMakeLists.txt to enable/disable the wanted features to build along side your tool.
To use the default architecture (i.e. the one cmake runs on), simply go with:
cmake --build ./buildOr you can be more specific and cross-compile to one of the architecture supported by pwn++:
| Architecture | Command |
|---|---|
win32 |
cmake --build ./build -T host=x64 -A win32 |
x64 |
cmake --build ./build -T host=x64 -A x64 |
arm64 |
cmake --build ./build -T host=x64 -A arm64 |
arm |
cmake --build ./build -T host=x86 -A arm |
Enjoy 🍻!