Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Pure Lua extractor made by Andy73 a.k.a. viluon
- Copyright 2014
- version 0.2 BETA (1st public release)
- usage: extractor <compressed file> <decompressed output>
- ]]
- local args={...}
- local file=fs.open(args[1],"r")
- local r=string.gsub
- local t=file.readAll()
- file:close()
- --t is a string, will be later saved
- --FIRST ROUND SYMBOL @ (12x)
- t=r(t,"@ě","true")
- t=r(t,"@š","false")
- t=r(t,"@č","setTextScale")
- t=r(t,"@ř","setBackgroundColor")
- t=r(t,"@ž","os.loadAPI")
- t=r(t,"@ý","color")
- t=r(t,"@á","setTextColor")
- t=r(t,"@í","text")
- t=r(t,"@é","Text")
- t=r(t,"@ú","write")
- t=r(t,"@ů","elseif")
- t=r(t,"@ˇ","local")
- t=r(t,"@´","function")
- --SECOND ROUND SYMBOL # (12x)
- t=r(t,"#ě","then")
- t=r(t,"#š","end")
- t=r(t,"#č","else")
- t=r(t,"#ř","tostring%(")
- t=r(t,"#ž","tonumber%(")
- t=r(t,"#ý","string")
- t=r(t,"#á","math")
- t=r(t,"#í","=os.pullEventRaw%(")
- t=r(t,"#é","=os.pullEvent%(")
- t=r(t,"#ú","= os.pullEventRaw%(")
- t=r(t,"#ů","= os.pullEvent%(")
- t=r(t,"#ˇ","window")
- t=r(t,"#´","process")
- --THIRD ROUND SYMBOL ! (12x)
- t=r(t,"!ě","and")
- t=r(t,"!š","not")
- t=r(t,"!č","print")
- t=r(t,"!ř"," == ")
- t=r(t,"!ž"," ~= ")
- t=r(t,"!ý","= fs.exists%(")
- t=r(t,"!á","=pcall%(")
- t=r(t,"!í","= pcall%(")
- t=r(t,"!é","pcall%(")
- t=r(t,"!ú","=fs.open%(")
- t=r(t,"!ů","= fs.open%(")
- t=r(t,"!ˇ","fs.exists%(")
- t=r(t,"!´","print%(")
- --FOURTH ROUND SYMBOL / (12x)
- t=r(t,"/š","=fs.isDir%(")
- t=r(t,"/č","= fs.isDir%(")
- t=r(t,"/ř","fs.isDir%(")
- t=r(t,"/ž","=fs.isReadOnly%(")
- t=r(t,"/ý","= fs.isReadOnly%(")
- t=r(t,"/á","fs.isReadOnly%(")
- t=r(t,"/í","=fs.getDrive%(")
- t=r(t,"/é","= fs.getDrive%(")
- t=r(t,"/ú","fs.getDrive%(")
- t=r(t,"/ů","=fs.getSize%(")
- t=r(t,"/ˇ","= fs.getSize%(")
- t=r(t,"/´","fs.getSize%(")
- local target=fs.open(args[2],"w")
- target.write(t)
- target:close()
- print("done!")
Advertisement
Add Comment
Please, Sign In to add comment