This is my 2nd try on making this password lock more secure by making it impossible to terminate the program. I've done a complete overhaul of the coding and replaced mostly everything. This also fixes the <eof> bug that's been happening a lot. The new version's been breaking crap lately. Also, for Debugging, create a disk drive that's accessible only from the inside and create a boot disk to bypass BlockDefender.
To make it simple to install instead of copying it down word by word, You can just download it using this link: https://dl.dropboxusercontent.com/u/102613256/BlockDefender 3.1.zip (Door Lock)
The computer login version will come soon. I still have to fix a major bug.
Installing it is simple and takes seconds to install. The instructions are included in the zip file.
BlockDefender 3.1 *Experimental Version* Door Lock
os.pullEvent = os.pullEventRaw local password = "Default" -- Change Default pass to anything. Don't remove ". local doorside = "right" -- The value here changes where the door is. Don't remove ". local opentime = 5 -- This value sets how long the door will stay open. local loadtime = 1 -- This value makes you wait. Change value to 0 to make it snappy. while true do term.clear() term.setCursorPos(1,1) write "BlockDefender 3.1 *EXPERIMENTAL* " write "Loading Program... " sleep (loadtime) write "Password: " local input = read ("*") if input == password then term.clear() term.setCursorPos (1,1) write "Logging in... " sleep (loadtime) write "Login Accepted. " rs.setOutput (doorside,true) sleep (opentime) rs.setOutput (doorside,false) os.shutdown() else -- If you're having the <eof> bug, remove this. term.clear() term.setCursorPos (1,1) write "Logging in... " sleep (loadtime) write "Login Failed. Try again." sleep (3) end end
I'm not really sure if this counts as a content pack.
This section is for addon mods to other mods.
This isn't a mod,so it's not really a content.
But it is user-developed content for a mod,so it counts too...
pArAdOx wooOOOOAAaaAAAaaHhhhh
Rollback Post to RevisionRollBack
Quote from Keeltoll »
Yo dawg I heard you like playing Portal so now you can play Portal while playing Minecraft while going to Hell.
The Meaning of Life, the Universe, and Everything.
Location:
Tulsa
Join Date:
7/15/2011
Posts:
55
Minecraft:
CraveMode
Xbox:
CraveMode
PSN:
CraveMode
Member Details
Thanks for posting your script, it would be great for singleplayer. For multiplayer, door locks are not very secure, as people can close the program with Ctr + T. So to secure it, look into os.pullEvent() and os.pullEventRaw()to disable the Ctr+T Bypass. This would also require you to enter a Debug (aka administrators) password that would close the program so the owner can modify the script or access the computer console as he couldn't Ctrl+T.
Also, I would not make it sleep before asking for an input for password, or people will have to wait a long time just to enter their password to get into the door.. not good if you are being chased.
One last thing, should have it shutdown instead of reboot.. don't want it running all the time when it doesn't need to be.
I would post a script with all this in it, but this is not my thread and I would rather help to make the one posted here better for those who want it for multiplayer
I just saw this, yes, that is what you can use for the Debug or Admin password to access the console when you disable Ctrl+T. You would want B to exit the program, while A you want it to send a redstone event and then shutdown (not reboot).
I'm no expert, but if you just reboot the computer, then wouldn't it relock itself?
It will if you add it to startup, and if you don't, people can just reboot computer.
It's not really as effective as some others I have seen, and there are better versions available on the ComputerCraft wiki.
It will re lock itself after 3 Seconds so it opens the door, it waits for 3 seconds and shuts the door and reboots
Thanks for posting your script, it would be great for singleplayer. For multiplayer, door locks are not very secure, as people can close the program with Ctr + T. So to secure it, look into os.pullEvent() and os.pullEventRaw()to disable the Ctr+T Bypass. This would also require you to enter a Debug (aka administrators) password that would close the program so the owner can modify the script or access the computer console as he couldn't Ctrl+T.
Also, I would not make it sleep before asking for an input for password, or people will have to wait a long time just to enter their password to get into the door.. not good if you are being chased.
One last thing, should have it shutdown instead of reboot.. don't want it running all the time when it doesn't need to be.
I would post a script with all this in it, but this is not my thread and I would rather help to make the one posted here better for those who want it for multiplayer
Keep up the good work!
I just saw this, yes, that is what you can use for the Debug or Admin password to access the console when you disable Ctrl+T. You would want B to exit the program, while A you want it to send a redstone event and then shutdown (not reboot).
I will make a faster booting version of the door lock and make it even more secure in the future but for now i need to keep my server up. If i ever have spare time again, i will work on it.
nice work man! i'm a total noob in lua so found this pretty usefull so i dont get hacked when i play online with computercraft, thanks for sharing this with others.
I also wrote a little program like this and want to publish it here:
It comes in 3 files, one being the "startup" which loads the main part, the second one being the "config" file, which contains the configurable options for the passwort and the time the output is set to ON and last the "open" file, which just controls the redstone outputs.
To install it, just put the files of the zip into your computer folder
if you want to change the password, which is "nuke" by default, you can edit the config file. Same for the time the output should stay on. Download!
Um, Runner, do we have to write the script as a whole sentence? Because when I typed in os.reboot() in just one line and pressed enter, it rebooted the computer.
Um, Runner, do we have to write the script as a whole sentence? Because when I typed in os.reboot() in just one line and pressed enter, it rebooted the computer.
To make it simple to install instead of copying it down word by word, You can just download it using this link: https://dl.dropboxusercontent.com/u/102613256/BlockDefender 3.1.zip (Door Lock)
The computer login version will come soon. I still have to fix a major bug.
Installing it is simple and takes seconds to install. The instructions are included in the zip file.
BlockDefender 3.1 *Experimental Version* Door Lock
os.pullEvent = os.pullEventRaw
local password = "Default" -- Change Default pass to anything. Don't remove ".
local doorside = "right" -- The value here changes where the door is. Don't remove ".
local opentime = 5 -- This value sets how long the door will stay open.
local loadtime = 1 -- This value makes you wait. Change value to 0 to make it snappy.
while true do
term.clear()
term.setCursorPos(1,1)
write "BlockDefender 3.1 *EXPERIMENTAL* "
write "Loading Program... "
sleep (loadtime)
write "Password: "
local input = read ("*")
if input == password then
term.clear()
term.setCursorPos (1,1)
write "Logging in... "
sleep (loadtime)
write "Login Accepted. "
rs.setOutput (doorside,true)
sleep (opentime)
rs.setOutput (doorside,false)
os.shutdown()
else -- If you're having the <eof> bug, remove this.
term.clear()
term.setCursorPos (1,1)
write "Logging in... "
sleep (loadtime)
write "Login Failed. Try again."
sleep (3)
end
end
Developer, gamer, and a mediocre pixel artist.
You should really check out Dokucraft: TSC.
"write("Successful Login!"
shouldn't there be another ) at the end?
redstone.setOutput("left, true)
sleep(3)
redstone.setOutput("left, false)
after "if password" line?
This section is for addon mods to other mods.
This isn't a mod,so it's not really a content.
But it is user-developed content for a mod,so it counts too...
pArAdOx wooOOOOAAaaAAAaaHhhhh
you're right! you should put that in
that was for the Door lock Version the 1st one was for only locking the computer
Also, I would not make it sleep before asking for an input for password, or people will have to wait a long time just to enter their password to get into the door.. not good if you are being chased.
One last thing, should have it shutdown instead of reboot.. don't want it running all the time when it doesn't need to be.
I would post a script with all this in it, but this is not my thread and I would rather help to make the one posted here better for those who want it for multiplayer
Keep up the good work!
I just saw this, yes, that is what you can use for the Debug or Admin password to access the console when you disable Ctrl+T. You would want B to exit the program, while A you want it to send a redstone event and then shutdown (not reboot).
Put the key in and press enter in the console an then grab the floppy an walk on in!
It will re lock itself after 3 Seconds so it opens the door, it waits for 3 seconds and shuts the door and reboots
I will make a faster booting version of the door lock and make it even more secure in the future but for now i need to keep my server up. If i ever have spare time again, i will work on it.
oh and a password lock with a floppy is not that easy... i tried it and my version didn't work
It comes in 3 files, one being the "startup" which loads the main part, the second one being the "config" file, which contains the configurable options for the passwort and the time the output is set to ON and last the "open" file, which just controls the redstone outputs.
To install it, just put the files of the zip into your computer folder
if you want to change the password, which is "nuke" by default, you can edit the config file. Same for the time the output should stay on.
Download!
Tried doing that. I failed after. Never worked. All i kept gettung was an error for getting the code messed up.
Did anyone even read my post?
{Camels bring peace}
Does anyone know a way to fix this? (Im using Tekkit.)