This is a simple terminal locking program with Termination Blocking so no easy bypassing and it even has an install disk so you can put it on computers easier this program also works on turtles
Default Password for the term lock is 123
Install Disk
—————————-
Put this code to a floppy disk and name the file startup
--Made By Djblocksaway
--TermLock 1.1
while true do
term.clear()
term.setCursorPos(1,1)
print "Press Enter To Install Term Lock 1.1"
aba = read()
term.clear()
term.setCursorPos(1,1)
disk.setLabel("left","Term Lock Installer!")
disk.setLabel("right","Term Lock Installer!")
disk.setLabel("top","Term Lock Installer!")
disk.setLabel("bottom","Term Lock Installer!")
disk.setLabel("back","Term Lock Installer!")
disk.setLabel("front","Term Lock Installer!")
print "Welcome to Term Lock 1.1 Installer!"
sleep(2)
print " "
print "Installing!"
sleep(1)
print " "
if fs.exists("startup") then
term.clear()
term.setCursorPos(1,1)
print "File Already Exists!"
print " "
print "Ejecting Disk!"
disk.eject("top")
disk.eject("bottom")
disk.eject("back")
disk.eject("front")
disk.eject("left")
disk.eject("right")
sleep(3)
os.shutdown()
end
fs.copy("disk/termlock","startup")
print "Copying File disk/termlock"
sleep(2)
print " "
print "Thanks For Useing Term Lock Installer!"
print " "
print "Default Pass is 123"
print "Use (edit startup) To Change It!"
disk.eject("top")
disk.eject("back")
disk.eject("left")
disk.eject("front")
disk.eject("right")
disk.eject("bottom")
sleep(3)
os.shutdown()
end
Put this code on the same floppy disk and call the file termlock
function os.pullEvent()
local event, p1, p2, p3, p4, p5 = os.pullEventRaw()
if event == "terminate" then
end
return event, p1, p2, p3, p4, p5
end
term.clear()
term.setCursorPos(1,1)
print "Term Lock 1.1"
print " "
write ("Password: ")
--Pass Can Be Changed Here
correctpass = "123"
pass = read("*")
if pass == (correctpass) then
term.clear()
term.setCursorPos(1,1)
write("Correct!")
sleep(2)
term.clear()
term.setCursorPos(1,1)
print "Welcome!"
term.setCursorPos(1,3)
rs.setOutput("left", true)
rs.setOutput("right",true)
rs.setOutput("back",true)
rs.setOutput("bottom",true)
rs.setOutput("top",true)
rs.setOutput("front",true)
sleep(4)
rs.setOutput("left", false)
rs.setOutput("back",false)
rs.setOutput("top",false)
rs.setOutput("right",false)
rs.setOutput("bottom",false)
rs.setOutput("front",false)
else
print " "
write("Incorrect! Rebooting!")
sleep(2)
os.reboot()
end
——————————————————
Direct Way
—————————
Put this code on a computer and call the file startup
--Made By Djblocksaway
--Term Lock Version 1.1
function os.pullEvent()
local event, p1, p2, p3, p4, p5 = os.pullEventRaw()
if event == "terminate" then
end
return event, p1, p2, p3, p4, p5
end
term.clear()
term.setCursorPos(1,1)
print "Term Lock 1.1"
print " "
write ("Password: ")
--Pass Can Be Changed Here
correctpass = "123"
pass = read("*")
if pass == (correctpass) then
term.clear()
term.setCursorPos(1,1)
write("Correct!")
sleep(2)
term.clear()
term.setCursorPos(1,1)
print "Welcome!"
term.setCursorPos(1,3)
rs.setOutput("left", true)
rs.setOutput("right",true)
rs.setOutput("back",true)
rs.setOutput("bottom",true)
rs.setOutput("top",true)
rs.setOutput("front",true)
sleep(4)
rs.setOutput("left", false)
rs.setOutput("back",false)
rs.setOutput("top",false)
rs.setOutput("right",false)
rs.setOutput("bottom",false)
rs.setOutput("front",false)
else
print " "
write("Incorrect! Rebooting!")
sleep(2)
os.reboot()
end