thegrb93 / StarfallEx

Starfall, but with active development and more features. Write Garry's mod chips similar to E2, but in lua
https://discord.gg/yFBU8PU
Other
199 stars 111 forks source link

Stealing code is very easy #16

Closed suunr closed 8 years ago

suunr commented 8 years ago

You can steal every starfall code with this client side lua PrintTable(LocalPlayer():GetEyeTrace().Entity.files). A way would be to delete the code after loading it directly, or obfuscating it.

thegrb93 commented 8 years ago

I want the code stored on client-side so players with cantool permission can edit the starfall without having to re-transfer the data. Even if I deleted it, players could hook into the net function which transfers the code. Maybe you can use the http functions and compile functions so you can remotely load your code.

thegrb93 commented 8 years ago

Even if I sent the code pre-compiled, there exist lua decompilers. I'm not sure if I want to spend the effort adding an obfuscator.

Let me know if anything needs to be done for remote code loading though because I think that's the best solution.

thegrb93 commented 8 years ago

I just remembered, you could also use the file library to upload and run your code.

suunr commented 8 years ago

Yes, I already tried that, but people still can steal the code by reading the net message

thegrb93 commented 8 years ago

Maybe I can add string.dump

thegrb93 commented 8 years ago

nvm it's already added.

suunr commented 8 years ago

Garrys mod can't run lua binaries

thegrb93 commented 8 years ago

I think loadString can