Categories: Password Cracking

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

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

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

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

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

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).

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

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

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

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

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 LinkedinTwitter, and Facebook for daily Cybersecurity updates also you can take the Best Cybersecurity courses online to keep yourself self-updated.

Also, Read

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.

View Comments

Recent Posts

Nearest Neighbor Attacks: Russian APT Hack The Target By Exploiting Nearby Wi-Fi Networks

Recent research has revealed that a Russian advanced persistent threat (APT) group, tracked as "GruesomeLarch"…

1 day ago

240+ Domains Used By PhaaS Platform ONNX Seized by Microsoft

Microsoft's Digital Crimes Unit (DCU) has disrupted a significant phishing-as-a-service (PhaaS) operation run by Egypt-based…

2 days ago

Russian TAG-110 Hacked 60+ Users With HTML Loaded & Python Backdoor

The Russian threat group TAG-110, linked to BlueDelta (APT28), is actively targeting organizations in Central…

2 days ago

Earth Kasha Upgraded Their Arsenal With New Tactics To Attack Organizations

Earth Kasha, a threat actor linked to APT10, has expanded its targeting scope to India,…

2 days ago

Raspberry Robin Employs TOR Network For C2 Servers Communication

Raspberry Robin, a stealthy malware discovered in 2021, leverages advanced obfuscation techniques to evade detection…

2 days ago

145,000 ICS Systems, Thousands of HMIs Exposed to Cyber Attacks

Critical infrastructure, the lifeblood of modern society, is under increasing threat as a new report…

2 days ago