Seregon/Hermes

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

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