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 | @echo off |
| 2 | setlocal enabledelayedexpansion |
| 3 | |
| 4 | :: Configurazione |
| 5 | set "BUILD_DIR=build" |
| 6 | set "BIN_DIR=bin" |
| 7 | set "SRC_DIR=src" |
| 8 | set "INCLUDE_DIR=include" |
| 9 | set "LIB_DIR=lib" |
| 10 | |
| 11 | :: Crea le directory se non esistono |
| 12 | if not exist "%BUILD_DIR%" mkdir "%BUILD_DIR%" |
| 13 | if not exist "%BIN_DIR%" mkdir "%BIN_DIR%" |
| 14 | |
| 15 | :: Compila i file sorgente |
| 16 | echo Compilando i file sorgente... |
| 17 | |
| 18 | :: Compila InjectionManager.cpp |
| 19 | cl.exe /nologo /EHsc /W4 /Zi /Od /I"%INCLUDE_DIR%" /I"..\DyHexInject" /c "%SRC_DIR%\InjectionManager.cpp" /Fo"%BUILD_DIR%\InjectionManager.obj" |
| 20 | if errorlevel 1 ( |
| 21 | echo Errore durante la compilazione di InjectionManager.cpp |
| 22 | exit /b 1 |
| 23 | ) |
| 24 | |
| 25 | :: Compila UIManager.cpp |
| 26 | cl.exe /nologo /EHsc /W4 /Zi /Od /I"%INCLUDE_DIR%" /c "%SRC_DIR%\ui\UIManager.cpp" /Fo"%BUILD_DIR%\UIManager.obj" |
| 27 | if errorlevel 1 ( |
| 28 | echo Errore durante la compilazione di UIManager.cpp |
| 29 | exit /b 1 |
| 30 | ) |
| 31 | |
| 32 | :: Compila CommunicationManager.cpp |
| 33 | cl.exe /nologo /EHsc /W4 /Zi /Od /I"%INCLUDE_DIR%" /c "%SRC_DIR%\communication\CommunicationManager.cpp" /Fo"%BUILD_DIR%\CommunicationManager.obj" |
| 34 | if errorlevel 1 ( |
| 35 | echo Errore durante la compilazione di CommunicationManager.cpp |
| 36 | exit /b 1 |
| 37 | ) |
| 38 | |
| 39 | :: Linka l'eseguibile |
| 40 | echo Linkando l'eseguibile... |
| 41 | link.exe /nologo /DEBUG /SUBSYSTEM:WINDOWS /OUT:"%BIN_DIR%\DyForge.exe" ^ |
| 42 | "%BUILD_DIR%\InjectionManager.obj" ^ |
| 43 | "%BUILD_DIR%\UIManager.obj" ^ |
| 44 | "%BUILD_DIR%\CommunicationManager.obj" ^ |
| 45 | "..\DyHexInject\bin\DyHexInject.lib" ^ |
| 46 | user32.lib gdi32.lib comctl32.lib shlwapi.lib comdlg32.lib psapi.lib |
| 47 | if errorlevel 1 ( |
| 48 | echo Errore durante il linking |
| 49 | exit /b 1 |
| 50 | ) |
| 51 | |
| 52 | :: Copia le DLL necessarie |
| 53 | echo Copiando le DLL... |
| 54 | copy "..\DyHexInject\bin\DyHexInject.dll" "%BIN_DIR%" |
| 55 | copy "..\DyMain\bin\DyMain.dll" "%BIN_DIR%" |
| 56 | |
| 57 | echo Build completata con successo! |
| 58 | endlocal |