Question: modify the attached python code to crack the hash values stored in the attached text file named hashValuesYouNeedToCrack.txt . The file named passwordList.txt stores the

modify the attached python code to crack the hash values stored in the attached text file named hashValuesYouNeedToCrack.txt. The file named passwordList.txt stores the common clear passwords.
Dsign your own Python program to crack the hash values
Modify this Code:
import hashlib
# read the hash values you need to crack one by one:
hashvalues = open("hashValuesYouNeedToCrack.txt",'r')
for hashvalue in hashvalues.readlines():
hashvalue = hashvalue.strip('
')
# print(hashvalue)
# read each password from the passwordList.txt.
passlist = open("passwordList.txt",'r')
for password in passlist.readlines():
password = password.strip('
')
# print(password)
#convert each common password to different hash values.
hashguess_md5= hashlib.md5(bytes(password, 'utf-8')).hexdigest()
hashguess_sha1= hashlib.sha1(bytes(password, 'utf-8')).hexdigest()
hashguess_sha224= hashlib.sha224(bytes(password, 'utf-8')).hexdigest()
hashguess_sha256= hashlib.sha256(bytes(password, 'utf-8')).hexdigest()
hashguess_sha512= hashlib.sha512(bytes(password, 'utf-8')).hexdigest()
# compare the hash values to find the clear password.
if hashguess_md5== hashvalue:
print("[+] The Password is: "+ str(password))
# print(hashguess)
break
elif hashguess_sha1== hashvalue:
print("[+] The Password is: "+ str(password))
# print(hashguess)
break
elif hashguess_sha224== hashvalue:
print("[+] The Password is: "+ str(password))
break
elif hashguess_sha256== hashvalue:
print("[+] The Password is: "+ str(password))
break
elif hashguess_sha512== hashvalue:
print("[+] The Password is: "+ str(password))
break
------------------------------------------------------------------------
HashValuesYouNeedToCrack.txt :
(a)091a8d6358c4875467164232c54ca3a0:god:
(b)35db6cfca6bd0cd2b877be3b843e6092d535f7fb:dog:
(c)89ab3bca0cf153a7faf99329a0efecf2c9b666dbb1c0f69727f7b07112274267:fish:
(d)72957aa95471adeeb2d2aba03d802baa:pig:
(e)2cf01108051d43a5e74a39ed6a47fc387c81e0f16368b7743a0686b1:cat:
__________________________________________________________________________________________________
This is the Password List:
00000000
02
1
11111111
1234
12345678
1234qwer
14
180e
1812overture
1sanjose
2000
21122112
22
2200
22222222
240
2500
2700
2welcome
3
33333333
3500
3b2
3com
3comcellplex7000
3comcorebuilder7000
3comhiperarcv4
3comlanplex2500
3comlinkswitch2000
3comsuperstackiiswitch
4077mash
44444444
55555555
5x0
6000
66666666
7
7000
7100
77777777
88888888
911scturbo
911turbo
9500
99999999
a
a1b2c3d4
aaaaaaaa
aardvark
aardwolf
aaronical
aaronite
aaronitic
abacinate
abacination
abaciscus
abactinal
abactinally
abaction
abaculus
abadabdoo
abaisance
abaissed
abalienate
abalienation
abampere
abandonable
abandoned
abandonedly
abandonee
abandoner
abandonment
abaptiston
abarambo
abarthrosis
abarticular
abarticulation
abasedly
abasedness
abasement
abashedly
abashedness
abashless
abashlessly
abashment
abastardize
abatable
abatement
abatised
abattoir
abbacomes
abbadide
abbasside
abbatial
abbatical
abbeystede
abbotnullius
abbotship
abbreviate
abbreviately
abbreviation
abbreviator
abbreviatory
abbreviature
abcd1234
abcoulomb
abdenace
abderian
abderite
abdicable
abdicant
abdicate
abdication
abdicative
abdicator
abditive
abditory
abdominal
abdominales
abdominalian
abdominally
abdominocardiac
abdominocystic
abdominogenital
abdominoscope
abdominoscopy
abdominous
abdominovaginal
abdominovesical
abducens
abducent
abduction
abductor
abdulkaf
abdullah
abearance
abecedarian
abecedarium
abecedary
abelicea
abelmoschus
abelmosk
abelonian
abeltree
abencerrages
abenteric
abepithymia
aberdeen
aberdevine
aberdonian
abernathy
aberrance
aberrancy
aberrant
aberrate
aberration
aberrational
aberrator
aberrometer
aberroscope
aberuncator
abetment
abetting
abevacuation
abeyance
abeyancy
abhiseka
abhominable
abhorred
abhorrence
abhorrency
abhorrent
abhorrently
abhorrer
abhorrible
abhorring
abhorson
abidance
abidingly
abidingness
abietate
abietene
abietineae
abietineous
abietinic
abigailship
abintestate
abiogenesis
abiogenesist
abiogenetic
abiogenetical
abiogenetically
abiogenist
abiogenous
abiogeny
abiological
abiologically
abiology
abiotrophic
abiotrophy
abirritant
abirritate
abirritation
abirritative
abjectedness
abjection
abjective
abjectly
abjectness
abjudicate
abjudication
abjunction
abjunctive
abjuration
abjuratory
abjurement
abkhasian
ablactate
ablactation
ablastemic
ablastous
ablation
ablatitious
ablatival
ablative
ablegate
ableness
ablepharia
ablepharon
ablepharous
ablepharus
ablepsia
ableptica

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!