Unhackable Password Door (Simple)
#1
Posted 11 October 2012 - 02:43 AM
while true do
os.pullEvent =os.pullEventRaw
term.clear()
term.setCursorPos(1, 1)
write("Please Enter Password: ")
input = read("*")
if input == "Password" then
redstone.setOutput("right", true)
sleep(3)
redstone.setOutput("right", false)
sleep(1)
os.reboot()
else
print("Incorrect! Try again later.")
sleep(1)
print("Shutting Down")
sleep(1)
os.reboot()
end
end
That is all />
#2
Posted 11 October 2012 - 04:24 AM
#3
Posted 11 October 2012 - 04:33 AM
You could however drop a disk drive next to the computer with a blank startup file on a disk and take a look at the code.
#4
Posted 11 October 2012 - 12:14 PM
Edit: Read luanub's post as well, but with restating his arguement I aimed to give a better focus on the actual problem and a possible solution.
#5
Posted 11 October 2012 - 01:48 PM
MrZuribachi, on 11 October 2012 - 12:14 PM, said:
Edit: Read luanub's post as well, but with restating his arguement I aimed to give a better focus on the actual problem and a possible solution.
#6
Posted 11 October 2012 - 02:10 PM
os.pullEvent = os.pullEventRawThis prevents users from using any keys, like CTRL+S, CTRL+T, CTRL+R and whatever.
#7
Posted 11 October 2012 - 02:12 PM
I keep hearing people say it blocks them all; does nobody actually test these things before repeating them?
#8
Posted 11 October 2012 - 02:42 PM
#9
Posted 11 October 2012 - 03:34 PM
#10
Posted 11 October 2012 - 03:35 PM
MrZuribachi, on 11 October 2012 - 02:42 PM, said:
#11
Posted 11 October 2012 - 03:41 PM
Also, no offense, but this isn't useful, there are hundreds of scripts just like this except better. People need to stop posting completely basic "security systems".
#12
Posted 11 October 2012 - 03:47 PM
#13
Posted 11 October 2012 - 03:56 PM
#14
Posted 11 October 2012 - 04:50 PM
People think of hacking as just being the malicious people/programs that get into your computer and mess it up. But hacking is also what you have to do to get in and repair that broken computer.
So bottom line is no matter what you do, short of server mods that protect blocks, people will be able to hack your computers no matter what - but that means you will always be able to get back in the computer to fix it, too. The latter is crucial, and the two can't be separated, so you'll just have to live with the former.
#15
Posted 11 October 2012 - 04:59 PM
maybe put this in your code so its not just like the daily crappy doorlock that people think will revolutionize computercraft (no offense meant)
#16
Posted 11 October 2012 - 05:50 PM
#17
Posted 13 October 2012 - 01:10 AM
Cranium, on 11 October 2012 - 03:35 PM, said:
MrZuribachi, on 11 October 2012 - 02:42 PM, said:
Is there a way to cause the computer to reboot on pressing CTRL, thus not allowing the 1 sec required for CTRL+ hotkeys..
#18
Posted 13 October 2012 - 01:43 AM
Left4Cake, on 13 October 2012 - 01:10 AM, said:
Cranium, on 11 October 2012 - 03:35 PM, said:
MrZuribachi, on 11 October 2012 - 02:42 PM, said:
Is there a way to cause the computer to reboot on pressing CTRL, thus not allowing the 1 sec required for CTRL+ hotkeys..
#19
Posted 13 October 2012 - 03:57 AM
os.run("shell") -- This will bypass anything set as a startup and head the user straight to the shell. There they can do whatever they want, hopefully in my case break this wretched lock :.
#20
Posted 13 October 2012 - 04:43 AM
tommyroyall, on 13 October 2012 - 03:57 AM, said:
os.run("shell") -- This will bypass anything set as a startup and head the user straight to the shell. There they can do whatever they want, hopefully in my case break this wretched lock :.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users