• RunString() no work
    10 replies, posted
Hello everyone, I'm starter in Lua development and i want to use RunString in a http.Fetch My code is: [CODE]http.Fetch("http://mywebsite.fr", function(body, len, headers, code) RunString(body) end)[/CODE] When i do this, if my output is: "print('hello!')" In console got only lua error. But if i do: [CODE]body = "print('hello!')" RunString(body)[/CODE] This work perfectly. What is the problem ? The both string are the same, but when i get it with http request, it dont work. If someone know how to do that, please answer :) Thank you. PS: Sorry for my bad english, i speak french.
What is the lua error
This is a little complex my error is: [ERROR] RunString:1: unexpected symbol near '\' 1. unknown - RunString:0 Because the output of my website is: \112\114\105\110\116\40\34\104\101\108\108\111\34\41 This is encoded, this string mean: print("hello") I can use this string in RunString() (and runstring automatically decrypt it) but when i get it on my website this don't work
-snip- didnt read fully
Obfuscated code + http.Fetch and RunString sounds like a nice backdoor. :v:
Or a DRM :)
I've did that before and this is not very reliable because if your website is down the script won't be able to work. No offense but if you are a beginner, there are plenty of other things that are more interesting than making a DRM. You should learn how to make scripts before trying to obfuscate them. I know that some people here hate DRM including coders, I'll not tell you it's a bad thing because it's not what I think, but before obfuscating/protecting/selling scripts you should improve your skills.
I am a web developer, so i'm not an expert in lua. I have finish the DRM, i just need to fix this issue and i have finish :/
Could you run [lua]http.Fetch("http://mywebsite.fr", function(body) print(body) end )[/lua] And screenshot the output?
Like I've told you on [URL="http://pastebin.com/89a9sRR7"]steam[/URL], drop the idea of making a paid DRM service if you can't even do simple Lua. Especially considering you are most likely gonna use ScriptEnforcer's verification code which I posted on SF. You even said you were new to Lua in your OP. There are better DRM services in the works right now that will completely blow yours out of the water.
Why do people still think that decimal strings are good for obfuscation? You'd be much better using bit.bxor with string.char/byte.
Sorry, you need to Log In to post a reply to this thread.