Crack the Hash 2

Date: 23, April, 2021

Author: Dhilip Sanjay S


Click Herearrow-up-right to go to the TryHackMe room.

Hash Identification

Launch Haiti on 741ebf5166b9ece4cca88a3868c44871e8370707cf19af3ceaa4a6fba006f224ae03f39153492853. What kind of hash it is?

  • Answer: RIPEMD-320

  • Steps to Reproduce:

haiti -e 741ebf5166b9ece4cca88a3868c44871e8370707cf19af3ceaa4a6fba006f224ae03f39153492853 
RIPEMD-320
Cisco Type 7
BigCrypt [JtR: bigcrypt]

Launch Haiti on 1aec7a56aa08b25b596057e1ccbcb6d768b770eaa0f355ccbd56aee5040e02ee

$ haiti 1aec7a56aa08b25b596057e1ccbcb6d768b770eaa0f355ccbd56aee5040e02ee
Snefru-256 [JtR: snefru-256]
SHA-256 [HC: 1400] [JtR: raw-sha256]
RIPEMD-256
Haval-256 [JtR: haval-256-3]
GOST R 34.11-94 [HC: 6900] [JtR: gost]
GOST CryptoPro S-Box
SHA3-256 [HC: 17400]
Keccak-256 [HC: 17800] [JtR: raw-keccak-256]
Skein-256 [JtR: skein-256]
Skein-512(256)

What is Keccak-256 Hashcat code?

  • Answer: 17800

  • Steps to Reproduce: Refer hashcat man page

What is Keccak-256 John the Ripper code?

  • Answer: Raw-Keccak-256

  • Steps to Reproduce: Refer John the Ripper formats by john --list=FORMATS


Wordlists

Wordlistctl


Which option do you need to add to the previous command to search into local archives instead of remote ones?

  • Answer: -l


If you run wordlistctl search -l rockyou one more time, what is the path where is stored the wordlist?

  • Answer: /usr/share/wordlists/passwords/rockyou.txt


Sample commands

What is the name of the first wordlist in the usernames category?

  • Answer: CommonAdminBase64

  • Steps to Reproduce:


Cracking tools, modes & rules

Modes

  • Wordlist mode - Dictionary Attacks

  • Incremental mode - Bruteforcing all possible combinations of characters

  • Rule mode - Uses wordlist mode by adding some pattern to the string. (Eg: current year, special characters, etc)

Mutations

  • Border mutation - combinations of digits and special symbols at the beginning or end or both.

  • Freak mutation - replace letters with similar looking special symbols

  • Case mutation - all variations of uppercase/lowercase letters for any characters.

  • Order mutation - Character order is reversed.

  • Repetition mutation - Same group of characters are repeated several times.

  • Vowels mutation - vowels are omitted or capitalized

  • Strip mutation - one or several characters are removed.

  • Swap mutation - some characters are swapped places.

  • Duplicate mutation - some characters are duplicated.

  • Delimiter mutation - delimiters are addded between characters.

2d5c517a4f7a14dcb38329d228a7d18a3b78ce83

  • Answer: moonligh56

  • Steps to Reproduce: Use john


Custom wordlist generation

ed91365105bba79fdab20c376d83d752

  • Answer: mOlo$$u$

  • Steps to Reproduce:


Use CeWL - What is the last word of the list?

  • Answer: Information

  • Steps to Reproduce:


TTPassGen

e5b47b7e8df2597077e703c76ee86aee

  • Answer: 1551-li

  • Steps to Reproduce:


Time to crack the hashes

1) b16f211a8ad7f97778e5006c7cecdf31

  • Answer: Zachariah1234*

  • Steps to Reproduce:

    • First download common male namelist using wordlistctl.

    • Set up john config file:

    • Run John


2) 7463fcb720de92803d179e7f83070f97

  • Answer: Angelita35!

  • Steps to Reproduce:

    • First download common female namelist using wordlistctl.

    • Set up john config rule:

    • Run john


3) f4476669333651be5b37ec6d81ef526f

  • Answer: Tl@xc@l@ncing0

  • Steps to Reproduce:

    • First download Mexico town namelist using wordlistctl.

    • Clean the wordlist. Remove spaces and change everything to lowercase.

    • Run john along with l33t rule and the newly generated wordlist.


4) a3a321e1c246c773177363200a6c0466a5030afc

  • Answer: DavIDgUEtTApAn

  • Steps to Reproduce:

    • Use John with NT rule, Raw-SHA1


5) d5e085772469d544a447bc8250890949

  • Answer:

  • Steps to Reproduce:

    • Use Lyricpass to generate song list of the favourite singer Adele.

    • Use John with rule r (for reversed character order)


6) 377081d69d23759c5946a95d1b757adc

  • Answer: +17215440375

  • Steps to Reproduce:

    • Use john with raw-md5 format.


7) ba6e8f9cd4140ac8b8d2bf96c9acd2fb58c0827d556b78e331d1113fcbfe425ca9299fe917f6015978f7e1644382d1ea45fd581aed6298acde2fa01e7d83cdbd

  • Answer: !@#redrose!@#

  • Steps to Reproduce: Use hashcat with 17600 (SHA3-512)


8) 9f7376709d3fe09b389a27876834a13c6f275ed9a806d4c8df78f0ce1aad8fb343316133e810096e0999eaf1d2bca37c336e1b7726b213e001333d636e896617

  • Answer: hackinghackinghackinghacking

  • Steps to Reproduce:

    • Generate the wordlist with 1,2,3,4 and 5 repetition of the words using python script.

    • Use john with Raw-Blake2


8) $6$kI6VJ0a31.SNRsLR$Wk30X8w8iEC2FpasTo0Z5U7wke0TpfbDtSwayrNebqKjYWC4gjKoNEJxO/DkP.YFTLVFirQ5PEh4glQIHuKfA/

  • Answer: kakashi1

  • Steps to Reproduce: Use john or HashCat with sha512crypt


References

Last updated