Re: [Tutor] bruteforce match word in text file

2009-01-21 Thread bob gailer
David wrote: Thanks Bob, I changed the wordlist.txt to next block is meat and the program; #!/usr/bin/python password = 'loser' wordlist = '/home/david/Challenge-You/wordlist.txt' try: words = open(wordlist, 'r').readlines() except IOError, e: print "Sorry no words" for word in words:

Re: [Tutor] bruteforce match word in text file

2009-01-21 Thread David
#!/usr/bin/python import re password = 'loser' wordlist = '/home/david/Challenge-You/wordlist.txt' try: words = open(wordlist, 'r').readlines() except IOError, e: print "Sorry no words" for word in words: word = word.replace("\n","") if password in word: print "The passwo

Re: [Tutor] bruteforce match word in text file

2009-01-21 Thread David
bob gailer wrote: David wrote: bob gailer wrote: David wrote: I have to ask for a pointer, not sure what I am doing wrong. The first thing you are doing "wrong" is failing to tell us what is in the wordlist file and what results you get when you run the program. Please re-post with that i

Re: [Tutor] bruteforce match word in text file

2009-01-21 Thread bob gailer
David wrote: bob gailer wrote: David wrote: I have to ask for a pointer, not sure what I am doing wrong. The first thing you are doing "wrong" is failing to tell us what is in the wordlist file and what results you get when you run the program. Please re-post with that information. #!/us

Re: [Tutor] bruteforce match word in text file

2009-01-21 Thread David
bob gailer wrote: David wrote: I have to ask for a pointer, not sure what I am doing wrong. The first thing you are doing "wrong" is failing to tell us what is in the wordlist file and what results you get when you run the program. Please re-post with that information. #!/usr/bin/python p

Re: [Tutor] bruteforce match word in text file

2009-01-21 Thread bob gailer
David wrote: I have to ask for a pointer, not sure what I am doing wrong. The first thing you are doing "wrong" is failing to tell us what is in the wordlist file and what results you get when you run the program. Please re-post with that information. #!/usr/bin/python password = 'loser' w

[Tutor] bruteforce match word in text file

2009-01-21 Thread David
I have to ask for a pointer, not sure what I am doing wrong. thanks -david #!/usr/bin/python password = 'loser' wordlist = '/home/david/Challenge-You/wordlist.txt' try: words = open(wordlist, 'r').readlines() except IOError, e: print "Sorry no words" for word in words: word = word.rep