I have a users.txt and password.txt and i need to iterate in both files
Example of users.txt:
- root
- admin
- oracle
- users
Example of password.txt
- toor
- rooot
- administrator
- password
In my loop just print the first user "root" and all of the password but dont print the others users, this is my code:
fu = open("/home/dskato/diccionarios/user.txt", "r")
fp = open("/home/dskato/diccionarios/pasword.txt", "r")
for user in fu.readlines():
for password in fp.readlines():
print "Username: "+user+" Password: "+password
This is the output but don't iterate over the others users What it's wrong?
Username: root Password: 123456
Username: root Password: 12345678
Username: root Password: 12345678
Username: root Password: 1234
Username: root Password: pass
Username: root Password: password
And i need this output example:
- root: 123456
- root:password
- root:toor
- admin:123456
- admin:password
- admin:toor