#! python3 # py.py - An insecure password locker program. PASSWORDS={'baidu':'wddaqweasd12345', '360':'poiuyhjksagdfhsss', '163':'jiashdbhjgadfyvck', 'youku':'dfghjkiuydcvbsa', 'mscbsc':'asdafsfsddasd', 'taobao':'dasdafrvrvsrvs' } import sys, pyperclip if len(sys.argv) < 2: print('Usage: py.py [account] - copy account password') sys.exit() account = sys.argv[1] # first command line arg is the account name if account in PASSWORDS: pyperclip.copy(PASSWORDS[account]) print("PASSWORDS for %s copied to clipboard."%(account)) else: print("There is no account named %s"%(account))