Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arg = {...}
- function loadf(d)
- local f = fs.open(d,"r")
- local dat = f.readAll()
- f.close()
- return loadstring(dat)
- end
- binary = string.dump(loadf(arg[1]))
- formatted_binary = ""
- for i = 1,string.len(binary) do
- dec, _ = ("\\%3d"):format(binary:sub(i,i):byte()):gsub(' ','0')
- formatted_binary = formatted_binary..dec
- end
- out = fs.open("/lul","w")
- out.writeLine('loadstring("'..formatted_binary..'")()')
- out.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement