Giter VIP home page Giter VIP logo

glua-steal's People

Contributors

heyter avatar lewisclark avatar ravmda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

glua-steal's Issues

Including does not load instantly

gluasteal.include ends up running much after autorun which is sad because I wanted to have actual proper file management without having stuff in my data folder where it could be tampered with.

I'd assume it would just be another call of luaL_loadFile (I have little to no experience sorry)

Is this intended behavior?

I guess i'll just put everything in one file for now (gluasteal.lua) 👎

Lua being appended.

Describe the bug
If you join a server of whose files you already have it appends it to the file. This leads to a lot of double code in files and makes it painful to easily search through lua / files.

Preferably there would be an option to overwrite the file or make a new one with a new name, or even add a date per server folder so you can have multiple copies of the same server.

Additional details (please complete the following information):
64bit v1.9

HI

THANK YOU FOR THIS DLL

gluasteal not working

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.

[REQUEST] Add the ability to detect server IP for black/whitelisting

Maybe something like gluasteal.SERVER so that something like this can be written?

if gluasteal.SERVER == "93.184.216.34" then -- this is the IP to example.com
    if gluasteal.SCRIPT == "includes/init.lua" then
        gluasteal.include("script1.lua")
    end
elseif gluasteal.SERVER == "172.67.183.168" then -- this is also the IP to something.com
    if gluasteal.SCRIPT == "includes/init.lua" then
        gluasteal.include("script2.lua")
    end
end

Adding support for x64 bit

I'm pretty sure this doesn't support 64 bit, atleast I haven't gotten it to work on my Linux machine.

OSX 12.6 build failing

Describe the bug
Building the repo on OSX 12.6 fails - unable to find link.h.

Expected behavior
Building the repo succeeds and the 0.001% of people probably using GLua-Steal on OSX can live a happy life.

Screenshots
image

shayne@Shaynes-MacBook-Pro build % make
[  4%] Building CXX object src/library/CMakeFiles/library.dir/library.cpp.o
In file included from /Users/shayne/Desktop/glua-steal/src/library/library.cpp:17:
/Users/shayne/Desktop/glua-steal/src/library/library.hpp:30:10: fatal error: link.h: No such file or directory
   30 | #include <link.h>
      |          ^~~~~~~~
compilation terminated.
make[2]: *** [src/library/CMakeFiles/library.dir/library.cpp.o] Error 1
make[1]: *** [src/library/CMakeFiles/library.dir/all] Error 2
make: *** [all] Error 2

Additional details (please complete the following information):

  • OS: OSX 12.6 on an M1 MacBook Pro (2021)
  • glua-steal version and architecture (e.g. 1.4 and 64-bit): Pull #34 / commit ab4de22 - 64 bit
  • The Garry's Mod branch you're using (e.g. 64-bit) - Chromium / 64 bit

Additional context
I don't really care that much, so I'm not offended if this doesn't get fixed. I know Mac isn't officially supported.

Not able to compile on Linux

Describe the bug
When trying to compile glua-steal for Linux, it fails with several erros. One being that is not imported and other ones i can't seem to fix myself as i don't understand what these lines of code do. Even tried using older GCC versions.

Expected behavior
Compiling would work without problems.

Screenshots
Screenshot_20220709_030606

Additional details (please complete the following information):

  • OS: Linux (Manjaro Arch)
  • glua-steal version and architecture: Newest and both fail

Feature: Filestealer `truncate` doesnt work with gluapack, possible ideas / solutions

Describe the issue
Servers that run gluapack()() don't work with write_mode truncate but work with append. This was expected when truncate was introduced and is logical. It might be cool to have gluapack automatically detect gluapack or other kinds of script steal preventions and "bypass them", i know this sounds and likely painful to do. But having the option to specifically disable known preventions like gluapack might be useful to people as truncate is a preferrable alternative for servers that don't run these preventions.

Maybe a complete different way of solving this would be a mode where only new code would be appended to the file while old code would still be kept.

Extra information
Might be useful, https://www.unknowncheats.me/forum/garry-s-mod/486883-gluapack-bypass.html

Linux issues.

While compiling for linux, i had errors about the filesystem lib not being found.
i had to replace all #include <filesystem> with #include <experimental/filesystem>
and all std::filesystem:: with std::experimental::filesystem::

This may be the reason why im getting this error along with gmod crashing:
[13-04-19 - 17:05:33.544] [info] Initializing gluasteal v1.4 [13-04-19 - 17:05:33.544] [critical] Failed to initialize: failed to grab handle for library engine

Any ideas on how to fix this?

Is Overriding Lua Files Possible?

I'm interested in knowing whether it's possible to override existing Lua files while maintaining full access to the source file's methods and networking. I need to alter the behavior of the existing lua file without losing their inherent network communication abilities and method implementations.

For example net.ReadUInt(16) or local obj = OBJ.RANK will no longer be accessible if I use:

if (gluasteal.SCRIPT:match("cl_ranks")) then
    gluasteal.include("cl_ranks.lua")
    return false
end

Question

Can I cancel this or that code that is being executed on me?
For example, screengrab or crash attempt

Something like that

	if b:find("while true do end") then
	    return
	end

*Possibly* not injecting scripts after the January 2023 update

