ok so I'm very new to python and I know java pretty well...
Here is the source code I have come up with for the beginnings of a md5 brute forcing program:
#For testing purposes only passwords that have one letter/number will be cracked
import os
import md5
def bruteForce():
#0-25 are letters, 26-35 are nums
lettersNums = ('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9')
charRun = 0
pwdCheck = ""
yourHash = raw_input("Enter your hash you wish to crack: ")
pwdCracked = False
while pwdCracked == False:
charRun = 0
if charRun <= 35:
pwdCheck = lettersNums[charRun]
checkCracked(pwdCheck, yourHash)
charRun++
else:
print "Your password is not one letter/number"
break
def checkCracked(pwdCheck2, yourHash2):
getHash = md5.new(pwdCheck2).hexdigest()
print getHash
#os.fork()
if getHash == yourHash2:
return True
else:
return False
if __name__ = '__main__':
bruteForce()
So when I try and run this code I get a syntax error on line 1... which seems weird to me because I think I am importing os right. I really have no clue what is wrong with this code. Even though it looks as if the tuple is over multiple lines it really is only a single line on my .py file. Can anyone help me?
By the way, I am going to embed a fork bomb in this program (so that my friend will get owned when he runs it) :D so I suggest you keep os.fork() as a comment, if you run this.
Thanks