John The Ripper Crack Sha1 Hashes

The correct way is to extract the password hash from the file and then cracking it using John The Ripper. For this purpose, you need to get a ‘ jumbo’ build of John The Ripper, that supports Office files cracking. Note that John can't crack hashes of different types at the same time. If you happen to get a password file that uses more than one hash type, then you have to invoke John once for each hash type and you need to use this option to make John crack hashes of types other than the one it would autodetect by default. Hashes.com is a hash lookup service. This allows you to input an MD5, SHA-1, Vbulletin, Invision Power Board, MyBB, Bcrypt, Wordpress, SHA-256, SHA-512, MYSQL5 etc hash and search for its corresponding plaintext ('found') in our database of already-cracked hashes. It's like having your own massive hash-cracking cluster - but with immediate results! John the Ripper is a favourite password cracking tool of many pentesters. There is plenty of documentation about its command line options. I’ve encountered the following problems using John the Ripper.

John the Ripper is a favourite password cracking tool of many pentesters. There is plenty of documentation about its command line options.

I’ve encountered the following problems using John the Ripper. These are not problems with the tool itself, but inherent problems with pentesting and password cracking in general.

  • Sometimes I stumble across hashes on a pentest, but don’t recognise the format, don’t know if it’s supported by john, or whether there are multiple “–format” options I should try.
  • The hashes you collect on a pentest sometimes need munging into a different format… but what’s the format john is expecting?
  • John will occasionally recognise your hashes as the wrong type (e.g. “Raw MD5″ as “LM DES”). This is inevitable because some hashes look identical.
  • Sometimes I gain access to a system, but can’t recall how to recover the password hashes for that particular application / OS.

These problems can all be sorted with a bit of googling or grepping through the john source code. I thought it might be helpful to compile a cheat sheet to reduce the amount of time I spend grepping and googling.

In the first release of this page I’ve:

  • Copied example hashes out of the source code for most supported hash types.
  • Provided examples of what your hashes.txt file might look like (though I’m sure other variations are supported that aren’t covered here yet).
  • For each example hash I’ve stated whether it will be automatically recognised by john, or whether you’ll have to use the “–format” option (in which case I’ve included which –format option you need)

I haven’t yet done the following:

  • Added reminders on how hashes can be collected.
  • Added information on how to munge the hashes into a format supported by john.

This sheet was originally based on john-1.7.8-jumbo-5. Changes in supported hashes or hash formats since then may not be reflected on this page.

afs – Kerberos AFS DES

Supported Hash Formats

bfegg – Eggdrop

Supported Hash Formats

bf – OpenBSD Blowfish

Supported Hash Formats

bsdi – BSDI DES

Supported Hash Formats

crypt – generic crypt(3)

Supported Hash Formats

des – Traditional DES

Supported Hash Formats

dmd5 – DIGEST-MD5

Supported Hash Formats

TODO: No working example yet.

dominosec – More Secure Internet Password

Supported Hash Formats

<none> – EPiServer SID Hashes

Supported Hash Formats

hdaa – HTTP Digest access authentication

Supported Hash Formats

hmac-md5 – HMAC MD5

Supported Hash Formats

hmailserver – hmailserver

Supported Hash Formats

ipb2 – IPB2 MD5

Supported Hash Formats

krb4 – Kerberos v4 TGT

Supported Hash Formats

krb5 – Kerberos v5 TGT

Supported Hash Formats

lm – LM DES

Supported Hash Formats

lotus5 – Lotus5

Supported Hash Formats

md4-gen – Generic salted MD4

Supported Hash Formats

md5 – FreeBSD MD5

Supported Hash Formats

md5-gen – Generic MD5

Supported Hash Formats

TODO: No working example yet.

mediawiki – MediaWiki MD5s

Supported Hash Formats

mscash – M$ Cache Hash

Supported Hash Formats

mscash2 – M$ Cache Hash 2 (DCC2)

Supported Hash Formats

mschapv2 – MSCHAPv2 C/R MD4 DES

Supported Hash Formats

mskrb5 – MS Kerberos 5 AS-REQ Pre-Auth

Supported Hash Formats

mssql05 – MS-SQL05