Describe the bug
Scripts possibly (???) either not executing after the January 2023 update, or I severely misunderstand how this works.

Expected behavior
The script included in my gluasteal.lua to run (which works on Windows under autorun-rs, so I don't think it's the script)

Actual behavior
Lua files are properly dumped, no errors in the log, but the script is not run

Additional details (please complete the following information):

  • OS: Void Linux glibc x86_64
  • Version: latest commit 06ee199 64-bit
  • GMOD Branch: x86_64

Additional context
I've tried two different gluasteal.lua files, one providing the absolute path to a script I know exists on the server (thanks to your Lua dumper!), and the other trying to match for any script with a keyword in that path.
Absolute:

if gluasteal.SCRIPT == "autorun/client/cl_this_has_a_scriptkeyword.lua" then
    gluasteal.include("coolscript.lua")
end

My current gluasteal.lua looks like the following:

if (gluasteal.SCRIPT:match("scriptkeyword")) then
    gluasteal.include("coolscript.lua")
end

However, in neither case did the script execute. I included a handful of print statements for good luck in coolscript.lua, but neither were outputted to the log or the GMOD console (which I expect it to? might be wrong)

Not working anymore

Describe the bug
A clear and concise description of what the bug is.

Expected behavior
in gluasteal.lua i use hook.Add() that working fine but from few days it's broken

Screenshots

[21-11-21 - 18:04:53.686] [warning] Failed to run lua file execution error '[string "gluasteal.lua"]:40: attempt to index global 'hook' (a nil value)'

Additional details (please complete the following information):

  • OS: Windows
  • glua-steal v1.9 64bit
  • The Garry's Mod branch you're using 64-bit

Additional context
in gluasteal.lua i use hook.Add() that working fine but from few days it's broken

Compiling doesn't create the .so file.

Okay so, i've tried to compile the glua-stealer. After doing cmake and make, i havent noticed the .so file appearing anywhere. How do i compile this.
Im using manjaro 21.04
Everything like cmake and make is up-to-date.

Can't Generate the SLN project file

Hello ,
I tried download the src and when i launch the command :
'msbuild gluasteal.sln /p:Configuration=Release'

I get this result :
MSBUILD : error MSB1009: Le fichier projet n'existe pas.
Commutateur : gluasteal.sln

Any idea ?

engine error

when i join a server the game crash and it say engine error faild to lock vertex buffer
ff
?

Can you help about executing Lua commands?

I've bit confused about running lua code. What phase is it loading lua codes? I mean if I write that:

if (gluasteal.SCRIPT:match("roll")) then
some lua code here
return
end

in to gluasteal.lua file, would it run lua code when any roll.lua executed at game? Otherwise can I change serverside things by some sync functions that I found in server lua files?

Building from source

I am sorry. I am a teapot in the cmake and a make.
What should I do after I complete all the build steps for Linux? I do not see any .so for the preload.
I apologize for stupidity

The game does not open with this

Hello. Earlier I inject this lib using "Set launch options" in game options in Steam. I wrote in them "LD_PRELOAD=/path/to/so/ %command%" and all worked like a charm. But when I recompiled it to update it to july version my GMOD stopped launching(it turns off after startup).
Ubuntu 16.04. Both 64 bit gmod and 32 bit don't work. What can I do to give you more information?

Failed to initialize on injection

Video of exactly what I did:
https://propkill.me/pls/CmHXTa.mp4
the error is
[07-03-20 - 15:10:27.901] [info] Initializing gluasteal v1.4 [07-03-20 - 15:10:27.903] [critical] Failed to initialize: failed to grab handle for library garrysmod/bin/lua_shared
It's probably because of the branch i'm on but it's the 32bit build

not working

./inject -p 237297 /home/user/Desktop/ceee/glua-steal/build/src/libgluasteal.so
targeting process with pid 237297
ptrace(PTRACE_ATTACH) failed

No further output...

Running in ROOT

./inject -p 237297 /home/user/Desktop/ceee/glua-steal/build/src/libgluasteal.so
targeting process with pid 237297
instead of expected SIGTRAP, target stopped with signal 11: Segmentation fault
sending process 237297 a SIGSTOP signal for debugging purposes

Game crashes

No further output

Gluasteal folder is not created... Any ideas?

Feature, pre autorun file.

A file that runs once before any server lua might be very useful, currently it'd be possible with lua but having an option to just automatically do it would be useful. Something like pre-autorun.lua or so.
I ran into this issue when i was trying to test some pre autorun code but it seemed like it still constantly ran.

if firstRun then return end
firstRun = true

Simply running this at the top of the file didn't seem to work as maybe the environment constantly changes per file?
I'm not exactly sure but it'd just be neat to have a file to run only once.

GDB stuck at "Detaching after fork from child process" when trying to load library

I'm using the x86_64 branch of Garry's Mod on Arch Linux. I have built libgluasteal.so from the latest source code but whenever I try injecting with gdb I get stuck at this:

(gdb) set $dlopen = (void*(*)(char*, int)) dlopen
(gdb) call $dlopen("/home/asdfghjkl/glua-steal/build/src/libgluasteal.so", 1)
[Detaching after fork from child process 53626]

I believe this is a gmod update because this has worked for me yesterday with the same build. I tried rebuilding and clean reinstalling gmod with no success.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.