Jump to content




Unhackable Password Door (Simple)


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

#21 Zoinky

  • Members
  • 144 posts
  • LocationWellington, New Zealand

Posted 13 October 2012 - 10:15 AM

View PostLeft4Cake, on 13 October 2012 - 01:10 AM, said:

View PostCranium, on 11 October 2012 - 03:35 PM, said:

View PostMrZuribachi, on 11 October 2012 - 02:42 PM, said:

Well, I already tested it and none of my programs got unfluenced by pressing CTRL+S / R after using the os.pullEventRaw-line.
That is a lie. A flat-faced lie. CTRL+S and CTRL+R are hardcoded into the java code. There is no way to prevent those from affecting your code.

Is there a way to cause the computer to reboot on pressing CTRL, thus not allowing the 1 sec required for CTRL+ hotkeys..

Actually, It doesn't matter if the program closes/the computer reboots. CTRL + S/R will always work. As Cranium said, They're hardcoded in.

#22 1lann

  • Members
  • 516 posts
  • LocationSeattle

Posted 13 October 2012 - 02:50 PM

View PostHancomat55, on 13 October 2012 - 04:43 AM, said:

View Posttommyroyall, on 13 October 2012 - 03:57 AM, said:

Easy Solution: Disk boot from the right side. Boot it up with a startup that says:
os.run("shell")
-- This will bypass anything set as a startup and head the user straight to the shell. There they can do whatever they want, hopefully in my case break this wretched lock :.
That is a good one and i doubt it is possible to hack into
Open the disk drive, remove the disk and replace it with a disk with a blank startup? It's impossible to make something in CC unhackable unless you have some 3rd party plugin/mod which protects the disk drive and/or computer. Ex. on a bukkit sevrer you can use lwc or lockette if the server has them installed.

#23 B00mX0r

  • New Members
  • 20 posts

Posted 13 October 2012 - 11:43 PM

I found a hack

Step 1. Place redstone torch next to door.
Step 2. h4x3d.

tl;dr: It's more secure to make doors inverted so this doesn't happen on servers.

#24 Zoinky

  • Members
  • 144 posts
  • LocationWellington, New Zealand

Posted 14 October 2012 - 01:52 AM

View PostB00mX0r, on 13 October 2012 - 11:43 PM, said:

I found a hack

Step 1. Place redstone torch next to door.
Step 2. h4x3d.

tl;dr: It's more secure to make doors inverted so this doesn't happen on servers.

Yep. Pistons! :)/>

#25 ChaddJackson12

  • Members
  • 264 posts

Posted 14 October 2012 - 03:14 AM

View PostHancomat55, on 13 October 2012 - 01:43 AM, said:

View PostLeft4Cake, on 13 October 2012 - 01:10 AM, said:

View PostCranium, on 11 October 2012 - 03:35 PM, said:

View PostMrZuribachi, on 11 October 2012 - 02:42 PM, said:

Well, I already tested it and none of my programs got unfluenced by pressing CTRL+S / R after using the os.pullEventRaw-line.
That is a lie. A flat-faced lie. CTRL+S and CTRL+R are hardcoded into the java code. There is no way to prevent those from affecting your code.

Is there a way to cause the computer to reboot on pressing CTRL, thus not allowing the 1 sec required for CTRL+ hotkeys..
I dont know, probably not because it is all scripted together. But you could try looking in the CC folder
Yes it is possible, I did it in one of my programs, but they could still put a disk in then press Ctrl, so there still is no protecting that.

#26 ChaddJackson12

  • Members
  • 264 posts

Posted 14 October 2012 - 03:19 AM

I think I may have found a solution to the problem about boot disks!

When someone's presses Ctrl, have the computer reboot; but before rebooting have it delete disk/startup, or even multiple disk startups; and THEN reboot the computer, meaning that if they put a disk in then press control, their disk would no longer have a startup to exit the normal program!

Tell me how well this works for you!
Like this:
repeat
   event, key = os.pullEvent("key")
   os.sleep(0.1)
