Hermes/Dyforge is a program written in c++ allows you to inject a dll that can analyze all processes in a program, can be used for mod and reverse engeneering
| 1 | cmake_minimum_required(VERSION 3.15) |
| 2 | project(DyForge VERSION 1.0.0 LANGUAGES CXX) |
| 3 | |
| 4 | # Imposta C++17 |
| 5 | set(CMAKE_CXX_STANDARD 17) |
| 6 | set(CMAKE_CXX_STANDARD_REQUIRED ON) |
| 7 | |
| 8 | # Definizioni per Windows |
| 9 | if(WIN32) |
| 10 | add_definitions(-DWIN32_LEAN_AND_MEAN) |
| 11 | endif() |
| 12 | |
| 13 | # File sorgenti |
| 14 | set(SOURCES |
| 15 | main.cpp |
| 16 | ) |
| 17 | |
| 18 | # Crea l'eseguibile |
| 19 | add_executable(DyForge ${SOURCES}) |
| 20 | |
| 21 | # Directory degli include |
| 22 | target_include_directories(DyForge |
| 23 | PRIVATE |
| 24 | ${CMAKE_SOURCE_DIR}/DyMain/include |
| 25 | ${CMAKE_SOURCE_DIR}/DyHexInject/include |
| 26 | ) |
| 27 | |
| 28 | # Imposta la directory di output |
| 29 | set_target_properties(DyForge PROPERTIES |
| 30 | RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/Debug |
| 31 | ) |
| 32 | |
| 33 | # Collega le librerie |
| 34 | target_link_libraries(DyForge |
| 35 | PRIVATE |
| 36 | ${CMAKE_BINARY_DIR}/DyMain/Debug/DyMain.lib |
| 37 | ${CMAKE_BINARY_DIR}/DyHexInject/Debug/DyHexInjectd.lib |
| 38 | ) |
| 39 | |
| 40 | # Copia le DLL necessarie nella directory di output |
| 41 | add_custom_command(TARGET DyForge POST_BUILD |
| 42 | COMMAND ${CMAKE_COMMAND} -E copy_if_different |
| 43 | ${CMAKE_BINARY_DIR}/bin/Debug/DyMain.dll |
| 44 | ${CMAKE_BINARY_DIR}/bin/Debug/DyHexInjectd.dll |
| 45 | ${CMAKE_BINARY_DIR}/bin/Debug |
| 46 | ) |