lewisclark / glua-steal

Retrieves client-sided Lua files from Garry's Mod game servers
GNU General Public License v3.0
151 stars 15 forks source link

gluasteal not working #62

Closed qu1nity closed 3 months ago

qu1nity commented 3 months ago

gluasteal not working on linux(ubuntu64), im compiled the file and inject into gmod 64bit and gmod 32bit, but, inject succeful, like nothing just happens. I recompiled the sources several times, used different injectors, but still nothing happens, the last time I used this was the GDB method, does not work stealer and lua executor. The directory is not created.

lewisclark commented 3 months ago

What does GDB return after injecting? Are you 100% sure of the libgluasteal.so path you are giving it? Things are working fine on my end on Linux, so I imagine it to be an injection issue on your end.

qu1nity commented 3 months ago

What does GDB return after injecting? Are you 100% sure of the libgluasteal.so path you are giving it? Things are working fine on my end on Linux, so I imagine it to be an injection issue on your end.

output by GDB: 0x0, and yes im giving full path to .so file

qu1nity commented 3 months ago

Here is the detailed input and output in GDB: image

qu1nity commented 3 months ago

On my system, working GDB only, with linux-inject he writes about segmentation fault, and gluasteal folder i created

lewisclark commented 3 months ago

Strange - in GDB, can you call dlerror after calling dlopen? It should return a string describing the error.

edit: looks like the issue might be related to glibc linking? dlerror should confirm

qu1nity commented 3 months ago

how write this string after calling dlopen, i basically don’t know very well how everything works in linux

lewisclark commented 3 months ago

how write this string after calling dlopen, i basically don’t know very well how everything works in linux

I haven't tested but this should work in GDB:

set $dlerror = (char*(*)()) dlerror
call $dlerror()
qu1nity commented 3 months ago

elfclass64 image

lewisclark commented 3 months ago

elfclass64 image

It looks like you're trying to inject the 64-bit library into 32-bit Garry's Mod. You should either compile the library in 32-bit mode or use the Garry's Mod 64-bit beta

qu1nity commented 3 months ago

yea, glibc needed image

qu1nity commented 3 months ago

i fuck this shit, im installed all lib, but, the error did not go away

lewisclark commented 3 months ago

It looks like a conflict with the Steam runtime, it provides its own version of glibc which is a few versions lower than the native version of glibc used to link with gluasteal.

The options are either:

qu1nity commented 3 months ago

Thx, its work