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
1
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