Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArg = {...}
- fs.makeDir("os/SystemFiles/Programs")
- fs.makeDir("os/SystemFiles/Users")
- fs.makeDir(fs.combine("os/SystemFiles/Users",tArg[1],"Documents"))
- fs.makeDir(fs.combine("os/SystemFiles/Users",tArg[1],"Images"))
- fs.makeDir(fs.combine("os/SystemFiles/Users",tArg[1],"Videos"))
- fs.makeDir(fs.combine("os/SystemFiles/Users",tArg[1],"Favorites"))
- fs.makeDir("os/System/Scripts")
- fs.makeDir("os/System/Files")
- fs.makeDir("os/System/Files/Images")
- fs.makeDir("os/System/Packages")
- fs.makeDir("os/Backups")
- fs.makeDir("boot/Security")
- fs.makeDir("boot/Methods/start")
- fs.makeDir("boot/Methods/Update")
- fs.makeDir("boot/Methods/Crash")
- fs.makeDir("boot/Files")
- local ReqFiles = {{"boot/Methods/start/Mount.lua","mnmuBqNY"},{"boot/Security/SystemIntegrityCheck.lua","2GakChNZ"},{"os/System/start.lua","Doc"},{"startup.lua","Doc"},{"boot/BootInstructions.txt","Doc"},{"os/SystemFiles/Paths.txt","Doc"}}
- local Req = fs.open("boot/Security/ReqFiles.txt","w")
- Req.write(textutils.serialize(ReqFiles))
- Req.close()
- local User = fs.open(fs.combine("os/SystemFiles/Users",tArg[1],"userData.os"),"w")
- User.writeLine(tArg[1])--Username
- User.writeLine(tArg[2])--Password
- User.writeLine(1)
- User.writeLine(math.random(11111,99999))--IP
- User.close()
- local BTI = fs.open("boot/BootInstructions.txt","w")
- BTI.writeLine("boot/Methods/start/Mount.lua")
- BTI.writeLine("boot/Security/SystemIntegrityCheck.lua")
- BTI.writeLine("os/System/start.lua")
- BTI.close()
- local Paths = fs.open("os/SystemFiles/Paths.txt","w")
- Paths.writeLine("User = "..tArg[1])
- Paths.writeLine("Programs = 'os/SystemFiles/Programs'")
- Paths.writeLine("Scripts = 'os/System/Scripts'")
- Paths.writeLine("Files = 'os/System/Files'")
- Paths.close()
- local TaskBar = fs.open("os/SystemFiles/TaskbarShortcuts.txt","w")
- TaskBar.close()
- local Desktop = fs.open("os/SystemFiles/DesktopShortcuts.txt","w")
- Desktop.close()
- local BR = fs.open("boot/Reader.lua","w")
- BR.writeLine("local Content")
- BR.writeLine("local file = fs.open('boot/BootInstructions.txt','r')")
- BR.writeLine("repeat")
- BR.writeLine(" Content = file.readLine()")
- BR.writeLine(" if Content ~= nil then shell.run(Content) end")
- BR.writeLine("until Content == nil")
- BR.writeLine("file.close()")
- BR.close()
- local St = fs.open("startup.lua","w")
- St.writeLine("shell.run('boot/Reader.lua')")
- St.close()
- local OST = fs.open("os/System/start.lua","w")
- OST.writeLine("os.queueEvent('taskOpen','os/System/Scripts/Desktop.lua')")
- OST.writeLine("shell.run('os/System/Scripts/Taskmanager.lua')")
- OST.close()
- shell.run("pastebin","get","mnmuBqNY","boot/Methods/start/Mount.lua")
- shell.run("pastebin","get","2GakChNZ","boot/Security/SystemIntegrityCheck.lua")
- shell.run("pastebin","get","10nkCrPq","os/System/Scripts/Taskmanager.lua")
- shell.run("pastebin","get","iGb2xSwW","os/System/Scripts/Desktop.lua")
- shell.run("pastebin","get","tu1bkxmE","os/System/Scripts/ShortcutManager.lua")
- fs.makeDir("os/SystemFiles/Programs/FileNavigator.cpf")
- shell.run("pastebin","get","fYyfirUr","os/SystemFiles/Programs/FileNavigator.cpf/Navigator.lua")
- shell.run("pastebin","run","GQne73JY")
- shell.run("os/System/Scripts/ShortcutManager.lua","FileNav","os/SystemFiles/Programs/FileNavigator.cpf/Navigator.lua","Taskbar")
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement