• Sending LUA to the client, without net messages
    3 replies, posted
How can I send a file to a client without using net messages? My reason being I don't want to client being able to decrypt their LUA cache, and be able to see the file. I would use SendLua, but it is about 380 bytes of code. Any suggestions? (sorry if this is a stupid question, I looked it up 5+ times on google, and nothing came up.)
No matter what you do, there isn't a way to prevent people from decrypting the Lua cache. Using net messages and sending a payload through it, and running it clientside using RunStringEx/CompileString is the best way to hide code. You could try compiling the code with CompileString(code, "some invalid file path"), and that would somewhat prevent people from dumping the scripts (unless they validate the file path). As man with hat said, SendLua sends a string and it's ran as LuaCmd clientside.
SendLua uses net messages as well. It's not the net messages you know, but under the hood, it's net message/usermessage stuff. SendLua gets ran on the client with LuaCmd as the source, and there are modules that log every script that gets ran on the client, without the need to decrypt anything, so there's not really anything you can do in that aspect. [editline]7th September 2015[/editline] Yeah you can do something like what stev_ said. Put some invalid characters as the source and file stealers that don't rely on the cache won't be able to grab it unless they validate the path like he said. You can put *, :, *, etc. If you try to rename a file on your computer using those symbols it won't let you, so that's a quick way to stop the no-cache stealers.
Alright, thanks. Ill try that now.
Sorry, you need to Log In to post a reply to this thread.