Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 42 guests and 1 member online
You are here:
Home
Features
/root
[Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong
EH-Net
May 23, 2013, 12:45:34 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
Features
>
/root
(Moderator:
don
) >
[Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: [Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong (Read 20088 times)
0 Members and 1 Guest are viewing this topic.
don
Editor-In-Chief
Administrator
Hero Member
Online
Posts: 4167
Editor-In-Chief
[Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong
«
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.
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
Posts: 361
Re: [Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong
«
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
eCPPT - GSEC - GCIH - GCUX - RHCE - SCSecA - Security+ - Network+
chrisj
Hero Member
Offline
Posts: 1163
Re: [Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong
«
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.
*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
Posts: 242
Re: [Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong
«
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, MSCS MSM
ISSMP CISSP SCSECA SCNA IEM
Web Site:
http://HackingDojo.com
Author:
Professional Penetration Testing
Ninja Hacking
Penetration Tester's Open Source Toolkit
Metasploit Toolkit for Penetration Testing
Netcat Power Tools
ziggy_567
Sr. Member
Offline
Posts: 361
Re: [Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong
«
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
eCPPT - GSEC - GCIH - GCUX - RHCE - SCSecA - Security+ - Network+
Grendel
Full Member
Offline
Posts: 242
Re: [Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong
«
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, MSCS MSM
ISSMP CISSP SCSECA SCNA IEM
Web Site:
http://HackingDojo.com
Author:
Professional Penetration Testing
Ninja Hacking
Penetration Tester's Open Source Toolkit
Metasploit Toolkit for Penetration Testing
Netcat Power Tools
bitserve
Newbie
Offline
Posts: 2
Re: [Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong
«
Reply #6 on:
December 02, 2010, 04:24:00 AM »
Won't we need the username for the Oracle one?
Logged
Mark D. Adams
twitter.com/bitserve
Grendel
Full Member
Offline
Posts: 242
Re: [Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong
«
Reply #7 on:
December 02, 2010, 12:27:41 PM »
Quote from: bitserve on December 02, 2010, 04:24:00 AM
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, MSCS MSM
ISSMP CISSP SCSECA SCNA IEM
Web Site:
http://HackingDojo.com
Author:
Professional Penetration Testing
Ninja Hacking
Penetration Tester's Open Source Toolkit
Metasploit Toolkit for Penetration Testing
Netcat Power Tools
hayabusa
Hero Member
Offline
Posts: 1633
Re: [Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong
«
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?
?) 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...
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'
OSCE, OSCP , GPEN, C|EH
bitserve
Newbie
Offline
Posts: 2
Re: [Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong
«
Reply #9 on:
December 02, 2010, 01:43:06 PM »
Ah. Thanks for the tip. Solved.
Logged
Mark D. Adams
twitter.com/bitserve
chrisj
Hero Member
Offline
Posts: 1163
Re: [Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong
«
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
Posts: 1633
Re: [Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong
«
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'
OSCE, OSCP , GPEN, C|EH
chrisj
Hero Member
Offline
Posts: 1163
Re: [Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong
«
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
Posts: 1633
Re: [Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong
«
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!
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'
OSCE, OSCP , GPEN, C|EH
chrisj
Hero Member
Offline
Posts: 1163
Re: [Article]-Tutorial: John the Ripper - Why You Are Doing It Wrong
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
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:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
GCIH - GIAC Certified Incident Handler
: Passed my GCIH
(3) by
H1t M0nk3y
Greetings
: Hi from the UK
(3) by
UKSecurityGuy
GCIH - GIAC Certified Incident Handler
: GCIH Free Practice test attempt
(0) by
prats84
News Items and General Discussion About EH-Net
: Change is Coming to EH-Net!!
(27) by
don
Network Pen Testing
: AIX Vulnerability Assessments
(2) by
ras76
Tutorials
: Need guidance
(9) by
hanyhasan
Programming
: Finished Python Course in Codecademy now what?
(15) by
hanyhasan
Network Pen Testing
: Ruby on Rails Vulnerabilities / Attacks in BackTrack 5 r3
(0) by
SUdoctstudent
Network Pen Testing
: De-ICE 1.140 released!
(2) by
superkojiman
General Certification
: CPT Practical Submission
(1) by
UNIX
OSCP - Offensive Security Certified Professional
: Failed my first attempt at the OSCP exam
(94) by
azmatt
Tools
: Social-Engineer Toolkit (SET) Version 5.0 “The Wild West” Released
(2) by
m0wgli
Malware
: EICAR?
(3) by
UKSecurityGuy
Advisories
: HTB23154: Multiple Vulnerabilities in Exponent CMS
(0) by
AndyP
Advisories
: HTB23153: Multiple Vulnerabilities in Jojo CMS
(0) by
AndyP
Advisories
: HTB23151: Cross-Site Request Forgery (CSRF) in UMI.CMS
(0) by
AndyP
OSCP - Offensive Security Certified Professional
: Class Scheduled 6/8 - Linux n00b
(7) by
Taemyks
OSCP - Offensive Security Certified Professional
: OSCP exam scheduled
(6) by
gbhat
Incident Response
: LinkedIn Forensics
(0) by
AFENTIS_Forensics
General Certification
: Red Team/Blue Team
(1) by
ajohnson
Career Central
: Starter cert?
(3) by
Grendel
Network Pen Testing
: Beginner Ethical Hacker
(1) by
m0wgli
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.