Jump to content




[Lua] Highly Secure Door lock

lua computer utility

  • This topic is locked This topic is locked
32 replies to this topic

#21 TheGamerOfAction

  • Members
  • 20 posts
  • LocationIn a mysterious world of 1s and 0s

Posted 11 July 2013 - 10:53 AM

The easy way to 'hack' the door is to just mine it down :lol:
Other than that, I'm not sure if you can hack it.

#22 electrodude512

  • Members
  • 167 posts
  • LocationEastern USA

Posted 11 July 2013 - 11:39 AM

View PostRodmastercraft, on 07 July 2013 - 01:09 PM, said:

i created a even more secure login program. It has a rednet connection with another computer witch has the password saved. It also has the os.pullEvent = os.pullEventRaw. So even someone can use a floppy disk to enter the computer and even that they edit the code the password dont show up. Of course, like other programs this one has a weak point and its not 100% impossible to bypass.
...
So the computer that asks for the password will receive the password from the other computer and see if it is the same. If it is it will open terminal(and then it cant make more things...This is just an example).
Simple and more secure.. Yet is not the most safe program! people can make a program that receives the password from the computer that has the password and print it in the computer that asks for the password. :D

Rednet messages can be intercepted by listening to the right channels. This could be made secure if you added some kind of encryption and a challenge-response sequence from the password server.

#23 RoD

  • Members
  • 313 posts

Posted 12 July 2013 - 04:58 AM

View Postelectrodude512, on 11 July 2013 - 11:39 AM, said:

View PostRodmastercraft, on 07 July 2013 - 01:09 PM, said:

i created a even more secure login program. It has a rednet connection with another computer witch has the password saved. It also has the os.pullEvent = os.pullEventRaw. So even someone can use a floppy disk to enter the computer and even that they edit the code the password dont show up. Of course, like other programs this one has a weak point and its not 100% impossible to bypass.
...
So the computer that asks for the password will receive the password from the other computer and see if it is the same. If it is it will open terminal(and then it cant make more things...This is just an example).
Simple and more secure.. Yet is not the most safe program! people can make a program that receives the password from the computer that has the password and print it in the computer that asks for the password. :D

Rednet messages can be intercepted by listening to the right channels. This could be made secure if you added some kind of encryption and a challenge-response sequence from the password server.
Yup i know thats one of the projects i am working on...A encryption program i am getting a little confuse but i think i can menage it :D thnks for the advice

#24 reububble

  • Members
  • 72 posts
  • LocationBehind you

Posted 15 July 2013 - 08:21 AM

View PostXenthera, on 10 July 2013 - 03:06 PM, said:

Not sure what you mean by "Not prone to disk" but this is just as easily 'hackable' as any other security program on here.
Without editing certain files outside of game, NOTHING is secure on computercraft.

I challenge you to break into the program while it's running, and saved in startup. You may use all keys, clicks, add peripherals and blocks around it, but you may NOT destroy the computer or search through the computercraft directory. Imagine the block is protected and you're on a server, the only way in is to either hack, or know the password.

By 'Not prone to disk' I mean that no matter what you do you will not be able to get the computer to restart with a disk/startup file. Please understand

#25 rhyleymaster

  • Members
  • 186 posts
  • LocationCanada

Posted 15 July 2013 - 01:43 PM

The only way to make it 'Not prone to disk' is to edit the roms, which you cant do on a server unless you edit the resource pack itself.

#26 reububble

  • Members
  • 72 posts
  • LocationBehind you

Posted 15 July 2013 - 04:21 PM

View Postrhyleymaster, on 15 July 2013 - 01:43 PM, said:

The only way to make it 'Not prone to disk' is to edit the roms, which you cant do on a server unless you edit the resource pack itself.
No, no that is not the only way. Remember how computers can check if there is a disk near them and eject it instantly? Remember how you can ensure the computer is not turned off by the user (most people can do this part), and did you know that you can also stop any computer from turning your computer off also?
If you can't turn it off, can't insert a disk while it's on, and you're not allowed to break the computer/door, then how are you meant to get in without a password?

#27 MysticT

    Lua Wizard

  • Members
  • 1,597 posts

Posted 15 July 2013 - 04:44 PM

View Postreububble, on 15 July 2013 - 04:21 PM, said:

View Postrhyleymaster, on 15 July 2013 - 01:43 PM, said:

The only way to make it 'Not prone to disk' is to edit the roms, which you cant do on a server unless you edit the resource pack itself.
No, no that is not the only way. Remember how computers can check if there is a disk near them and eject it instantly? Remember how you can ensure the computer is not turned off by the user (most people can do this part), and did you know that you can also stop any computer from turning your computer off also?
If you can't turn it off, can't insert a disk while it's on, and you're not allowed to break the computer/door, then how are you meant to get in without a password?
1) Press Ctrl+S to shut down the computer.
2) Place disk drive next to the computer.
3) Insert disk with blank startup file.
4) Click the computer to turn it on.
5) ????
6) PROFIT!

