 |
19-11-2007, 05:01 PM
|
#1 (permalink)
|
|
Alpha Geek
Join Date: Sep 2007
Location: hassan
Posts: 717
|
root password problem
I have forgotten my root password.
Now,I know that i can change the root password by using single user mode.But i don't want to chage the root password.Instead,I want to know the root password.Is it possible?? 
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
19-11-2007, 05:02 PM
|
#2 (permalink)
|
|
Think Zen.
Join Date: Dec 2005
Posts: 1,498
|
Re: root password problem
__________________
Do what you will; but not because you must. -- Zen Quote
|
|
|
19-11-2007, 05:14 PM
|
#3 (permalink)
|
|
Alpha Geek
Join Date: Sep 2007
Location: hassan
Posts: 717
|
Re: root password problem
I beleive if one can change the root password,then one can know the exisiting root password in single user mode.But i don't know how?? 
|
|
|
19-11-2007, 05:17 PM
|
#4 (permalink)
|
|
Think Zen.
Join Date: Dec 2005
Posts: 1,498
|
Re: root password problem
You cant.
When u start as single user mode it automatically logs you in.
There u can change ur password by supplying a new password.
But there's no way to know ur old one.
Why do u need to know anyways?
Regards,
ray
__________________
Do what you will; but not because you must. -- Zen Quote
|
|
|
19-11-2007, 05:20 PM
|
#5 (permalink)
|
|
Alpha Geek
Join Date: Sep 2007
Location: hassan
Posts: 717
|
Re: root password problem
|
|
|
19-11-2007, 05:23 PM
|
#6 (permalink)
|
|
Think Zen.
Join Date: Dec 2005
Posts: 1,498
|
Re: root password problem
If you knew the exact algorithm they used and the key which might be a 64bit one then yea maybe  ,
Dont even think of brute-force,u would have grand-kids before it broke
Regards,
ray
__________________
Do what you will; but not because you must. -- Zen Quote
|
|
|
19-11-2007, 05:24 PM
|
#7 (permalink)
|
|
Alpha Geek
Join Date: Sep 2007
Location: hassan
Posts: 717
|
Re: root password problem
^^can u tell me where the root password is stored....
|
|
|
19-11-2007, 05:27 PM
|
#8 (permalink)
|
|
Think Zen.
Join Date: Dec 2005
Posts: 1,498
|
Re: root password problem
/etc/shadow AFAICR.
Regards,
ray
__________________
Do what you will; but not because you must. -- Zen Quote
|
|
|
19-11-2007, 05:30 PM
|
#9 (permalink)
|
|
Alpha Geek
Join Date: Sep 2007
Location: hassan
Posts: 717
|
Re: root password problem
|
|
|
19-11-2007, 05:38 PM
|
#10 (permalink)
|
|
Think Zen.
Join Date: Dec 2005
Posts: 1,498
|
Re: root password problem
G'Luck 
May the force be with you
Regards,
ray
__________________
Do what you will; but not because you must. -- Zen Quote
|
|
|
19-11-2007, 06:10 PM
|
#11 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: root password problem
One can use john to view shadow files if he/she knows the root password.
Code:
sudo apt-get install john
And:
Code:
sudo john /etc/passwd
__________________
Harsh J
www.harshj.com
|
|
|
19-11-2007, 06:32 PM
|
#12 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: root password problem
^but it wont work 100% with a good passwd
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
19-11-2007, 06:34 PM
|
#13 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: root password problem
Yeah at-least it can guess a bit
__________________
Harsh J
www.harshj.com
|
|
|
21-11-2007, 12:26 PM
|
#14 (permalink)
|
|
Alpha Geek
Join Date: Sep 2007
Location: hassan
Posts: 717
|
Re: root password problem
Quote:
|
Originally Posted by QwertyManiac
One can use john to view shadow files if he/she knows the root password.
Code:
sudo apt-get install john
And:
Code:
sudo john /etc/passwd
|
downloaded john and used it but no result.
It's just mere guessing all the possibilites.I just ran it for 2 hrs and even then it was unable to find out.I think it is immpossible to detect good root password by this....
The one thing i liked int it was we can resume our search by using
and we can add custom rules
|
|
|
21-11-2007, 12:27 PM
|
#15 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: root password problem
^yes,ofcourse
Quote:
Description: active password cracking tool
john, mostly known as John the Ripper, is a tool designed to help systems
administrators to find weak (easy to guess or crack through brute force)
passwords, and even automatically mail users warning them about it, if it
is desired.
.
It can also be used with different cyphertext formats, including Unix's
DES and MD5, Kerberos AFS passwords, Windows' LM hashes, BSDI's extended DES,
and OpenBSD's Blowfish.
.
Homepage: http://www.openwall.com/john/
|
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
21-11-2007, 12:29 PM
|
#16 (permalink)
|
|
Alpha Geek
Join Date: Sep 2007
Location: hassan
Posts: 717
|
root password problem
I just did some R&D on shadow file.
I think the password is encrpted under MD5 algorithm or Blow fish.
So is there any software that converts the md5 encrpted or blow fish encrpted text into decrpted text 
And the second thing i noticed was
i just backed up the file shadow and changed my root password.I again changed the root password to the first one.Now i compared the backed up file with shadow file and noticed that the two encrypted text are not same..
Even though the password is same,the encrpted text was not same   .
Will that means it is taking time consideration also 
|
|
|
21-11-2007, 12:31 PM
|
#17 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: root password problem
^that is hard. afaik it will take yrs to crack a really good passwd that too not for sure
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
22-11-2007, 12:13 PM
|
#18 (permalink)
|
|
Alpha Geek
Join Date: Sep 2007
Location: hassan
Posts: 717
|
Re: root password problem
Quote:
|
Originally Posted by adi007
is there any software that converts the md5 encrpted or blow fish encrpted text into decrpted text  
|
no reply to this 
|
|
|
22-11-2007, 02:09 PM
|
#19 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: root password problem
LMAO, no software exists to do that, it'd take years to decrypt on a very fast computer! If decrypting MD5 were so easy, Raaabo would already know all our passwords.
And even after years, the final string would just be *near* to the actual one. No way to guess what it was exactly.
And about MD5 Hashes, you do know collisions in hash tables right? Read on: http://www.mathstat.dal.ca/~selinger/md5collision/
__________________
Harsh J
www.harshj.com
Last edited by QwertyManiac; 22-11-2007 at 03:37 PM.
|
|
|
22-11-2007, 07:27 PM
|
#20 (permalink)
|
|
die blizzard die! D3?
Join Date: Aug 2007
Location: Event horizon
Posts: 2,361
|
Re: root password problem
yea man these hashing algorithms are pretty good.They are almost perfect specially md5hash(thats why it is so much used).
__________________
Stealing your women and horses since 1843.
|
|
|
22-11-2007, 07:43 PM
|
#21 (permalink)
|
|
Wahahaha~!
Join Date: Dec 2006
Location: Pune/there
Posts: 7,676
|
Re: root password problem
yeah thats MD5 hash used in linux to store password,
Check out wikipedia , we hav encryption in our syllabus this sem.
A seed is required to make 128 bit hash and depending upon keys and S functions ur password will vary considerably(cascading effect) even for one letter difference.
Brute force is the only way to decrypt and it will take ages to get password. If u remember the hash is in hex.
|
|
|
22-11-2007, 08:03 PM
|
#22 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: root password problem
so that means md5hash is broken
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
26-11-2007, 05:19 PM
|
#23 (permalink)
|
|
Alpha Geek
Join Date: Sep 2007
Location: hassan
Posts: 717
|
Re: root password problem
Is there no way that an md5 encrpted string can be decrypted...  
But how does linux decryptes it and check whether the entered password is right or wrong   ...
I think there must be some method to decrpt the encrpted md5 string...
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|