Wednesday, January 15, 2025
HomePassword CrackingJohn the Ripper - Pentesting Tool for Offline Password Cracking to Detect...

John the Ripper – Pentesting Tool for Offline Password Cracking to Detect Weak Passwords

Published on

Introduction:

John the Ripper is a  fast password cracker that is intended to be both elements rich and quick.

It combines a few breaking modes in one program and is completely configurable for your specific needs for Offline Password Cracking.

Out of the create, John the Ripper tool underpins (and autodetects) the accompanying Unix crypt(3) hash sorts: conventional DES-based, “big crypt”, BSDI broadened DES-based, FreeBSD MD5-based (additionally utilized on Linux and in Cisco IOS), and OpenBSD Blowfish-based (now likewise utilized on some Linux dispersions and bolstered by late forms of Solaris).

Additionally bolstered out of the case are Kerberos/AFS and Windows LM (DES-based) hashes and in addition DES-based tripcodes.

John the Ripper is accessible on several different platforms which empower you to utilize a similar cracker everywhere.

John the Ripper Pro includes support for Windows NTLM (MD4-based) and Mac OS X 10.4+ salted SHA-1 hashes.

Also Read: Online Password Bruteforce Attack With THC-Hydra Tool -Tutorial

Extracting hashes From Linux

Every Linux user know that the passwords hashed are stored in /etc/passwd, one can see the file using the command root@kali:~# cat /etc/passwd

John the Ripper

We can see the password hashed as X, to unmask the password we should use unshadow to unmask the passwords.

root@kali:~# unshadow
Usage: unshadow PASSWORD-FILE SHADOW-FILE

Now you should use the unshadow command in order to unmask/decrypt the passwords.

root@kali:~# unshadow /etc/passwd /etc/shadow > hashfile

/etc/passwd : Password location   /etc/shadow : Shadow file  hashfile : Output file

John the Ripper
John the Ripper

Now you can see the X has been replaced with the actual hash values.

John the Ripper

We can There are various cracking modes available with John the Ripper, we are to use a simple and powerful wordlist mode.

root@kali:~# john –wordlist=/usr/share/john/password.lst hashfile

The cracked passwords are stored in john.pot which can be accessible with the command root@kali:~# cat /root/.john/john.pot

John the Ripper

It’s done we can see the password:test123  displayed on the screen.

Extracting hash dumps from Windows machine

Pwdump is a significant simple handy tool to yield the LM and NTLM secret word hashes of local client accounts from the Security Account Manager (SAM).

John the Ripper

Download and extract the pwdump in the working directory.

Simply by typing pwdump in the command prompt, we can retrieve the local client account hashes from the SAM database.

Also, we can extract the hashes to the file pwdump7 > hash.txt

Offline Password Cracking with John the Ripper

John the Ripper is intended to be both elements rich and quick. You can get all the possible options by typing root@kali:~# john -h

John the Ripper

To list all the possible formats root@kali:~# john –list=formats

John the Ripper

To list all the possible subformats root@kali:~# john –list=subformats

John the Ripper

To bruteforce the root@kali:~# john -format=LM /root/Desktop/hash.txt

John the Ripper

It will take some time to get the password cracked.

In final words, John the Ripper is a fantastic tool for offline password cracking. Don’t use it for offensive purposes.

Author credits:

  • Author: Solar Designer
  • License: GPLv2

You can follow us on Linkedin, Twitter, and Facebook for daily Cybersecurity updates also you can take the Best Cybersecurity courses online to keep yourself self-updated.

Also, Read

Gurubaran
Gurubaran
Gurubaran is a co-founder of Cyber Security News and GBHackers On Security. He has 10+ years of experience as a Security Consultant, Editor, and Analyst in cybersecurity, technology, and communications.

Latest articles

Aembit Announces Speaker Lineup for the Inaugural NHIcon

Aembit, the non-human identity and access management (IAM) company, unveiled the full agenda for...

Sweet Security Introduces Patent-Pending LLM-Powered Detection Engine, Reducing Cloud Detection Noise to 0.04%

Sweet Security, a leader in cloud runtime detection and response, today announced the launch...

ShadowSyndicate Hackers Added RansomHub Ransomware to their Arsenal

ShadowSyndicate is a prolific threat actor that has been active since July 2022, collaborated...

5,000 WordPress Sites Hacked in New WP3.XYZ Malware Attack

Widespread malware campaigns detected by side crawlers exploit vulnerabilities on multiple websites where the...

API Security Webinar

72 Hours to Audit-Ready API Security

APIs present a unique challenge in this landscape, as risk assessment and mitigation are often hindered by incomplete API inventories and insufficient documentation.

Join Vivek Gopalan, VP of Products at Indusface, in this insightful webinar as he unveils a practical framework for discovering, assessing, and addressing open API vulnerabilities within just 72 hours.

Discussion points

API Discovery: Techniques to identify and map your public APIs comprehensively.
Vulnerability Scanning: Best practices for API vulnerability analysis and penetration testing.
Clean Reporting: Steps to generate a clean, audit-ready vulnerability report within 72 hours.

More like this

‘123456’ Crackable in seconds, 2023’s Most Prevalent Password

For half a decade, NordPass has delved into the realm of password habits, uncovering...

StegCracker – Brute-force Utility to Uncover Hidden Data Inside Files

Steganography is the art of hiding messages covertly so that the sender and recipient...

USBStealer – Password Hacking Tool For Windows Applications to Perform Windows Penetration Testing

USBStealer is a Windows Based Password Hacker Tool that helps to Extract passwords from...