Remote Exploit Forums

Go Back   Remote Exploit Forums > Specialist Topics > Pentesting


Pentesting Specific topics related to legal penetration testing

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-06-2009, 03:31 PM
spawn's Avatar
Member
 
Join Date: Jun 2008
Posts: 73
Default /etc/shadow

Folks,

On gentoo, ubuntu, ( that I tested ) when I run john --users=root shadow

No password hashes loaded

I tried too unshadow /etc/passwd /etc/shadow > mypwd

the same message

In present day it still works ?

Thanks in advanced
Reply With Quote
  #2 (permalink)  
Old 11-06-2009, 03:50 PM
lupin's Avatar
Moderator
 
Join Date: Mar 2009
Location: Australia
Posts: 944
Default

You will need to unshadow the passwd and shadow files before you can use john on them. After you use unshadow, check the format of the output file and ensure that there is a password hash present in the entry for root.

The username is the first field and the password is the second field in the file (which will be colon separated). If you see a ! or a * in that second field it means that there is no password for that account.

If there is a password hash for roots account in your file, but john still tells you no hashes loaded, then you may need to force the hash type using the "--format" switch. Check the help output for valid formats for your version of john. The version that comes with BackTrack is patched to accept extra hash types, so if you are not using BackTrack you may need to add your own patches to get extra types supported.

You should be able to identify the hash type by checking its format (especially the first few characters which may separate certain values using $ characters) and Googling for more details. The documentation for the version of Linux you are using may also provide clues as to what hash type is used.
__________________
Nancy Astor: If I were your wife I would put poison in your coffee!
Winston Churchill: Madam, if I were your husband I would drink it.
Reply With Quote
  #3 (permalink)  
Old 11-06-2009, 04:35 PM
spawn's Avatar
Member
 
Join Date: Jun 2008
Posts: 73
Thumbs up

Quote:
Originally Posted by lupin View Post
You should be able to identify the hash type by checking its format (especially the first few characters which may separate certain values using $ characters) and Googling for more details.
Perfect man !

Thanks
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:20 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2