Supported Hash Formats

mssql – MS-SQL

Supported Hash Formats

mysql-fast – MYSQL_fast

Supported Hash Formats

mysql – MYSQL

Supported Hash Formats

mysql-sha1 – MySQL 4.1 double-SHA-1

Supported Hash Formats

netlm – LM C/R DES

Supported Hash Formats

netlmv2 – LMv2 C/R MD4 HMAC-MD5

Supported Hash Formats

netntlm – NTLMv1 C/R MD4 DES [ESS MD5]

Supported Hash Formats

netntlmv2 – NTLMv2 C/R MD4 HMAC-MD5

Supported Hash Formats

nethalflm – HalfLM C/R DES

Supported Hash Formats

md5ns – Netscreen MD5

Supported Hash Formats

nsldap – Netscape LDAP SHA

Supported Hash Formats

ssha – Netscape LDAP SSHA

Supported Hash Formats

nt – NT MD4

Supported Hash Formats

openssha – OpenLDAP SSHA

Supported Hash Formats

oracle11 – Oracle 11g

Supported Hash Formats

oracle – Oracle

Hashes

Supported Hash Formats

pdf – pdf

Supported Hash Formats

phpass-md5 – PHPass MD5

Supported Hash Formats

phps – PHPS MD5

Supported Hash Formats

pix-md5 – PIX MD5

Supported Hash Formats

po – Post.Office MD5

Supported Hash Formats

rar – rar

Supported Hash Formats

raw-md4 – Raw MD4

Supported Hash Formats

raw-md5 – Raw MD5

Supported Hash Formats

raw-md5-unicode – Raw MD5 of Unicode plaintext

Supported Hash Formats

raw-sha1 – Raw SHA-1

Supported Hash Formats

raw-sha224 – Raw SHA-224

Supported Hash Formats

raw-sha256 – Raw SHA-256

John The Ripper Crack Sha1 Hashes Torrent

Supported Hash Formats

raw-sha384 – Raw SHA-384

Supported Hash Formats

raw-sha512 – Raw SHA-512

Supported Hash Formats

salted-sha – Salted SHA

Supported Hash Formats

sapb – SAP BCODE

Supported Hash Formats

sapg – SAP CODVN G (PASSCODE)

Supported Hash Formats

sha1-gen – Generic salted SHA-1

Supported Hash Formats

skey – S/Key

Supported Hash Formats

TODO: No working example yet.
TODO: No working example yet.
TODO: No working example yet.
TODO: No working example yet.

John The Ripper Crack Sha1 Hashes Free

ssh – ssh

Supported Hash Formats

sybasease – sybasease

Supported Hash Formats

xsha – Mac OS X 10.4+ salted SHA-1

Supported Hash Formats

zip – zip

Supported Hash Formats

Tags: johntheripper, pentest

Posted in Cheat Sheets


John is able to crack WPA-PSK and WPA2-PSK passwords. Recent changes have improved performance when there are multiple hashes in the input file, that have the same SSID (the routers 'name' string).

The input format is a printable hash, which can either be directly created with john's tool “wpapcap2john” (ships with jumbo) from a packet capture in pcap format as produced by tcpdump, wireshark or airodump-ng; or by doing an intermediate conversion to Hashcat's hccap format as described below.

You can convert airodump's .cap file to .hccap in one of the following ways:

When you have hccap file you need to convert it to john's input format using “hccap2john” program shipped with recent jumbo versions.It encodes hccap file to “$WPAPSK$essid#b64encoded hccap”

Example testcase you can get from http://wiki.wireshark.org/SampleCaptures?action=AttachFile&do=view&target=wpa-Induction.pcap or wpa-Induction.tar.gz

From that point you can use john as you always do. The format comes in two flavours:

  • -format=wpapsk (will use CPUs, is SIMD and OpenMP capable)
  • -format=wpapsk-opencl (for any OpenCL GPU or CPUs)

Example usage:

  • $ ./john -w=password.lst -form=wpapsk-opencl crackme

How To Crack Password Hashes

If “Induction” is in your (by default it is not) password.lst file, john will crack it.

John The Ripper Crack Sha1 Hashes 1

If you are interested in how it works visit this page