Posted 13 July 2012 - 12:38 AM
Hey guy, this is my program that makes your computer password protected.
I'm new with lua so the coding isn't very complex, even though you don't need complex coding to do this.
First off let's learn about this. (This is basics for the program, most people will be able to skip through most of this and still use the program fully)
[indent=1]The code:[/indent]
[indent=1]
[indent=1]Have this code as the startup program on your computer. (If this code doesn't work let me know because it is a copying error I would have made.)[/indent]
[indent=1]You can change the prints to customize the interface, but, if that print/write occurs later in the coding the two should match. (You could just change the whole interface if you want more tricky though.)[/indent]
[indent=1]Here is the main interface, it shows after the computer boots and after you enter an incorrect password.[/indent]
[indent=1][/indent]
[indent=1]This is the interface that shows up when you enter an incorrect password, it reverts to the main interface after two seconds.[/indent]
[indent=1][/indent]
[indent=1]This is the interface that shows up when you enter the correct password, after one second it clears the screen and you have access to the computer.[/indent]
[indent=1][/indent]
[indent=1]There are ways to get past this lock lock like almost every one I know about. If you boot it from a floppy you can get past the password, A way to prevent this is if you make it so only one side of the computer is open and the other sides can't be opened by an intruder. This would be done by surrounding the surface in blocks that only you (and friends maybe) can destroy. You would need access to bedrock or be able to protect blocks with a plugin on the server. That way if they put the disk drive on the computer, they can not click the computer (if they have more person they may be able to do this though). The computer never reboots before you get the password correct, so you can't do something like get the wrong pass then put the disk drive to load the floppy.[/indent]
[indent=1]That's all i think, if there is any info you want on it, ask and I can add it.[/indent]
I'm new with lua so the coding isn't very complex, even though you don't need complex coding to do this.
First off let's learn about this. (This is basics for the program, most people will be able to skip through most of this and still use the program fully)
[indent=1]The code:[/indent]
[indent=1]
os.pullEvent = os.pullEventRaw
term.clear()
term.setCursorPos(1,1)
print("Borta Computer Security 1.1")
print("UserName: Nynoray")
write("Password: ")
function pass()
t = io.read()
if t == "rhino" then
print ("Access Granted.")
sleep(2)
term.clear()
term.setCursorPos(1,1)
else
print ("Incorrect Login Details.")
sleep(1)
term.clear()
term.setCursorPos(1,1)
print("Borta Computer Security 1.1")
print("UserName: Nynoray")
write("Password: ")
pass()
end
end
pass()
[/indent][indent=1]Have this code as the startup program on your computer. (If this code doesn't work let me know because it is a copying error I would have made.)[/indent]
[indent=1]You can change the prints to customize the interface, but, if that print/write occurs later in the coding the two should match. (You could just change the whole interface if you want more tricky though.)[/indent]
[indent=1]Here is the main interface, it shows after the computer boots and after you enter an incorrect password.[/indent]
[indent=1][/indent]
[indent=1]This is the interface that shows up when you enter an incorrect password, it reverts to the main interface after two seconds.[/indent]
[indent=1][/indent]
[indent=1]This is the interface that shows up when you enter the correct password, after one second it clears the screen and you have access to the computer.[/indent]
[indent=1][/indent]
[indent=1]There are ways to get past this lock lock like almost every one I know about. If you boot it from a floppy you can get past the password, A way to prevent this is if you make it so only one side of the computer is open and the other sides can't be opened by an intruder. This would be done by surrounding the surface in blocks that only you (and friends maybe) can destroy. You would need access to bedrock or be able to protect blocks with a plugin on the server. That way if they put the disk drive on the computer, they can not click the computer (if they have more person they may be able to do this though). The computer never reboots before you get the password correct, so you can't do something like get the wrong pass then put the disk drive to load the floppy.[/indent]
[indent=1]That's all i think, if there is any info you want on it, ask and I can add it.[/indent]