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 62 guests online
EH-Net News Feeds
Latest Additions
 
Advertisement

You are here: Home arrow Forum arrow Featuresarrow /rootarrow [Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong
EH-Net
May 26, 2012, 02:07:09 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Advertise on EH-Net!! - Reasonable Rates, Highly Targeted Audience.
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: [Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong  (Read 13146 times)
0 Members and 1 Guest are viewing this topic.
don
Editor-In-Chief
Administrator
Hero Member
*****
Offline Offline

Posts: 3917


Editor-In-Chief


View Profile WWW
« on: December 01, 2010, 01:05:35 AM »

I'm totally jazzed about our newest contributing writer. If all goes well, hopefully we can convince to be a more regular contributor. In order to do so, please suggest other tutorials you'd like from Mr. Wilhelm.

Also, there is an assignment at the end of this tutorial. Please feel free to discuss it, but don't give away the answers. Let's not make it too easy for others.  Wink

Permanent link: [Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong

Quote


By Thomas Wilhelm, ISSMP, CISSP, SCSECA, SCNA

Many people are familiar with John the Ripper (JTR), a tool used to conduct brute force attacks against local passwords. The application itself is not difficult to understand or run... it is as simple as pointing JTR to a file containing encrypted hashes and leave it alone. In a professional penetration test, we don't always have the time to allow JTR to run to completion, and we must rely on some additional techniques to speed things up including the use of wordlists or dictionaries. JTR comes with its own wordlist containing supposedly common passwords, and we can use that dictionary to identify some low-hanging fruit. However, in most cases, the supplied JTR wordlist is woefully inadequate in identifying a wide-range of commonly-used passwords, especially when people prefer to select passwords that have some meaning to them (e.g. hobbies, partner names, child names, and pet names). So how can we improve our use of JTR to catch passwords that have relevancy to the users of our target system? It may be a bit more complicated than it seems.

The Information Systems Security Assessment Framework (ISSAF) provides an adequate methodology when focusing on password attacks and includes the suggestion of using dictionaries. For those who conduct penetration testing, the use of dictionaries is only one of two prongs used in attacking a local, encrypted password list; brute force attacks are conducted after we have attempted to break passwords using dictionaries. In this fashion, we can (hopefully) obtain weak passwords to work against during the pentest; anything discovered during the brute force attack (assuming it is too late in our pentest to use then) can simply be added to our wordlist for future penetration test projects.


Thanks Tom,
Don
Logged

CISSP, MCSE, CSTA, Security+ SME
ziggy_567
Sr. Member
****
Offline Offline

Posts: 302


View Profile
« Reply #1 on: December 01, 2010, 10:48:05 AM »

I'm curious...

All the wordlists I currently have and can find for foreign languages do not contain "special characters." (i.e. they use u" instead of ü) Where can one find a wordlist with special characters?

EDIT: edited for clarity
« Last Edit: December 01, 2010, 11:13:07 AM by ziggy_567 » Logged

--
Ziggy


GSEC - GCIH - GCUX - RHCE - SCSecA - Security+ - Network+
chrisj
Hero Member
*****
Offline Offline

Posts: 997


View Profile
« Reply #2 on: December 01, 2010, 01:34:47 PM »

This was great. I love the "Homework".

It's over my head, have always sucked at password cracking, and spent more time at work learning, than doing my job today.

Grendel I both bow at your feet and course your name. Smiley

*Added*

After trying this for several hours on 2 different boxes I can't figure out what I'm doing wrong.

All that I can get JTR to do is say no password hash loaded. I've tried on my xubuntu box, and with bt4 r2 (ok it worked 1 time, before adding a test account).

Pointers?  (This is why I can't wait for the noob class at hacking dojo).

*Edited to add more.
« Last Edit: December 01, 2010, 04:22:14 PM by chrisj » Logged

OSWP, Sec+
Grendel
Full Member
***
Offline Offline

Posts: 168


View Profile WWW
« Reply #3 on: December 01, 2010, 06:39:39 PM »

Ziggy / Wordlists:
Not sure where I got mine; I know they came from the Interwebs

Chris / JTR not working:
There are numerous reasons why jtr might not recognize your hash. It is in situations like this where I like to use Skype for my hacking dojo students, so I can see what they're doing (via desktop sharing plugin).
Logged

- Thomas Wilhelm

http://HackingDojo.com
ziggy_567
Sr. Member
****
Offline Offline

Posts: 302


View Profile
« Reply #4 on: December 01, 2010, 07:22:49 PM »

@Grendel

I found a wordlist on one of my VMs that has done the trick for all of the hashes except the Oracle one...

This is fun...
Logged

--
Ziggy


GSEC - GCIH - GCUX - RHCE - SCSecA - Security+ - Network+
Grendel
Full Member
***
Offline Offline

Posts: 168


View Profile WWW
« Reply #5 on: December 01, 2010, 07:27:52 PM »

Maybe one of my students will jump in and give a hint about the oracle password.
Logged

- Thomas Wilhelm

http://HackingDojo.com
bitserve
Newbie
*
Offline Offline

Posts: 2


View Profile WWW
« Reply #6 on: December 02, 2010, 04:24:00 AM »

Won't we need the username for the Oracle one?
Logged

Grendel
Full Member
***
Offline Offline

Posts: 168


View Profile WWW
« Reply #7 on: December 02, 2010, 12:27:41 PM »

Won't we need the username for the Oracle one?

Who says it's oracle (earlier, I just repeated ziggy's words)?

Rule #1) Always be cynical, and don't trust your tools.
(I'm sure my students are getting tired of hearing me say that, but it's true)
« Last Edit: December 02, 2010, 12:30:04 PM by Grendel » Logged

- Thomas Wilhelm

http://HackingDojo.com
hayabusa
Hero Member
*****
Offline Offline

Posts: 1304



View Profile
« Reply #8 on: December 02, 2010, 01:25:14 PM »

Sounds like folks like this one.  Soon as I have some time (maybe the weekend?Huh?) I'll find my wordlists, and see if I can crack these.  In the meantime, I wrote a bash script and quickly did the 5th item...   Grin
Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCP , GPEN, C|EH
bitserve
Newbie
*
Offline Offline

Posts: 2


View Profile WWW
« Reply #9 on: December 02, 2010, 01:43:06 PM »

Ah. Thanks for the tip. Solved.
Logged

chrisj
Hero Member
*****
Offline Offline

Posts: 997


View Profile
« Reply #10 on: December 02, 2010, 03:12:12 PM »

Ok, I know my problem.

I just don't know how to read. I was reading the hashes as 2 hashes split across lines to make it harder. Not as what is really there.

I suck at crypto (hoping that will change soon).
Logged

OSWP, Sec+
hayabusa
Hero Member
*****
Offline Offline

Posts: 1304



View Profile
« Reply #11 on: December 03, 2010, 09:52:26 PM »

Yep... these weren't bad at all, but thanks to Tom for his 'homework,' and for the reminder to look at other things (like base64 and foreign character interpretation / calculation / encryption.)  I used JTR for 4 of the 5, and a quick bash script for the last...
Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCP , GPEN, C|EH
chrisj
Hero Member
*****
Offline Offline

Posts: 997


View Profile
« Reply #12 on: December 04, 2010, 11:17:39 AM »

Yeah, I've only been able to decrypt hash 3 so far. Bitserve gave me a lot of help on that. He's the one that explained I was reading them wrong, and that I would need the jumbo patch for JTR.

I keep saying I'm going to try them again later in BT4r2. Just not sure when I'll have the time
Logged

OSWP, Sec+
hayabusa
Hero Member
*****
Offline Offline

Posts: 1304



View Profile
« Reply #13 on: December 04, 2010, 12:47:54 PM »

Yeah.  If you have it, BT4 works well.  In fact, I used BT4-r1 BlackHat edition, and it had all the necessary patches installed, already, for jtr.  So that, and my slightly tweaked French wordlist, and it was a fast crack session.

Good luck, and if you need further help, feel free to PM me on here, or heck, even ask grendel, himself!   Grin
Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCP , GPEN, C|EH
chrisj
Hero Member
*****
Offline Offline

Posts: 997


View Profile
« Reply #14 on: December 20, 2010, 02:16:42 PM »

took a lot of help from bitserv, like learning how to convert uni-code to ascii numbers.

But I finally got back to this today, and solved it. I know bitserv did the "oracle" hash one way, Grendel said to do it a different way, and I did it a third way.

Used BT4r2.

although, more fun was doing the gawker hash for my account. I found interesting stuff there. Like, how it was an old password, not my current one.
Logged

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

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.154 seconds with 23 queries.
 

gk_static-ad_feb2012.jpg
Global Knowledge: Build Security Skills to Protect & Defend

els_130x200fixed2.gif
eLearnSecurity Student Course Now Live!
5% Off with Code
ELS-EH-5

SANS Deals 4 EH-Netters
$150 OFF Any SANS Course in Any Format!
Coupon Code: EHN_Connect Including SANS Security West 2012 & SANSFIRE 2012
Recent Forum Topics

cbtnuggets_logo_125.jpg
Try CBT Nuggets Free!

Vote For EH-Net

Add to Technorati Favorites
technorati fave

 
         
Advertisement

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