This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
Preventing a disk bypass
Started by justkunas, 13 January 2013 - 02:19 AMPosted 13 January 2013 - 03:19 AM
Im on a multiplayer server and have a computer controlled door which people cannot terminate, yet if they place a disk drive down with a disk with a startup code on it they can bypass it. is there a way to prevent this?
Posted 13 January 2013 - 03:21 AM
Hmm, the only way I can think of is pulling an event 'disk' and if it fires, turn on a redstone signal that is sent to a turtle which can then destroy the disk block.
Posted 13 January 2013 - 03:28 AM
there are lots of ways to prevent it… every way except one way CAN be prevented… the only way that can't is if they use ctrl + s, place down the drive and disk, turn on the computer…
as remiX said you can use a 'disk' event… my method would then check if the disk contains a startup and rename or delete it… this is what I do in my Advanced Door-Lock…. but the turtle way works too, unless they turn off the turtle…. :P/>
as remiX said you can use a 'disk' event… my method would then check if the disk contains a startup and rename or delete it… this is what I do in my Advanced Door-Lock…. but the turtle way works too, unless they turn off the turtle…. :P/>
Posted 13 January 2013 - 05:59 AM
The truth is the only way to stop this problem is to modify bios.lua, which can not be done in game.
Posted 13 January 2013 - 06:08 AM
You guys aren't really thinking outside the box. The box, as in the computer, haha.
The problem goes all the way back to being able to Ctrl+S the computer and use a disk drive. Since you can't prevent that with programming, why not prevent it physically?
Perhaps, on the way to your computer, you could have a hidden pressure plate/tripwire/ccsensor, and when a player steps by that isn't you (if there would be a way to detect that at all), just squish them with some pistons, or drop some lava on them, or unleash a room of skeletons and zombies to torch their ass. Maybe even set up a couple of fire arrow dispensers. A melee turtle army is also a very swift and deadly option. (these guys get half your hearts down without armor, jesus christ!)
If you do it right, you should be able to make it so that they won't be able to escape in time. Maybe make it so that once the player is at the computer and they get trapped, they have to mine obsidian in order to escape.
Of course I'm positive there's some mega ultra mining blaster tool or something in modpacks like tekkit or FTB, so there could always be a workaround. But that's just the battle of computer protection in the physical world, just like it is in the technological world.
The problem goes all the way back to being able to Ctrl+S the computer and use a disk drive. Since you can't prevent that with programming, why not prevent it physically?
Perhaps, on the way to your computer, you could have a hidden pressure plate/tripwire/ccsensor, and when a player steps by that isn't you (if there would be a way to detect that at all), just squish them with some pistons, or drop some lava on them, or unleash a room of skeletons and zombies to torch their ass. Maybe even set up a couple of fire arrow dispensers. A melee turtle army is also a very swift and deadly option. (these guys get half your hearts down without armor, jesus christ!)
If you do it right, you should be able to make it so that they won't be able to escape in time. Maybe make it so that once the player is at the computer and they get trapped, they have to mine obsidian in order to escape.
Of course I'm positive there's some mega ultra mining blaster tool or something in modpacks like tekkit or FTB, so there could always be a workaround. But that's just the battle of computer protection in the physical world, just like it is in the technological world.
Posted 13 January 2013 - 06:18 AM
Why so complicated ways? By a simple principle, make the computer only accessible from one side. If they put a diskdrive there then they can't restart the computer.
Posted 13 January 2013 - 06:22 AM
That really would only work on a server where players can't dig blocks.
Posted 13 January 2013 - 06:29 AM
yeah well if they can dig blocks they would just break the computer anyways
EDIT: There is an even easier way for them. They put a lever on the computer and flick it. Now the door is open, how magic.
EDIT: There is an even easier way for them. They put a lever on the computer and flick it. Now the door is open, how magic.
Posted 13 January 2013 - 06:49 AM
well one way that I don't think it is possible to hack is to set up an advanced monitor and on the monitor have a num key pad…that's not hack able since you cant access the CPU. This is assuming that they cant just break the blocks…if they could they would just break the door
Posted 13 January 2013 - 06:50 AM
Not if you prevent them from doing so using an outrageous method like the ones I've described.yeah well if they can dig blocks they would just break the computer anyways
EDIT: There is an even easier way for them. They put a lever on the computer and flick it. Now the door is open, how magic.
Where the hell did I ever mention a door?…if they could they would just break the door
Posted 13 January 2013 - 07:07 AM
Where the hell did I ever mention a door?…if they could they would just break the door
ummm I'm confused…this thread is about making a computer controlled door lock….and your not even the OP….Im on a multiplayer server and have a computer controlled door which people cannot terminate, yet if they place a disk drive down with a disk with a startup code on it they can bypass it. is there a way to prevent this?
Posted 13 January 2013 - 07:09 AM
I was just on the subject of preventing Ctrl+S, haha.
Posted 13 January 2013 - 07:30 AM
well if you do everything from a monitor you couldn't ctrl+s or +r….
Posted 13 January 2013 - 07:34 AM
They could just break the monitor, though. So at this point the safest bet is either to get really good with redstone and pistons and do something really clever, or go to a server with block breaking protection.
Posted 13 January 2013 - 07:46 AM
well if someone can just break the block then their is no use for a computer lock…they would just force their way in or break the computer
Posted 13 January 2013 - 08:18 AM
You have a rednet terminal. All it does is send the input password to the computer that actually controls the door.
So breaking or reprogramming the terminal does nothing (except set off a bunch of death traps). It doesn't even help them to locate the actual control computer.
So breaking or reprogramming the terminal does nothing (except set off a bunch of death traps). It doesn't even help them to locate the actual control computer.
Posted 14 January 2013 - 09:39 PM
if you move the startup file to a disk and put a disk drive on top an insert the disk
note: cover up the disk drive so you can not access it
how this works is the disk order and it goes this way top>bottom>back>front>left>right
note: cover up the disk drive so you can not access it
how this works is the disk order and it goes this way top>bottom>back>front>left>right
Posted 15 January 2013 - 01:57 AM
Thats an very good idea!if you move the startup file to a disk and put a disk drive on top an insert the disk
note: cover up the disk drive so you can not access it
how this works is the disk order and it goes this way top>bottom>back>front>left>right