Jump to content




Bypass Disk Startup


  • You cannot reply to this topic
35 replies to this topic

#1 Imque

  • Members
  • 134 posts

Posted 15 April 2013 - 05:16 PM

Hai!

How can I bypass disk startup when a disk drive is attached. Not for stopping a program but instead for my boot loader.

#2 Spongy141

  • Members
  • 526 posts
  • Location'Merica

Posted 15 April 2013 - 05:20 PM

I don't think you can. But there's always the Computercraft wiki :P

#3 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 15 April 2013 - 05:21 PM

You cannot.. You would have to edit the bios :P

#4 JokerRH

  • Members
  • 147 posts

Posted 16 April 2013 - 09:25 AM

You can. If you insert a disk it will cause an event to appear. All you have to do is create a coroutine that waits for that event and then renames disk/startup to something else.

#5 Spongy141

  • Members
  • 526 posts
  • Location'Merica

Posted 16 April 2013 - 10:21 AM

^
No, the disk will override the computers startup, so no mater what, the computers startup wont load, as long as the disk has a file called "startup", so nothing you do to "created" computer startup file will have an affect.

#6 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 16 April 2013 - 10:27 AM

The best way to override startups from other disks is to have a startup disk on the top of the computer, then hide it somehow.

#7 Sariaz

  • Members
  • 107 posts

Posted 16 April 2013 - 05:41 PM

A way I've found that will fool most people but not good coders is when disk placed in disk drive if it has a startup file i eject it you can get around by shutting off computer and putting disk in while shut down, but no way to make disk startup not run unless using different disks startup as kingdaro suggested but.

#8 JokerRH

  • Members
  • 147 posts

Posted 17 April 2013 - 02:11 AM

View PostSpongy141, on 16 April 2013 - 10:21 AM, said:

^ No, the disk will override the computers startup, so no mater what, the computers startup wont load, as long as the disk has a file called "startup", so nothing you do to "created" computer startup file will have an affect.

Read my post again...Where would be the point of renaming the computer startup file on disc insertion? It should have been obvious that i meant to rename disk/startup to something like disk/notstartup

#9 Spongy141

  • Members
  • 526 posts
  • Location'Merica

Posted 17 April 2013 - 02:44 AM

^
*Face palm*
If someone is trying to bypass your password on your computer, and they just use a disk, what makes you think you could edit there startup files to rename itself, that is one of the dumbest ideas I have ever heard of. You would need to edit the actual startup in the rom folder so it tells the computer to load first.

#10 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 17 April 2013 - 02:47 AM

View PostSpongy141, on 17 April 2013 - 02:44 AM, said:

You would need to edit the actual startup in the rom folder so it tells the computer to load first.
Nope. Not the rom/startup... rom/shell is the one that runs the disks.
the other option is to have your password system on a floppy on the top of the computer, that is the first drive checked, so any other drive is ignored.

#11 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 17 April 2013 - 03:09 AM

View PostJokerRH, on 17 April 2013 - 02:11 AM, said:

View PostSpongy141, on 16 April 2013 - 10:21 AM, said:

^ No, the disk will override the computers startup, so no mater what, the computers startup wont load, as long as the disk has a file called "startup", so nothing you do to "created" computer startup file will have an affect.

Read my post again...Where would be the point of renaming the computer startup file on disc insertion? It should have been obvious that i meant to rename disk/startup to something like disk/notstartup

Ctrl-S, insert disk, power on. Boom, hacked. The computer can't respond to events when it's off.

#12 JokerRH

  • Members
  • 147 posts

Posted 17 April 2013 - 05:47 AM

View PostSpongy141, on 17 April 2013 - 02:44 AM, said:

^
*Face palm*
If someone is trying to bypass your password on your computer, and they just use a disk, what makes you think you could edit there startup files to rename itself, that is one of the dumbest ideas I have ever heard of. You would need to edit the actual startup in the rom folder so it tells the computer to load first.

