Remote Code Execution: Returning values

Hello everyone. I’ve recently come across remote code execution threads on here and a question came into my mind. How could I return a value like a table from a third party site white still executing the code. I’ve tried loadstring but all it does is return a function. How would i return the foods table into ROBLOX from the pastebin below?

--Pastebin
local foods = {"banana","apple"}
return foods

Loadstring returns a function that you call.

loadstring(code)()

You can also use rerubi interpreter to get around the security issue.

1 Like