Advertisement
LDDestroier

Run program from URL

Sep 12th, 2015
635
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. -- pastebin get AJfSisNg
  2. url = "http://pastebin.com/raw.php?i=x9ajKSc0"
  3. write("Downloading...")
  4. program = http.get(url).readAll()
  5. print("done")
  6. write("Loading into function...")
  7. func = loadstring(program)
  8. setfenv(func, getfenv())
  9. print("done")
  10. print("Running...")
  11. func(...)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement