Crack The Hash Level 2 — TryHackMe

THM-CTH2

Introduction

It’s time to crack hashes

  • Cracking is all about trial and error. You may need to try to lot of things and there is no guarantee that you will be able to crack the hash.
  • The hardware configuration matters a lot which is directly related to the speed of cracking.
  • Picking good wordlist(s) also plays an important role.
  • Trying combinations helps like a word can start with a capital letter, a word can have all small letters, a word can have all capital letters etc…
  • Use “john --list=formats” to list all the supported hash formats by John The Ripper cracking tool.
john advise1
john advise2
wordlistctl
#!/usr/bin/env python# first get all lines from file
with open('cities.txt', 'r') as f:
lines = f.readlines()
# remove spaces
lines = [line.replace(' ', '') for line in lines]
# convert to lowercase
lines = [line.lower() for line in lines]
# finally, write lines in the file
with open('cities_modified.txt', 'w') as f:
f.writelines(lines)
john advise3
haiti
john advise4
lyricpass
john advise5
Sint Maarten Area Codes
pwngen
john advise6
SHA3
john advise7
#!/usr/bin/env python#get file object
file1 = open("advise8.txt", "r")
file2 = open('advise8_modified.txt', 'w')
while(True):
#read next line
line = file1.readline()
#check if line is not null
if not line:
break
#write in file2 with each line repeated 2,3,4,5 times
file2.writelines(line.strip()*2+'\n'+line.strip()*3+'\n'+line.strip()*4+'\n'+line.strip()*5+'\n')
#close files
file2.close
file1.close
sha512crypt

--

--

--

Software Developer having keen interest in Security, Privacy and Pen-testing. Certs:- Security+,PenTest+,AZ900

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Serverless Security Scorecard

What is the blockchain and how secure is it?

BED Airdrop Going Live

MJACK Airdrop Going Live

{UPDATE} Top Quiz Calcio Hack Free Resources Generator

MoonSwap has completed22BURNs

facebook certificate error

facebook certificate error

Britain spends £40mn on cyber security center to protect military networks

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
0xsanz

0xsanz

Software Developer having keen interest in Security, Privacy and Pen-testing. Certs:- Security+,PenTest+,AZ900

More from Medium

picoCTF 2022 bloat.py writeup

TryHackMe: Attacking Kerberos Walkthrough

How to Configure Port Forwarding Destination NAT on Fortinet Firewall — ICT Fella

Writeup for lab polosmb3 | Network Services | TryHackMe