guessed passwords


SUBMITTED BY: uuuuuu

DATE: Oct. 24, 2016, 8:43 p.m.

FORMAT: Text only

SIZE: 564 Bytes

HITS: 461

  1. # A simple script for generating a list of very easily guessed passwords, to demonstrate recursive functions
  2. # You should never use any of these as your password because some l33t hax0r will get into your stuff
  3. def print_remainder(remaining_list, so_far=''):
  4. if len(remaining_list) == 0:
  5. print(so_far)
  6. else:
  7. for i in remaining_list[0]:
  8. print_remainder(remaining_list[1:],so_far+i)
  9. character_list = [['p','P'],['a','A'],['s','S'],['s','S'],['w','W'],['o','O','0'],['r','R'],['d','D']]
  10. print_remainder(character_list)

comments powered by Disqus