Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("What Password you want?")
- local pass = read("*")
- print("What side is the door?")
- local side = read()
- print("What is the time the door keeps open in seconds?")
- local time = read()
- print("What is the admin Password?")
- local admin = read("*")
- fs.copy("/disk/pass", "/disk/installer")
- sleep(3);
- file = fs.open("/disk/installer", "r")
- local content = file.readAll()
- print("done reading")
- file.close()
- if file then
- print("Colecting Stuff...")
- local stuff = "local password = "..[["]]..pass..[["]]
- local stuff1 = "local side = "..[["]]..side..[["]]
- local timer = "local opentime = "..time
- local adminpass = "local admin = "..[["]]..admin..[["]]
- print("Organizing stuff")
- local content = stuff .. '\n' .. stuff1 .. '\n' .. timer .. '\n' .. adminpass .. '\n' .. content
- print("Preparing file")
- file = fs.open("/disk/installer", "w")
- print("Writing Stuff")
- file.write(content)
- print("Closing file")
- file.close()
- print("Instaling File")
- fs.copy("/disk/installer", "/startup")
- print("Cleaning temp files")
- fs.delete("/disk/installer")
- print("Restarting")
- sleep(2)
- os.reboot()
- print("Done instaling security program")
- end
Add Comment
Please, Sign In to add comment