I am trying to parse a txt file with a bunch of MD5 hash passwords (for an assignment) my code is
with open('weak.txt') as f:
i = 0
for line in f:
weak.append(eval(line.strip()))
if 'str' in line:
break
but I am a getting
SyntaxError: unexpected EOF, File "<string>", line 1
1660fe5c81c4ce64a2611494c439e1ba
^
I tried to add raw input to my code , but it just hangs. any ideas?
evalon MD5 codes?evalexpects its argument to be a string containing Python statements.evaland see where that gets you