Translate This Page

Monday, October 15, 2012

Tearing Locks Apart

Tearing Locks Apart
An Idea for ComputerCraft Development
By: Sledger721
 
 
        Locks in ComputerCraft are common, and all quite similar. They're used a lot also, which really bothers me. The average fool thinks that because they have a password lock hooked up to an iron door that they're safe, but they've never been more wrong. I've broken many more locks than I'm going to admit too right now, but what's pushed me to write about this is that someone posted a topic to the forums talking about a lock which was almost invincible.

        The lock that I'm going to be tearing apart is the lock from that topic, but I formatted the code: [Pastebin of Lock Code] . It is simple, and yet quite efficient. Now, time to pick it apart line-by-line.
        The first line disables the use of CTRL+T, and the next couple lines are just terminal controls. Then the program gets the input, and says that if it is equal too "Password" then set a redstone pulse on the right side for a wee bit, then turn it off. After that it reboots. The else statement handles any incorrect statements, and then reboots.
        The main way that I would go about getting through this lock is simply placing a disk with an empty startup file on a disk, placing it on the computer and then putting in an incorrect password. Once it rebooted, it would launch with the blank startup and go ahead and skip me straight to the shell. I also like to have my "blank" startup print a line, something along the lines of: print("Disk Bypass Initiated."), just to let me know that it had worked.
        Another way to bypass it is to use a brute-force method, but that's rare, complex, hard and should only be used when a disk-boot can't. I'm not going to go over it, but a Caesarian Shift on each character is a good way to go. It lags, but it's a good way to go.
 
        Thanks for reading guys :).
 - Sledger721

No comments:

Post a Comment