Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ FancySecurity ]]--
- --[[ Variable ]]--
- local user, update = "admin", "update"
- local pass = "default"
- local a1, a2, a3, a4, a5 = "Granted!", "Denied!", "Incorrect username!" , "Incorrect password!" , "Idle..."
- local currentVersion = "1.0.2"
- local url_handle, version = http.get("http://pastebin.com/raw.php?i=Tmw4C4NX")
- local version = url_handle.readAll()
- --[[ Code ]]--
- function ss()
- term.clear()
- term.setCursorPos(1,1)
- print("+---------------------+")
- print("|FancySecurity |")
- print("+---------------------+")
- print()
- print("+------------------------+")
- print("|Username: |")
- print("+------------------------+")
- print("+------------------------+")
- print("|Password: |")
- print("+------------------------+")
- print()
- print("Access: "..a5.."")
- end
- function login()
- term.setCursorPos(11,6)
- input = read()
- if input == update then
- updateCheck()
- end
- if input == user then
- term.setCursorPos(11,8)
- input = read("*")
- else
- term.setCursorPos(9,11)
- print(a3)
- shell.run("startup")
- if input == pass then
- term.clear()
- term.setCursorPos(1,1)
- print("+---------------------+")
- print("|FancySecurity |")
- print("+---------------------+")
- else
- term.setCursorPos(9,11)
- print(a1)
- end
- end
- end
- function updateCheck()
- term.clear()
- term.setCursorPos(1,1)
- shell.run("pastebin run Tmw4C4NX")
- end
- ss()
- login()
Advertisement
Add Comment
Please, Sign In to add comment