arten_1337

Passwordlocker

Jul 4th, 2018
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.56 KB | None | 0 0
  1. #! /usr/bin/python3
  2. # Password_locker.py An insecure Password locker program
  3. Passwords = {'email': 'iahfiajapojoagjapgpa', 'blog': 'aofkak10ifkqaf', 'luggage': '12345'}
  4. import sys
  5. import pyperclip
  6. if len(sys.argv) < 2:
  7.     print('Usage: python Password_locker.py [account] - copy account password')
  8.     sys.exit()
  9. account = sys.argv[1]  # first command line arg is the account name
  10. if account in Passwords:
  11.     pyperclip.copy(Passwords[account])
  12.     print('Password for', account, 'is copied to clipboard.')
  13. else:
  14.     print('There is no account named', account)
Advertisement
Add Comment
Please, Sign In to add comment