Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Program that bypasses the startup on a Computer or a Turtle Minecraft
- --
- -- and that visually simulates the hack of that computer or Turtle
- --
- -- Program to be copied on a "disk" with the name "startup"
- --
- -- Program created by Vorakh
- -----------------------------------
- NAME_PROG = "Vorakh"
- NAME_OS = NAME_PROG.."OS"
- VERSION = "v2.5"
- BYPASS_TEXT = NAME_OS .. " Bypass " .. VERSION
- S1 = false
- S2 = false
- ------------------------------------
- -- Visual function of the bypass startup
- function HackOS()
- local progress = 0
- term.clear()
- term.setCursorPos(1,1)
- print("Detected file \"startup\" on this computer.")
- print("")
- sleep(0.5)
- write("HackOS Disk boot in progress")
- for i = 1, 3 do
- sleep(1)
- write(".")
- end
- sleep(1.5)
- term.setCursorPos(19, 4)
- print("completed! ")
- sleep (2)
- print("")
- print("Sub-Routine HackOS "..VERSION)
- print("")
- sleep(1)
- print("Performing Routine Cracking OS")
- sleep(1)
- print("Progress: "..progress.."%")
- for i = 1, 3 do
- progress = progress + 25
- sleep(2)
- term.setCursorPos(12,9)
- print(progress.."%")
- end
- sleep(3)
- term.setCursorPos(12,9)
- print("Completed!")
- print("")
- for i = 1, 3, 1 do
- sleep(1)
- write(".")
- end
- sleep(1)
- shell.run("clear")
- for i = 1, #BYPASS_TEXT do
- local char = BYPASS_TEXT:sub(i, i)
- write(char)
- sleep(0.1)
- end
- print("")
- end
- local function creaStartup(nome)
- local s = fs.open(nome, "w")
- s.write("shell.run(\"clear\")")
- s.write("\nprint(\""..BYPASS_TEXT.."\")")
- s.close()
- end
- local function archiviaStartup(nome)
- local archiviato = "old-" .. nome
- shell.run("mv", nome, archiviato)
- end
- local function noStartup()
- shell.run("clear")
- print("Computer without file \"startup\", start OS without modification...")
- sleep(3)
- os.reboot()
- end
- -- Checking the existence of the file "startup" on the Computer or Turtle
- -- on which you run the program
- if fs.exists("/startup") then
- S1 = true
- local nome = "startup"
- archiviaStartup(nome)
- creaStartup(nome)
- end
- if fs.exists("/startup.lua") then
- S2 = true
- local nome = "startup.lua"
- archiviaStartup(nome)
- creaStartup(nome)
- end
- if S1 or S2 then
- HackOS()
- else
- -- In case there is no file "startup" is notified screen
- -- for a few seconds and then the message disappears
- noStartup()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement