Advertisement
Guest User

Untitled

a guest
Oct 8th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. from sys imort argv
  4.  
  5. def main():
  6. filename = raw_input('please inset user file:\m')
  7. user_list = get_wordlist_file(filename)
  8. filename =raw_input('please inset password file:\n')
  9. password_list = get_wordlist_file(filename)
  10.  
  11. print "user:\n" + str(user_list)
  12. print "password:\n" + str(password_list)
  13.  
  14. combo_list = []
  15.  
  16. for user in user_list:
  17. for password in password_list:
  18. combo_list.append(user + ":" + password)
  19.  
  20. for item in combo_list:
  21. print item
  22.  
  23. def get_wordlist_file(file_path):
  24. with open(file_path, 'r') as mishtane_kolshehu:
  25. data = mishtane_kolshehu.read()
  26. wordlist = data.split(9'\n')
  27. wordlist = list(filter(lambda word)
  28. return wordlist
  29.  
  30. if __name__ = '__main__':
  31. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement