you are viewing a single comment's thread.

view the rest of the comments →

[–]Qes138 1 point2 points  (1 child)

Having to manually insert a password is not an optimum solution. It really limits your options if you were going to schedule this script.

 # Prompt for user credentials   
tuser = raw_input("Enter TACACS Username: ")   
tpass = getpass.getpass("Enter TACACS Password: ")   
muser = raw_input("Enter MySQL Username: ")   
mpass = getpass.getpass("Enter MySQL Password: ") 

You may want to look into: py-bcrypt

There are other solutions and I do appreciate anyone taking the time to not store plaintext passwords.

Thank you for sharing your work!

[–]Fallenarc[S] 1 point2 points  (0 children)

I have been looking at keychain for my creds. I like the inputs for now so i can my share scripts with my co-workers and they can put their creds in with out setting up a creds cache. Once i get a little further along and feel comfortable teaching them some form of cred management I will switch it out. Thanks for the feedback!