kruz1337 / Sxe-Bypass-Injector

This repository has a Dynamic-link library (DLL) injector project for bypass Injected Anti-Cheat. It's fully open source project.
GNU General Public License v3.0
5 stars 3 forks source link

Build issue #1

Closed simplismo closed 1 year ago

simplismo commented 1 year ago

And I've been trying to compile the injector but errors occurred to me, I'm using g++

error: cast from 'BYTE' {aka 'unsigned char'} to 'DWORD' {aka 'long unsigned int'} loses precision [-fpermissive]

100 return (DWORD)entry32.modBaseAddr; ^~~~~~ C:\Users\parabellum\Desktop\Sxe-Bypass-Injector-main\Sxe Bypass Injector\main.cpp: In function 'bool Inject(HANDLE, const char)': C:\Users\parabellum\Desktop\Sxe-Bypass-Injector-main\Sxe Bypass Injector\main.cpp:141:27: error: invalid conversion from 'HINSTANCE__ ()(LPCSTR)' {aka 'HINSTANCE__ ()(const char)'} to 'void*' [-fpermissive] 141 void* shellCode = LoadLibraryA; ^~~~
HINSTANCE ()(LPCSTR) {aka HINSTANCE ()(const char*)}

C:\Users\parabellum\Desktop\Sxe-Bypass-Injector-main\Sxe Bypass Injector\main.cpp:211:67: error: 'CONTEXT' has no member named 'Eip'; did you mean 'Rip'? 211 | reinterpret_cast<DWORD>(code + 0x06 + funcOffset) = ctx.Eip; | ^~~ | Rip C:\Users\parabellum\Desktop\Sxe-Bypass-Injector-main\Sxe Bypass Injector\main.cpp:217:13: error: 'CONTEXT' has no member named 'Eip'; did you mean 'Rip'? 217 | ctx.Eip = reinterpret_cast(codeCave) + funcOffset; | ^~~ | Rip C:\Users\parabellum\Desktop\Sxe-Bypass-Injector-main\Sxe Bypass Injector\main.cpp:217:19: error: cast from 'void*' to 'DWORD' {aka 'long unsigned int'} loses precision [-fpermissive] 217 | ctx.Eip = reinterpret_cast(codeCave) + funcOffset;

kruz1337 commented 1 year ago

Use MSVC

simplismo commented 1 year ago

Use MSVC

How?

kruz1337 commented 1 year ago

If you don't know just use compiled file in releases page.