I'm not good at programming. Actually, I already understand the algorithm but it doesn't work in implementing it to coding. So I explain here.
I have a word = "lionfire" and md5 hash = "55dbbb5fa990642a061cdfcf73b5027b"
if i just know the md5 hash and "li?nf?re" word, how i can guess the real word? this is my last try with python
import hashlib
import sys
import string
characters = string.printable
for x, y in characters:
content= 'li'+ x + 'nf' + y + 're'
if hashlib.md5(content).hexdigest() == "55dbbb5fa990642a061cdfcf73b5027b":
print content
sys.exit(0)