t8rt0t

breakout.lua

Jul 18th, 2024 (edited)
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.14 KB | None | 0 0
  1. _28,_29,_2a,_2b,_2c,_2d,_2e,_2f,_30,_32=pcall,getmetatable,setmetatable,error,type,print,tostring,read,true,false local function _21()_c=_32 end local function _1()_28(sleep,2)end local function _2(t1,_17)local t={}_17=_17 or{[t1]=_30}for k,v in pairs(t1)do if _2c(v)=="table"and not _17[v]then _17[v]=_30 t[k]=_2(v,_17)_17[v]=t[k]elseif _2c(v)=="table"and _2c(_17[v])=="table"then t[k]=_17[v]else t[k]=v end end return t end local function _7(t1,t2)local t={}for k,v in pairs(t1)do t[k]=v end for k,v in pairs(t2)do t[k]=v end return t end local _3={sleep=sleep,write=write,print=_2d,printError=printError,read=_2f,_HOST=_HOST,_CC_DEFAULT_SETTINGS=_CC_DEFAULT_SETTINGS,error=_2b,string=_2(string),table=_2(table),math=_2(math),bit32=_2(bit32),select=select,unpack=unpack,utf8=_2(utf8),pairs=pairs,ipairs=ipairs,tostring=_2e,type=_2c,tonumber=tonumber,assert=assert,getmetatable=_29,next=next,pcall=_28,setmetatable=_2a,textutils=textutils,colors=colors,vector=vector,help=help}local _4={pullEvent=os.pullEvent,pullEventRaw=os.pullEventRaw,sleep=os.sleep,version=os.version,queueEvent=os.queueEvent,startTimer=os.startTimer,cancelTimer=os.cancelTimer,setAlarm=os.setAlarm,cancelAlarm=os.cancelAlarm,shutdown=os.shutdown,reboot=os.reboot,getComputerID=os.getComputerID,computerID=os.computerID,getComputerLabel=os.getComputerLabel,computerLabel=os.computerLabel,clock=os.clock,time=os.time,day=os.day,epoch=os.epoch,date=os.date}local _1a={define=function(name,options)end,undefine=function(name)end,set=function(name,value)end,get=settings.get,getDetails=function(name)end,unset=function(name)end,clear=function()end,getNames=settings.getNames,load=settings.load,save=function(path)end}local _6={list=fs.list,find=fs.find,isDriveRoot=fs.isDriveRoot,complete=fs.complete,combine=fs.combine,getName=fs.getName,open=function(path,mode)if(mode=="r"or mode=="rb")and not _2e(path):match("%.schem")then return fs.open(path,mode)else return _31,_2e(path)..": Access denied"end end,getName=fs.getName,getDir=fs.getDir,getSize=fs.getSize,exists=fs.exists,isDir=fs.isDir,isReadOnly=function(path)return _30 end,makeDir=function(path,mode)_2b(_2e(path)..": Access denied")end,move=function(path,dest)_2b"Access denied"end,copy=function(path,dest)_2b"Access denied"end,delete=function(path,dest)_2b(_2e(path)..": Access denied")end,getDrive=fs.getDrive,getFreeSpace=fs.getFreeSpace,getCapacity=fs.getCapacity,attributes=fs.attributes}local _5={execute=function(program,...)end,run=function(...)end,exit=function()end,dir=shell.dir,setDir=function(dir)end,path=shell.path,setPath=function(path)end,resolve=shell.resolve,resolveProgram=shell.resolveProgram,programs=shell.programs,complete=shell.complete,completeProgram=shell.completeProgram,setCompletionFunction=shell.setCompletionFunction,getCompletionInfo=shell.getCompletionInfo,getRunningProgram=shell.getRunningProgram,setAlias=shell.setAlias,clearAlias=shell.clearAlias,openTab=function(...)end,switchTab=function(...)end} function _0(_26,_16,_10,_11,_12)_c=_30 local _13={}local _d={_27=function(...)return ... end}_2a(_d,{__index=_26})if term.isColor()then term.setTextColor(16)end _2d"Interactive Lua prompt."term.setTextColor(1)while _c do s,err=_28(function()write(_16 and _2e(_16)or"> ")local s=_2f(_31,_13,function(_15)if settings.get"lua.autocomplete"then local _14=_15:find"[a-zA-Z0-9_%.:]+$"if _14 then _15=_15:sub(_14)end if #_15>0 then return textutils.complete(_15,_d)end end return _31 end)if s:match"%S"and _13[#_13]~=s then table.insert(_13,s)end local _19=0 local _1b,e=load(s,"lua","t",_d)local _1c,e2=load("return _27("..s..");","lua","t",_d)if not _1b then if _1c then _1b=_1c e=_31 _19=1 end else if _1c then _1b=_1c end end if _1b then local _18=table.pack(_28(_1b))if _18[1]then local n=1 while n<_18.n or(n<=_19)do local _24=_18[n+1]if _2c(_24)=="table"then local _23=_29(_24)if _2c(_23)=="table"and _2c(_23.__tostring)=="function"then _2d(_2e(_24))else local _25,_22=_28(textutils.serialise,_24)if _25 then _2d(_22)else _2d(_2e(_24))end end else _2d(_2e(_24))end n=n+1 end else if _2c(_10)=="function"then _10(_d,_18[2])end printError(_18[2])end else if _2c(_12)=="function"then _12(_d,e)end printError(e)end end)if not s and err=="Terminated"then _2d()end if _2c(_11)=="function"then _11(_d,s,err)end end end local _1d=peripheral.find"monitor"if _1d then term.redirect(_1d)_1d.setTextScale(0.5)end term.setBackgroundColor(32768)term.setTextColor(1)term.clear()term.setCursorPos(1,1)term.setTextColor(16384)_2d"Unbrick the computer!"local _a,_b=term.getSize()local _8=term.current()local _9=window.create(_8,1,2,_a,_b-1)term.redirect(_9)local function _e()term.setBackgroundColor(32768)term.setTextColor(1)term.clear()term.setCursorPos(1,1)if _1d then _1d.setTextScale(0.5)end end local pullEvent=os.pullEvent os.pullEvent=os.pullEventRaw _e()_28(_0,{exit=_21},"Stage 1> ")_1()_e()os.pullEvent=function(_1f)local _1e=table.pack(os.pullEventRaw(_1f))if _1e[1]=="terminate"then _21()_2b("Terminated",0)end return table.unpack(_1e,1,_1e.n)end _28(_0,_2(_3),"Stage 2> ")_1()os.pullEvent=os.pullEventRaw _e()_28(_0,_2(_3),"Stage 3> ",_21)_1()_e()_28(_0,_2(_3),"Stage 4> ",_31,_31,_21)_1()_e()_28(_0,_2(_3),"Stage 5> ",function(_d,_f)if _2e(_f):match"Too long without yielding"then _21()end end,function(_d,s,_f)if _2e(_f):match"Too long without yielding"then _21()end end)_1()_e()_28(_0,_7(_3,{os=_7(_4,{shutdown=_21,reboot=_21})}),"Stage 6> ")_1()local _20=_32 _e()_28(_0,_7(_3,{os=_2(_4),settings=_7(_1a,{set=function(name,value)if name=="shell.allow_startup"and value==_32 then _20=_30 end end,save=function(path)if _2c(path)=="string"or path==_31 and _20 then _21()end end})}),"Stage 7> ")_1()_e()_28(_0,_7(_3,{os=_2(_4),settings=_2(_1a),shell=_7(_5,{exit=_21,switchTab=_21,openTab=_21})}),"Stage 8> ")_1()_e()_28(_0,_7(_3,{os=_2(_4),settings=_2(_1a),shell=_2(_5),require=_21,dofile=_21,loadfile=_21}),"Stage 9> ")_1()_e()_28(_0,_7(_3,{os=_2(_4),settings=_2(_1a),shell=_2(_5),fs=_2(_6)}),"Stage 10> ",function(_d)if _d["cb8a91f0_f527_4133_9900_c531aa3edb7c"]=="3850b4ea-6174-4f89-ae65-bbe05aa85b95"then _21()end end)os.pullEvent=pullEvent _34,_33=_28(fs.open,".schem","r")_2d("The code is",_34 and _33 and _33.readAll()or"not here lmao")_28(_33.close)_1()s,e=_28(os.pullEventRaw)if e~="mouse_click"then os.reboot()end
Advertisement
Add Comment
Please, Sign In to add comment