tostercx / GTAO_Booster_PoC

Do What The F*ck You Want To Public License
2.85k stars 180 forks source link

Errors #11

Closed RubyTemple closed 3 years ago

RubyTemple commented 3 years ago
"C:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin\gcc.exe" -g C:\Users\RYZEN\Documents\Scuola\sistemi\GTAO_Booster_PoC\boost.c -o C:\Users\RYZEN\Documents\Scuola\sistemi\GTAO_Booster_PoC\boost.exe
C:\Users\RYZEN\Documents\Scuola\sistemi\GTAO_Booster_PoC\boost.c: In function 'strlen_cacher':
C:\Users\RYZEN\Documents\Scuola\sistemi\GTAO_Booster_PoC\boost.c:48:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
       MH_DisableHook((LPVOID)strlen_addr);
                      ^
C:\Users\RYZEN\Documents\Scuola\sistemi\GTAO_Booster_PoC\boost.c: In function 'netcat_insert_dedupe_hooked':
C:\Users\RYZEN\Documents\Scuola\sistemi\GTAO_Booster_PoC\boost.c:79:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   if (!(*(uint8_t(__fastcall**)(uint64_t*))(*item + 48))(item))
          ^
C:\Users\RYZEN\Documents\Scuola\sistemi\GTAO_Booster_PoC\boost.c:88:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     MH_DisableHook((LPVOID)netcat_insert_dedupe_addr);
                    ^
C:\Users\RYZEN\Documents\Scuola\sistemi\GTAO_Booster_PoC\boost.c: In function 'initialize':
C:\Users\RYZEN\Documents\Scuola\sistemi\GTAO_Booster_PoC\boost.c:99:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   uint64_t base_addr = (uint64_t)GetModuleHandleA(NULL);
                        ^
C:\Users\RYZEN\Documents\Scuola\sistemi\GTAO_Booster_PoC\boost.c:103:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   netcat_insert_direct = (netcat_insert_direct_t)(base_addr + 0x5BB07C);
                          ^
C:\Users\RYZEN\Documents\Scuola\sistemi\GTAO_Booster_PoC\boost.c:107:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   MH_CreateHook((LPVOID)strlen_addr, &strlen_cacher, (LPVOID*)&builtin_strlen);
                 ^
C:\Users\RYZEN\Documents\Scuola\sistemi\GTAO_Booster_PoC\boost.c:108:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   MH_CreateHook((LPVOID)netcat_insert_dedupe_addr, &netcat_insert_dedupe_hooked, NULL);
                 ^
C:\Users\RYZEN\Documents\Scuola\sistemi\GTAO_Booster_PoC\boost.c:110:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   MH_EnableHook((LPVOID)strlen_addr);
                 ^
C:\Users\RYZEN\Documents\Scuola\sistemi\GTAO_Booster_PoC\boost.c:111:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   MH_EnableHook((LPVOID)netcat_insert_dedupe_addr);
                 ^
C:\Users\RYZEN\AppData\Local\Temp\ccW2yPC2.o: In function `strlen_cacher':
C:/Users/RYZEN/Documents/Scuola/sistemi/GTAO_Booster_PoC/boost.c:48: undefined reference to `MH_DisableHook@4'
C:\Users\RYZEN\AppData\Local\Temp\ccW2yPC2.o: In function `@netcat_insert_dedupe_hooked@16':
C:/Users/RYZEN/Documents/Scuola/sistemi/GTAO_Booster_PoC/boost.c:88: undefined reference to `MH_DisableHook@4'
C:\Users\RYZEN\AppData\Local\Temp\ccW2yPC2.o: In function `initialize':
C:/Users/RYZEN/Documents/Scuola/sistemi/GTAO_Booster_PoC/boost.c:105: undefined reference to `MH_Initialize@0'
C:/Users/RYZEN/Documents/Scuola/sistemi/GTAO_Booster_PoC/boost.c:107: undefined reference to `MH_CreateHook@12'
C:/Users/RYZEN/Documents/Scuola/sistemi/GTAO_Booster_PoC/boost.c:108: undefined reference to `MH_CreateHook@12'
C:/Users/RYZEN/Documents/Scuola/sistemi/GTAO_Booster_PoC/boost.c:110: undefined reference to `MH_EnableHook@4'
C:/Users/RYZEN/Documents/Scuola/sistemi/GTAO_Booster_PoC/boost.c:111: undefined reference to `MH_EnableHook@4'
C:\Users\RYZEN\AppData\Local\Temp\ccW2yPC2.o: In function `DllMain@12':
C:/Users/RYZEN/Documents/Scuola/sistemi/GTAO_Booster_PoC/boost.c:124: undefined reference to `MH_Uninitialize@0'
C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib/libmingw32.a(lib32_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x39): undefined reference to `WinMain@16'
collect2.exe: error: ld returned 1 exit status

The terminal process failed to launch (exit code: -1).
RubyTemple commented 3 years ago

PS: i use Epic Game Laucher for GTA