What are you talking about...?
If the shell runs disk/startup first that is fine if there is no disk/startup
An api that doesn't exist can't be run, right?

#13 Spongy141

  • Members
  • 526 posts
  • Location'Merica

Posted 17 April 2013 - 10:51 AM

^
Look either way your way wont work. If someone is trying to hack into your computer, theres a very low chance you have access to there disk/startup file, so like you said "Have the startup rename the disk/startup to something else" well you would need to add the code in the disk/startup... And this topic is about bypassing the disks startup..

#14 Sariaz

  • Members
  • 107 posts

Posted 17 April 2013 - 11:00 AM

View PostSpongy141, on 17 April 2013 - 10:51 AM, said:

^
Look either way your way wont work. If someone is trying to hack into your computer, theres a very low chance you have access to there disk/startup file, so like you said "Have the startup rename the disk/startup to something else" well you would need to add the code in the disk/startup... And this topic is about bypassing the disks startup..

I think he means make a startup program that will look at floppies when they are inserted an if the floppy has a startup file rename it.

#15 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 17 April 2013 - 11:06 AM

View PostJokerRH, on 17 April 2013 - 05:47 AM, said:

What are you talking about...?
If the shell runs disk/startup first that is fine if there is no disk/startup
An api that doesn't exist can't be run, right?
The program will error if the api is not loaded. It will call functions that are non-existent. This allows the 'hacker' access.

#16 Spongy141

  • Members
  • 526 posts
  • Location'Merica

Posted 17 April 2013 - 11:12 AM

View PostSariaz, on 17 April 2013 - 11:00 AM, said:

View PostSpongy141, on 17 April 2013 - 10:51 AM, said:

^
Look either way your way wont work. If someone is trying to hack into your computer, theres a very low chance you have access to there disk/startup file, so like you said "Have the startup rename the disk/startup to something else" well you would need to add the code in the disk/startup... And this topic is about bypassing the disks startup..

I think he means make a startup program that will look at floppies when they are inserted an if the floppy has a startup file rename it.
Best way I can put this.
Posted Image

#17 Sariaz

  • Members
  • 107 posts

Posted 17 April 2013 - 12:44 PM

View PostSpongy141, on 17 April 2013 - 11:12 AM, said:

View PostSariaz, on 17 April 2013 - 11:00 AM, said:

View PostSpongy141, on 17 April 2013 - 10:51 AM, said:

^
Look either way your way wont work. If someone is trying to hack into your computer, theres a very low chance you have access to there disk/startup file, so like you said "Have the startup rename the disk/startup to something else" well you would need to add the code in the disk/startup... And this topic is about bypassing the disks startup..

I think he means make a startup program that will look at floppies when they are inserted an if the floppy has a startup file rename it.
Best way I can put this.
Posted Image

How so, I mean its not full proof. If the computers of it wont work but it is still possible to check for floppy then rename startup to bypass.

os.pullEvent = os.pullEventRaw
while true do
e = os.pullEvent()
if e == "disk" then
  if fs.exists("disk/startup") then
   fs.move("disk/startup","disk/startu")
  end
end
end


This would do just that when a floppy is inserted if there is a startup file it renames it sure its not full proof but it does work. So if you would care to explain how my working code is imposible be my guest. :P

#18 Spongy141

  • Members
  • 526 posts
  • Location'Merica

Posted 17 April 2013 - 12:50 PM

^
So please explain how a computer startup with that code will even run if a disk have a startup file?

#19 MudkipTheEpic

  • Members
  • 639 posts
  • LocationWhere you'd least expect it.

Posted 17 April 2013 - 12:51 PM

Alright, how to bypass ANY disk prevention.

1:Shutdown computer.

2:Insert disk.

3:Start up computer.

#20 Spongy141

  • Members
  • 526 posts
  • Location'Merica

Posted 17 April 2013 - 12:53 PM

Its how to bypass the disks startup, not the computers startup.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users