|
Post by titatsuu on Mar 29, 2013 10:11:01 GMT -5
I make a super programs =) :
print("Password ?") text = read() if text == ("yourpassword") then term.clear() term.setCursorPos(8.10) print("Run of the system , please wait ...") sleep(4) term.clear() term.setCursorPos(1,1) print("Hello ! Can I help You ?") end
|
|
|
Post by MrCrusade on Apr 7, 2013 10:42:06 GMT -5
My opinion would be: name of program: startup --------------------------- os.pullEvent() = os.pullEventRaw() shell.run("clear") print("Please enter Password for Login.") pass = read("*") if pass == "yourpassword" then shell.run("clear") print("Preparing to log in...") sleep(3) shell.run("clear") print("Logged in.") else shell.run("clear") print(YourMessageToFrightenBruteForceUsers) sleep(60) -- to punish 'em and prevent bruteforce end
|
|
|
Post by motoredge on Apr 18, 2013 7:50:52 GMT -5
I'd say this is the best version, not to boast xD example_password = "hellothere" function clearScreen() term.clear() term.setCursorPos(1,1) end print("Initialising Password Lock...") sleep(2) clearScreen() write("Password: ") --They enter password after the ":" local input = read("*") if input == example_password then print("Password Correct. Access Granted.") sleep(2) rs.setOutput("left", true) --[Change the side where it says "left" to whatever side your door is on or the redstone you want to activate]-- sleep(2) rs.setOutput("left", false) os.reboot() else print("Password Incorrect. Access Denied.") sleep(2) os.reboot()
|
|
LoopyUndergroundApe
Guest
|
Post by LoopyUndergroundApe on Oct 28, 2013 16:37:31 GMT -5
os.pullEvent() = os.pullEventRaw() shell.run("clear") redpower = "right" failedlogins = 0 correctpass = "106837" print("Please enter Password:") pass = read("*") if pass == correctpass then shell.run("clear") sleep(2) rs.setOutput(redpower, true) sleep(2) rs.setOutput(redpower, false) os.shutdown() elseif failedlogins =< 3 then function clearScreen() print("Please enter Password:") pass = read("*") if pass == correctpass then shell.run("clear") sleep(2) rs.setOutput(redpower, true) sleep(2) rs.setOutput(redpower, false) os.shutdown() elseif failedlogins => 3 shell.run("clear") print("I'm sorry, but that is incorrect… System locking down…") sleep(60) end
|
|
|
Post by zack on Mar 15, 2014 10:02:06 GMT -5
I'd say this is the best version, not to boast xD example_password = "hellothere" function clearScreen() term.clear() term.setCursorPos(1,1) end print("Initialising Password Lock...") sleep(2) clearScreen() write("Password: ") --They enter password after the ":" local input = read("*") if input == example_password then print("Password Correct. Access Granted.") sleep(2) rs.setOutput("left", true) --[Change the side where it says "left" to whatever side your door is on or the redstone you want to activate]-- sleep(2) rs.setOutput("left", false) os.reboot() else print("Password Incorrect. Access Deniedk.") sleep(2) os.reboot() """""""""""""""" but then they could just do Ctrl + t and terminate the program
|
|
|
Post by zack on Mar 15, 2014 10:05:59 GMT -5
My opinion would be: name of program: startup --------------------------- os.pullEvent() = os.pullEventRaw() shell.run("clear") print("Please enter Password for Login.") pass = read("*") if pass == "yourpassword" then shell.run("clear") print("Preparing to log in...") sleep(3) shell.run("clear") print("Logged in.") else shell.run("clear") print(YourMessageToFrightenBruteForceUsers) sleep(60) -- to punish 'em and prevent bruteforce end Looks great with one small exception , no death trap like maybe if they get it wrong do rs.setoutput("bottom", true) to something like a hidden trap door that opens to a pit of lava lol
|
|
|
Post by Lewisk3 on Apr 26, 2014 8:40:32 GMT -5
cool, but
doesnt look to colorfull maybe add some color to ur program so it looks appealing to people on an advanced computer oh and maybe make a username and password to login and make it so ur username and password are saved onto a file in the compter
|
|
|
Post by Brix on Aug 27, 2014 2:12:13 GMT -5
My opinion would be: name of program: startup --------------------------- os.pullEvent() = os.pullEventRaw() shell.run("clear") print("Please enter Password for Login.") pass = read("*") if pass == "yourpassword" then shell.run("clear") print("Preparing to log in...") sleep(3) shell.run("clear") print("Logged in.") else shell.run("clear") print(YourMessageToFrightenBruteForceUsers) sleep(60) -- to punish 'em and prevent bruteforce end Really good. I made some minor additions though, for example the computer is shutdown if the password is incorrect, and the os.pullEvent() = os.pullEventRaw() isn't there anymore. I also removed the sleep(60) tag at the end, and replaced it with a shell.run("shutdown") instead. But thanks!
|
|
|
Post by Dragonslayerlk on Aug 30, 2015 21:39:29 GMT -5
I need a Securtiy system that when the correct password is entered the screen turned green then is logged on a separate advanced monitor with the players name. If the password is incorrect the screen turned red and is logged on the advanced monitors with the players name in red. The names remain on the advanced boards (2x4) till an admin enters the proper code to clear the names!
Also have a request for a program for pnumatic craft elivator for controlling the elivator with multiple floors.
|
|