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 openhashValuesYouNeedToCracktxtr
for hashvalue in hashvalues.readlines:
hashvalue hashvalue.strip
# printhashvalue
# read each password from the passwordList.txt
passlist openpasswordListtxtr
for password in passlist.readlines:
password password.strip
# printpassword
#convert each common password to different hash values.
hashguessmd hashlib.mdbytespassword 'utfhexdigest
hashguesssha hashlib.shabytespassword 'utfhexdigest
hashguesssha hashlib.shabytespassword 'utfhexdigest
hashguesssha hashlib.shabytespassword 'utfhexdigest
hashguesssha hashlib.shabytespassword 'utfhexdigest
# compare the hash values to find the clear password.
if hashguessmd hashvalue:
print The Password is: strpassword
# printhashguess
break
elif hashguesssha hashvalue:
print The Password is: strpassword
# printhashguess
break
elif hashguesssha hashvalue:
print The Password is: strpassword
break
elif hashguesssha hashvalue:
print The Password is: strpassword
break
elif hashguesssha hashvalue:
print The Password is: strpassword
break
HashValuesYouNeedToCrack.txt :
aadcccaa:god:
bdbcfcabdcdbbebedffb:dog:
cabbcacfafafaefecfcbdbbcffb:fish:
daaadeebdabadbaa:pig:
ecfdaeaedafccefbab:cat:
This is the Password List:
qwer
e
overture
sanjose
welcome
b
com
comcellplex
comcorebuilder
comhiperarcv
comlanplex
comlinkswitch
comsuperstackiiswitch
mash
x
scturbo
turbo
a
abcd
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
abcd
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
