This appears to be the correct indentation.
#!/usr/bin/env python
import hashlib
import sys
def main():
if len(sys.argv) < 2:
print "[ + ] Usage: %s <hash>" % sys.argv[0]
sys.exit(0)
commonStrings = [
"Diaa",
"Diab",
"Mohammad",
"test",
"7amama",
"sos",
"lolo",
"hacked",
"try",
"[email protected]",
"secgeek",
"lnxg33k",
"[email protected]",
"[email protected]",
"[email protected]"
]
for i in commonStrings:
if hashlib.md5(i).hexdigest() == sys.argv[1]:
print "[ + ] OK i got it."
print "[ + ] The hash value [ %s ] is the md5 of [ %s ]." % (sys.argv[1], i)
sys.exit(0)
print "[ ! ] The hash not found on your own list."
if __name__ == "__main__":
main()
13
solved IndentationError: expected an indented block help please [closed]