Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 54 guests online
 
Free Business and Tech Magazines and eBooks

You are here: Home arrow Resourcesarrow Toolsarrow Help needed JTR
EH-Net
May 18, 2013, 10:16:17 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Help needed JTR  (Read 5808 times)
0 Members and 1 Guest are viewing this topic.
millwalll
Guest
« on: July 18, 2011, 08:41:49 AM »

I am trying to crack some hashes and keep getting this error

Generic crypt(3) module: hash encoding string length 20, type id $L appears to be unsupported on this system; will not load such hashes. it still run but i guess it not working as the hashes are not loaded.


any advice ?
Logged
cd1zz
Hero Member
*****
Offline Offline

Posts: 561


View Profile WWW
« Reply #1 on: July 18, 2011, 09:51:16 AM »

What are the first 3 characters of the hash? It should start with a $
Logged

millwalll
Guest
« Reply #2 on: July 18, 2011, 10:01:42 AM »

well it has username:$6$sdhfgisfjhidjfi so on
Logged
cd1zz
Hero Member
*****
Offline Offline

Posts: 561


View Profile WWW
« Reply #3 on: July 18, 2011, 10:09:20 AM »

What version of JTR are you running? That hash is for SHA 512 and I know older versions didn't support that. I'm not sure if there is a diff patch or if the newest version even supports SHA-512. Can you confirm?
Logged

millwalll
Guest
« Reply #4 on: July 18, 2011, 10:12:08 AM »

Hi version is 1.7.6 I read that somewhere else too that there was problem with SHA hashes is there any other way to break them that you know ?

or do I need to patch JTR?
Logged
cd1zz
Hero Member
*****
Offline Offline

Posts: 561


View Profile WWW
« Reply #5 on: July 18, 2011, 10:17:17 AM »

I dont think it supports it but I could be wrong. I would probably just use an online service like http://crackstation.net/ this guy created a perl one http://blog.hacker.dk/2010/04/cracking-sha-256-and-sha-512-linuxunix-passwords/
Logged

millwalll
Guest
« Reply #6 on: July 18, 2011, 10:50:16 AM »

lol I just found that perl one i am trying it now Tongue
Logged
lorddicranius
Sr. Member
****
Offline Offline

Posts: 447



View Profile WWW
« Reply #7 on: July 18, 2011, 10:52:55 AM »

According to this...

http://openwall.info/wiki/john/sample-hashes

...SHA-512 is supported in 1.7.6+ (as long as the underlying OS supports it <-- not sure what this means).  Or am I interpreting that wrong?

**UPDATE**
Reading this...

Quote
Its made in perl, and it simply uses the operating system’s crypt function. So if you have a system that supports SHA passwords, so will my tool.

...from the hacker.dk link cd1zz posted, I think the section I put in parentheses above means the same thing..?
« Last Edit: July 18, 2011, 10:58:28 AM by lorddicranius » Logged

GSEC, eCPPT, Sec+
millwalll
Guest
« Reply #8 on: July 18, 2011, 11:19:19 AM »

Thanks I am trying it now just a pain when you want something to be easy
Logged
Data_Raid
Full Member
***
Offline Offline

Posts: 165



View Profile
« Reply #9 on: July 18, 2011, 02:59:24 PM »

I had this problem too a while back. The error message: "Generic crypt (3) module: hash encoding string length x, type id y appears to be unsupported on this system" refers to the crypt function not being present on the system or JTR 1.7.6 and above was compiled without crypt being present on the system. I was unable to crack SHA-512 passwords with JTR 1.7.6 and above until I installed the crypt package on my Backtrack 4 system by typing:
Code:
apt-get install mcrypt
and then recompiling JTR with the crypt support. Once that was done I was able to successfully crack SHA-512 passwords:

root@bt:/tmp/john-1.7.8/run# cat sha512.txt
$6$zWwwXKNj$gLAOoZCjcr8p/.VgV/FkGC3NX7BsXys3KHYePfuIGMNjY83dVxugPYlxVg/evpcVEJLT/rSwZcDMlVVf/bhf.1

root@bt:/tmp/john-1.7.8/run# ./john sha512.txt
Loaded 1 password hash (generic crypt(3) [?/32])
No password hashes left to crack (see FAQ)
root@bt:/tmp/john-1.7.8/run# ./john --show sha512.txt
?:password
 
1 password hash cracked, 0 left

I usually apply the Jumbo patch to JTR which provides support for many more hash and cipher types, now includes Winzip password cracking which I want to play around with. The Jumbo patch is available for download here:
http://www.openwall.com/john/g/john-1.7.8-jumbo-2.diff.gz
Instructions on how to apply the Jumbo patch are available here: http://openwall.info/wiki/john/how-to-extract-tarballs-and-apply-patches

Passwords that are a SHA-512 hash, start with $6$ (86 characters)
Default password hashing method for Ubuntu Linux

SHA-256 hashes start with $5$ (43 Characters)
MD5 hashes start with $1$ (22 characters)
Blowfish hashes start with $2$ or $2a$ (depending on the variant used)
Logged

All men by nature desire knowledge.

Aristotle
lorddicranius
Sr. Member
****
Offline Offline

Posts: 447



View Profile WWW
« Reply #10 on: July 18, 2011, 04:25:16 PM »

Ah, I see.  Thanks for clarifying that, Data_Raid.  I'm wonder: anybody know why BT5 doesn't come with JTR compiled with crypt support by default?  Is SHA-512 not common enough or something?
Logged

GSEC, eCPPT, Sec+
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.086 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.