--Alle Rechte an SimSoft 2.1 sind "SimlorLP" (oder in Minecraft auch nur "Simlor") vorbehalten. --Function function Clear() term.clear() term.setCursorPos(1,1) end function CP(x,y) term.setCursorPos(x,y) end function TC(farbe) term.setTextColor(farbe) end function BC(farbe) term.setBackgroundColor(farbe) end --System l = 1 while true do --englisch if l == 1 then BC(128) Clear() CP(1,1) BC(32768) print(" ") print(" ") print(" ") CP(15,2) TC(1) print("SimSoft 2.1 - Installer") TC(1) BC(128) CP(4,5) print("Welcome to the installer of SimSoft 2.1") CP(2,8) TC(256) print("Choose a language") CP(4,18) TC(1) print("Tip - Use the arrow keys") CP(47,18) TC(256) print("1/4") CP(4,10) BC(128) TC(1) print(" >English ") CP(4,11) BC(128) TC(256) print(" Deutsch ") --Deutsch elseif l == 2 then BC(128) Clear() CP(1,1) BC(32768) print(" ") print(" ") print(" ") CP(15,2) TC(1) print("SimSoft 2.1 - Installer") TC(1) BC(128) CP(4,5) print("Willkommen im Installer von SimSoft 2.1") CP(2,8) TC(256) print("Waehle eine Sprache") CP(4,18) TC(1) print("Tipp - Nutze die Pfeiltasten") CP(47,18) TC(256) print("1/4") CP(4,10) BC(128) TC(256) print(" English ") CP(4,11) BC(128) TC(1) print(" >Deutsch ") end a, b = os.pullEvent() while a~= "key" do a,b = os.pullEvent() end if b == 208 then l = 2 end if b == 200 then l = 1 end if b == 28 then if l == 1 then sprache = "en_uk" break elseif l == 2 then sprache = "de_de" break end end end -- if sprache == "en_uk" then BC(128) Clear() CP(1,1) BC(32768) print(" ") print(" ") print(" ") CP(15,2) TC(1) print("SimSoft 2.1 - Installer") TC(1) BC(128) CP(4,5) print("Terms of use") CP(2,8) TC(256) print("-All rights are reserved to") CP(2,9) print(" SimlorLP (or just Simlor)") CP(2,11) print("-Changes in the system may be carried out") CP(2,12) print(" only with the permission of SimlorLP.") CP(4,18) TC(1) print("Tip - Use the arrow keys") CP(47,18) TC(256) print("2/4") l = 1 while true do if l == 1 then CP(4,15) BC(128) TC(32768) print("Yes, continue ") CP(20,15) BC(128) TC(32768) print("[No, cancel] ") elseif l == 2 then CP(4,15) BC(128) TC(32768) print("[Yes, continue]") CP(20,15) BC(128) TC(32768) print("No, cancel ") end a, b = os.pullEvent() while a~= "key" do a,b = os.pullEvent() end if b == 203 then l = 2 end if b == 205 then l = 1 end if b == 28 then if l == 1 then os.reboot() break elseif l == 2 then break end end end --Teil 2 BC(128) Clear() CP(1,1) BC(32768) print(" ") print(" ") print(" ") CP(15,2) TC(1) print("SimSoft 2.1 - Installer") BC(128) TC(256) CP(4,6) print("New PC-Name -") CP(4,8) print("New Passwort -") CP(47,18) TC(256) print("3/4") CP(20,6) TC(32768) name = read() CP(20,8) TC(32768) pass = read() --Teil 3 BC(128) Clear() CP(1,1) BC(32768) print(" ") print(" ") print(" ") CP(15,2) TC(1) print("SimSoft 2.1 - Installer") BC(128) CP(20,10) TC(1) print("Let's go!") CP(20,11) TC(256) print(" [Enter]") BC(128) CP(2,17) TC(256) print("Cancel") CP(2,18) print(" [Q]") CP(47,18) TC(256) print("4/4") while true do a, b = os.pullEvent() while a~= "key" do a,b = os.pullEvent() end if b == 16 then os.reboot() end if b == 28 then break end end --Teil 4 - Installer BC(128) TC(32) Clear() shell.run("cd /") fs.delete("SimSoft/System") fs.delete("SimSoft/SappS") fs.delete("SimSoft/Daten") fs.delete("startup") os.setComputerLabel(name) Clear() BC(128) Clear() CP(1,1) BC(32768) print(" ") print(" ") print(" ") CP(15,2) TC(1) print("SimSoft 2.1 - Installer") CP(3,8) BC(256) print(" ") CP(3,8) BC(1) write(" ") local file = fs.open("SimSoft/Daten/User","w") file.close() local file = fs.open("SimSoft/Daten/User","a") file.writeLine(name) file.close() local file = fs.open("SimSoft/Daten/User","a") file.writeLine(pass) file.close() local file = fs.open("SimSoft/Daten/User","a") file.writeLine("t") file.close() local file = fs.open("SimSoft/Daten/User","a") file.writeLine("t") file.close() local file = fs.open("SimSoft/Daten/User","a") file.writeLine("2.1.7") file.close() -- write(" ") -- local file = fs.open("SimSoft/Daten/SappS/1","w") file.close() local file = fs.open("SimSoft/Daten/SappS/1","a") file.writeLine("") file.close() local file = fs.open("SimSoft/Daten/SappS/1","a") file.writeLine("") file.close() local file = fs.open("SimSoft/Daten/SappS/1","a") file.writeLine("") file.close() local file = fs.open("SimSoft/Daten/SappS/1","a") file.writeLine("") file.close() local file = fs.open("SimSoft/Daten/SappS/1","a") file.writeLine("n") file.close() local file = fs.open("SimSoft/Daten/SappS/1","a") file.writeLine("false") file.close() -- write(" ") -- u = 1 while true do u = (u+1) fs.copy("SimSoft/Daten/SappS/1", "SimSoft/Daten/SappS/"..u) if u == 15 then break end end local file = fs.open("SimSoft/Daten/SappS/A","w") file.writeLine("0.0") file.close() function Download(Pfad, CodePB) local cacheBuster = ("%x"):format(math.random(0, 2 ^ 30)) local datei = http.get("https://pastebin.com/raw/" .. textutils.urlEncode(CodePB) .. "?cb=" .. cacheBuster) datei = datei.readAll() local file = fs.open(Pfad, "w") file.write(datei) file.close() write(" ") end Download("SimSoft/System/Desktop", "Xec88YHS") Download("SimSoft/System/SappS", "MLN0FMex") Download("SimSoft/System/SappSLoeschen", "ZiVBcdQz") Download("SimSoft/System/SystemStart", "yqW1NwWK") Download("SimSoft/Daten/DesktopBG", "5UqmydfY") Download("startup", "UW2qzgVj") Download("SimSoft/System/SystemUpdate", "AgRNRe9v") Download("SimSoft/System/LiveSystem", "mcMy84XC") print(" ") sleep(1) Clear() shell.run("pastebin run gYWVytWa") shell.run("pastebin run Ur7UYAqY") shell.run("pastebin run LwYn7AUC") shell.run("pastebin run i2cVCN45") shell.run("pastebin run ueCZm9vG") shell.run("pastebin run jVELp2st") shell.run("pastebin run 0LCz2dEZ") os.reboot() ----------- elseif sprache == "de_de" then BC(128) Clear() CP(1,1) BC(32768) print(" ") print(" ") print(" ") CP(15,2) TC(1) print("SimSoft 2.1 - Installer") TC(1) BC(128) CP(4,5) print("Nutzungsbedingungen") CP(2,8) TC(256) print("-Alle Rechte sind SimlorLP (oder auch Simlor)") CP(2,9) print(" vorbehalten.") CP(2,11) print("-Es duerfen nur mit Einstimmung von SimlorLP,") CP(2,12) print(" Aenderungen im System vorgenommen werden.") CP(4,18) TC(1) print("Tipp - Nutze die Pfeiltasten") CP(47,18) TC(256) print("2/4") l = 1 while true do if l == 1 then CP(4,15) BC(128) TC(32768) print("Ok, weiter ") CP(20,15) BC(128) TC(32768) print("[Abbrechen] ") elseif l == 2 then CP(4,15) BC(128) TC(32768) print("[Ok, weiter] ") CP(20,15) BC(128) TC(32768) print("Abbrechen ") end a, b = os.pullEvent() while a~= "key" do a,b = os.pullEvent() end if b == 203 then l = 2 end if b == 205 then l = 1 end if b == 28 then if l == 1 then os.reboot() break elseif l == 2 then break end end end --Teil 2 BC(128) Clear() CP(1,1) BC(32768) print(" ") print(" ") print(" ") CP(15,2) TC(1) print("SimSoft 2.1 - Installer") BC(128) TC(256) CP(4,6) print("Neuer PC-Name -") CP(4,8) print("Neues Passwort -") CP(2,16) TC(1) print("Tipp - Lege nun deinen Namen und") CP(2,17) print(" ein Passwort fest.") CP(47,18) TC(256) print("3/4") CP(21,6) TC(32768) name = read() CP(21,8) TC(32768) pass = read() --Teil 3 BC(128) Clear() CP(1,1) BC(32768) print(" ") print(" ") print(" ") CP(15,2) TC(1) print("SimSoft 2.1 - Installer") BC(128) CP(20,10) TC(1) print("Los geht's!") CP(20,11) TC(256) print(" [Enter]") BC(128) CP(2,17) TC(256) print("Abbrechen") CP(2,18) print(" [Q]") CP(47,18) TC(256) print("4/4") while true do a, b = os.pullEvent() while a~= "key" do a,b = os.pullEvent() end if b == 16 then os.reboot() end if b == 28 then break end end --Teil 4 - Installer BC(128) TC(32) Clear() shell.run("cd /") fs.delete("SimSoft/System") fs.delete("SimSoft/SappS") fs.delete("SimSoft/Daten") fs.delete("startup") os.setComputerLabel(name) Clear() BC(128) Clear() CP(1,1) BC(32768) print(" ") print(" ") print(" ") CP(15,2) TC(1) print("SimSoft 2.1 - Installer") CP(3,8) BC(256) print(" ") CP(3,8) BC(1) write(" ") local file = fs.open("SimSoft/Daten/User","w") file.close() local file = fs.open("SimSoft/Daten/User","a") file.writeLine(name) file.close() local file = fs.open("SimSoft/Daten/User","a") file.writeLine(pass) file.close() local file = fs.open("SimSoft/Daten/User","a") file.writeLine("t") file.close() local file = fs.open("SimSoft/Daten/User","a") file.writeLine("t") file.close() local file = fs.open("SimSoft/Daten/User","a") file.writeLine("2.1.7") file.close() -- write(" ") -- local file = fs.open("SimSoft/Daten/SappS/1","w") file.close() local file = fs.open("SimSoft/Daten/SappS/1","a") file.writeLine("") file.close() local file = fs.open("SimSoft/Daten/SappS/1","a") file.writeLine("") file.close() local file = fs.open("SimSoft/Daten/SappS/1","a") file.writeLine("") file.close() local file = fs.open("SimSoft/Daten/SappS/1","a") file.writeLine("") file.close() local file = fs.open("SimSoft/Daten/SappS/1","a") file.writeLine("n") file.close() local file = fs.open("SimSoft/Daten/SappS/1","a") file.writeLine("false") file.close() -- write(" ") -- u = 1 while true do u = (u+1) fs.copy("SimSoft/Daten/SappS/1", "SimSoft/Daten/SappS/"..u) if u == 15 then break end end local file = fs.open("SimSoft/Daten/SappS/A","w") file.writeLine("0.0") file.close() function Download(Pfad, CodePB) local cacheBuster = ("%x"):format(math.random(0, 2 ^ 30)) local datei = http.get("https://pastebin.com/raw/" .. textutils.urlEncode(CodePB) .. "?cb=" .. cacheBuster) datei = datei.readAll() local file = fs.open(Pfad, "w") file.write(datei) file.close() write(" ") end Download("SimSoft/System/Desktop", "33G37GU9") Download("SimSoft/System/SappS", "upF7Jgpz") Download("SimSoft/System/SappSLoeschen", "ff47QhmG") Download("SimSoft/System/SystemStart", "ysJQGD57") Download("SimSoft/Daten/DesktopBG", "5UqmydfY") Download("startup", "UW2qzgVj") Download("SimSoft/System/SystemUpdate", "zrfHcZAK") Download("SimSoft/System/LiveSystem", "mcMy84XC") print(" ") sleep(1) Clear() shell.run("pastebin run gYWVytWa") shell.run("pastebin run Ur7UYAqY") shell.run("pastebin run LwYn7AUC") shell.run("pastebin run i2cVCN45") shell.run("pastebin run ueCZm9vG") shell.run("pastebin run jVELp2st") shell.run("pastebin run 0LCz2dEZ") os.reboot() end