until key == (# for LCTRL) or key == (# for RCTRL) or key == (# for ENTER)
If key == (# for LCTRL) or key == (# for RCTRL) then
   if fs.exists("disk/startup") then
      fs.delete("disk/startup")
      os.reboot()
   else
      os.reboot()
   end
elseif key == (# for ENTER) then
   -- password script
end
Sorry I don't have the numbers for the IDs of the keys but I am unsure of them and am too lazy to look for them at the moment :3. Hope that I helped

#27 Hancomat55

  • New Members
  • 6 posts

Posted 14 October 2012 - 03:51 AM

View PostChaddJackson12, on 14 October 2012 - 03:19 AM, said:

I think I may have found a solution to the problem about boot disks!

When someone's presses Ctrl, have the computer reboot; but before rebooting have it delete disk/startup, or even multiple disk startups; and THEN reboot the computer, meaning that if they put a disk in then press control, their disk would no longer have a startup to exit the normal program!

Tell me how well this works for you!
Like this:
repeat
   event, key = os.pullEvent("key")
   os.sleep(0.1)
until key == (# for LCTRL) or key == (# for RCTRL) or key == (# for ENTER)
If key == (# for LCTRL) or key == (# for RCTRL) then
   if fs.exists("disk/startup") then
	  fs.delete("disk/startup")
	  os.reboot()
   else
	  os.reboot()
   end
elseif key == (# for ENTER) then
   -- password script
end
Sorry I don't have the numbers for the IDs of the keys but I am unsure of them and am too lazy to look for them at the moment :3. Hope that I helped
That is a pretty good idea. I could see that working. :)/>

#28 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 14 October 2012 - 05:10 AM

Just tested. Still responds to Ctrl + S. bypassed still...

#29 Fatal_Exception

  • New Members
  • 105 posts

Posted 14 October 2012 - 06:56 AM

View PostChaddJackson12, on 14 October 2012 - 03:19 AM, said:

I think I may have found a solution to the problem about boot disks!

When someone's presses Ctrl, have the computer reboot; but before rebooting have it delete disk/startup, or even multiple disk startups; and THEN reboot the computer, meaning that if they put a disk in then press control, their disk would no longer have a startup to exit the normal program!

Tell me how well this works for you!
Like this:
repeat
   event, key = os.pullEvent("key")
   os.sleep(0.1)
until key == (# for LCTRL) or key == (# for RCTRL) or key == (# for ENTER)
If key == (# for LCTRL) or key == (# for RCTRL) then
   if fs.exists("disk/startup") then
	  fs.delete("disk/startup")
	  os.reboot()
   else
	  os.reboot()
   end
elseif key == (# for ENTER) then
   -- password script
end
Sorry I don't have the numbers for the IDs of the keys but I am unsure of them and am too lazy to look for them at the moment :3. Hope that I helped

All you'd have to do is shut the computer down, then switch disks.

#30 matejdro

  • Members
  • 324 posts

Posted 14 October 2012 - 07:41 AM

I think it's secure enough for door lock. If someone can place disk drive next to it, then he can probably just break the door or place down lever.

Cranium: what about having two computers that keeps starting each other? That way you cannot swap disks fast enough.

#31 robhol

  • Members
  • 182 posts

Posted 14 October 2012 - 07:44 AM

View PostB00mX0r, on 13 October 2012 - 11:43 PM, said:

I found a hack

Step 1. Place redstone torch next to door.
Step 2. h4x3d.

tl;dr: It's more secure to make doors inverted so this doesn't happen on servers.

If you actually CAN place/destroy stuff in the area, use 5 seconds and dig around the door...

#32 Zoinky

  • Members
  • 144 posts
  • LocationWellington, New Zealand

Posted 14 October 2012 - 09:01 AM

You could just simply integrate the computer into the wall next to the door. Then only the front face is available. Place dick drive = computer face blocked.

#33 1lann

  • Members
  • 516 posts
  • LocationSeattle

Posted 14 October 2012 - 10:16 AM

It is literally impossible to do this without some form of protection. No matter what you do without block protection, it is hack able. Even the original program would work if people couldn't place/destroy blocks around the computer

#34 ChaddJackson12

  • Members
  • 264 posts

Posted 14 October 2012 - 02:08 PM

View PostFatal_Exception, on 14 October 2012 - 06:56 AM, said:

View PostChaddJackson12, on 14 October 2012 - 03:19 AM, said:

I think I may have found a solution to the problem about boot disks!

When someone's presses Ctrl, have the computer reboot; but before rebooting have it delete disk/startup, or even multiple disk startups; and THEN reboot the computer, meaning that if they put a disk in then press control, their disk would no longer have a startup to exit the normal program!

Tell me how well this works for you!
Like this:
repeat
   event, key = os.pullEvent("key")
   os.sleep(0.1)
until key == (# for LCTRL) or key == (# for RCTRL) or key == (# for ENTER)
If key == (# for LCTRL) or key == (# for RCTRL) then
   if fs.exists("disk/startup") then
	  fs.delete("disk/startup")
	  os.reboot()
   else
	  os.reboot()
   end
elseif key == (# for ENTER) then
   -- password script
end
Sorry I don't have the numbers for the IDs of the keys but I am unsure of them and am too lazy to look for them at the moment :3. Hope that I helped

All you'd have to do is shut the computer down, then switch disks.
Ah, I was thinking that the commands reset at the reboot of the computer. But I guess not.

#35 darkrising

  • Members
  • 234 posts
  • LocationScotland

Posted 14 October 2012 - 10:51 PM

Server plugins are always nice, stop people placing those pesky disk drives near your door :)/>

#36 Hancomat55

  • New Members
  • 6 posts

Posted 15 October 2012 - 12:35 AM

View Postrobhol, on 14 October 2012 - 07:44 AM, said:

View PostB00mX0r, on 13 October 2012 - 11:43 PM, said:

I found a hack

Step 1. Place redstone torch next to door.
Step 2. h4x3d.

tl;dr: It's more secure to make doors inverted so this doesn't happen on servers.

If you actually CAN place/destroy stuff in the area, use 5 seconds and dig around the door...
I like your thinking :D/>

#37 tommyroyall

  • Members
  • 136 posts

Posted 15 October 2012 - 01:48 AM

View PostZoinky, on 14 October 2012 - 09:01 AM, said:

You could just simply integrate the computer into the wall next to the door. Then only the front face is available. Place dick drive = computer face blocked.
Two people. One right clicks. One places drive and disk. First one runs it correctly. Job done. Teamwork. ???. PROFIT!

#38 tommyroyall

  • Members
  • 136 posts

Posted 15 October 2012 - 01:59 AM

So, summing this entire post and all of it's comments up: Nothing is un-hackable.

#39 ChaddJackson12

  • Members
  • 264 posts

Posted 15 October 2012 - 02:48 AM

View Posttommyroyall, on 15 October 2012 - 01:59 AM, said:

So, summing this entire post and all of it's comments up: Nothing is un-hackable.
Wrong. You can't hack something with protection; such as LWC. Otherwise, you're correct.

#40 Blockeh

  • New Members
  • 6 posts
  • LocationFibreOpticsWorldWide

Posted 15 October 2012 - 11:01 AM

View PostCranium, on 11 October 2012 - 05:50 PM, said:

But you can't stop someone from using ctrl s, putting the disk in, then restarting the computer.
But you could always add a code so when a disk is entered just shell.run("startup") to make it run the computers startup again.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users