strips the html code from the rest of the page text we use regular expression to find all words starting with an alphabetic character followed by two or more "wordcharacters after making the final cutthe successful words are saved in lowercase to the wordlist now let' round out the script by giving it the ability to mangle and display the captured wordlist def mangle(selfword)year datetime now(year suffixes [""" ""!"yearmangled [for password in (wordword capitalize())for suffix in suffixesmangled append("% % (passwordsuffix)return mangled def display_wordlist(self)print "#!commentbhp wordlist for site( % "join(self hostsfor word in sorted(self wordlist)for password in self mangle(word)print password return very nicethe mangle function takes base word and turns it into number of password guesses based on some common password creation "strategies in this simple examplewe create list of suffixes to tack on the end of the base wordincluding the current year next we loop through each suffix and add it to the base word to create unique password attempt we do another loop with capitalized version of the base word for good measure in the display_wordlist functionwe print "john the ripper"-style comment to remind us which sites were used to generate this wordlist then we mangle each base word and print the results time to take this baby for spin