Also, why was this post revived? O.o

#28 ElvishJerricco

  • Members
  • 803 posts

Posted 15 July 2013 - 04:55 PM

View Postreububble, on 15 July 2013 - 04:21 PM, said:

View Postrhyleymaster, on 15 July 2013 - 01:43 PM, said:

The only way to make it 'Not prone to disk' is to edit the roms, which you cant do on a server unless you edit the resource pack itself.
No, no that is not the only way. Remember how computers can check if there is a disk near them and eject it instantly? Remember how you can ensure the computer is not turned off by the user (most people can do this part), and did you know that you can also stop any computer from turning your computer off also?
If you can't turn it off, can't insert a disk while it's on, and you're not allowed to break the computer/door, then how are you meant to get in without a password?

Yea MysticT's right. You can't stop ctrl+S from shutting a computer down, and other computers using the peripheral functions can't be stopped. If they can get a disk in the disk drive, you can't stop them getting in without editing the rom.

#29 Xenthera

  • Members
  • 170 posts

Posted 15 July 2013 - 07:23 PM

View Postreububble, on 15 July 2013 - 08:21 AM, said:

View PostXenthera, on 10 July 2013 - 03:06 PM, said:

Not sure what you mean by "Not prone to disk" but this is just as easily 'hackable' as any other security program on here.
Without editing certain files outside of game, NOTHING is secure on computercraft.

I challenge you to break into the program while it's running, and saved in startup. You may use all keys, clicks, add peripherals and blocks around it, but you may NOT destroy the computer or search through the computercraft directory. Imagine the block is protected and you're on a server, the only way in is to either hack, or know the password.

By 'Not prone to disk' I mean that no matter what you do you will not be able to get the computer to restart with a disk/startup file. Please understand

It's quite ironic, because I did try to break in. Which, like I said, is really easy. You can't stop the computer from being shutdown, which is why it's so vulnerable.

#30 reububble

  • Members
  • 72 posts
  • LocationBehind you

Posted 16 July 2013 - 03:03 AM

Ctrl+S. I never even use Ctrl+S, no wonder. How about attach a computer to your computer which is told to continually turnOn the other computer until it knows you're not pressing Ctrl+S?

side="right" -- if the main computer is on the right
while true do
os.pullEvent("redstone")
if rs.getInput(side) then
  parallel.waitForAny(
   function()
	while true do
	 peripheral.call(side,turnOn)
         os.queueEvent('blah') os.pullEvent('blah') -- to yield
	end
   end,
   function()
	while true do
	 os.pullEvent("redstone")
	 if rs.getInput(side) then
	  break
	 end
	end
   end)
  end
end
end

Now all you need to do is to add into the previous code

if ev=="key" then
if p1=29 then
  rs.setOutput(side,true) sleep(0.05)
  rs.setOutput(side,false) -- remember that 'side' needs to be the side the other computer is on
else
  rs.setOutput(side,true) sleep(0.05)
  rs.setOutput(side,false)
end
end

this is fun!

#31 MysticT

    Lua Wizard

  • Members
  • 1,597 posts

Posted 16 July 2013 - 09:43 AM

View Postreububble, on 16 July 2013 - 03:03 AM, said:

Ctrl+S. I never even use Ctrl+S, no wonder. How about attach a computer to your computer which is told to continually turnOn the other computer until it knows you're not pressing Ctrl+S?

side="right" -- if the main computer is on the right
while true do
os.pullEvent("redstone")
if rs.getInput(side) then
  parallel.waitForAny(
   function()
	while true do
	 peripheral.call(side,turnOn)
		 os.queueEvent('blah') os.pullEvent('blah') -- to yield
	end
   end,
   function()
	while true do
	 os.pullEvent("redstone")
	 if rs.getInput(side) then
	  break
	 end
	end
   end)
  end
end
end

Now all you need to do is to add into the previous code

if ev=="key" then
if p1=29 then
  rs.setOutput(side,true) sleep(0.05)
  rs.setOutput(side,false) -- remember that 'side' needs to be the side the other computer is on
else
  rs.setOutput(side,true) sleep(0.05)
  rs.setOutput(side,false)
end
end

this is fun!
Then just turn off the other computer first :P

#32 reububble

  • Members
  • 72 posts
  • LocationBehind you

Posted 16 July 2013 - 03:07 PM

Then just have the other computer also running the 'secondary' function from the first computer? :P

#33 jesusthekiller

  • Banned
  • 562 posts
  • LocationWrocław, Poland

Posted 19 July 2013 - 05:30 AM

Holly smokes, next door lock...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users