Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pastebinCode = "anZq3PdH"
- local startupPath = "/startup.lua"
- local programPath = "/password_protected_system.lua"
- -- Download the code from Pastebin
- local response = http.get("https://pastebin.com/raw/" .. pastebinCode)
- if response then
- local code = response.readAll()
- response.close()
- -- Save the code to the computer's filesystem
- local file = fs.open(programPath, "w")
- file.write(code)
- file.close()
- -- Create or update the startup script
- local startupFile = fs.open(startupPath, "w")
- startupFile.writeLine('shell.run("' .. programPath .. '")')
- startupFile.close()
- print("Installation successful!")
- print("Rebooting in 3 seconds...")
- sleep(3)
- os.reboot()
- else
- print("Failed to download code from Pastebin.")
- end
Advertisement
Add Comment
Please, Sign In to add comment