Jump to content

Crack/Reset grub password

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
14 replies to this topic

#1
Off

Off

    Learning Programmer

  • Members
  • PipPipPip
  • 83 posts
Well, I set a password for grub on boot but... I've forgotten the password or typed it wrong. Is there any way possible to crack/remove/reset this password?

#2
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
How did you set the password? I never used one but do you enter the password in the menu.lst?

If yes that would be easy to crack, but I'm not sure how to set a password.

#3
Off

Off

    Learning Programmer

  • Members
  • PipPipPip
  • 83 posts
Go into the grub shell and run md5crypt

    GNU GRUB  version 0.94  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]

grub> md5crypt

Password: ******
Encrypted: $2AdFOPLKkL9AdfSTUIoPArM/


Then copy this line to your grub.conf:

password --md5 $2AdFOPLKkL9AdfSTUIoPArM/


#4
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Those steps are to add a password?

#5
Off

Off

    Learning Programmer

  • Members
  • PipPipPip
  • 83 posts
Yes, to the grub boot loader.

#6
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Can't you boot from a live CD, access the hard disk access grub.conf and delete the password?

#7
Guest_Jordan_*

Guest_Jordan_*
  • Guests
What TotalPenguin said is the only way I know how to remove that password.

#8
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Well after thinking about what I said... wow, doesn't seem like a safe way to protect yourself using grub...

#9
LinuxBomber

LinuxBomber

    Learning Programmer

  • Members
  • PipPipPip
  • 78 posts
Is this all the security that Linux has to offer... where is the most secure OS? This for sure is not secure!!

#10
MHJ

MHJ

    Newbie

  • Members
  • PipPip
  • 29 posts
That is pretty interesting material to read. I am definitely cutting and pasting that info to my files!

#11
Oigen

Oigen

    Programmer

  • Members
  • PipPipPipPip
  • 107 posts
Weird, is it that simple to hack grub? I think there might be something wrong here, it can't be that simple.

#12
Tor

Tor

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 486 posts
Generally speaking, if a hacker has physical access to your computer/server there is nothing that can really stop him/her.