Skip to content

Instantly share code, notes, and snippets.

@issackelly
Created January 21, 2018 17:18
Show Gist options
  • Save issackelly/473a484a6089eaa4ad36d604e09dfd09 to your computer and use it in GitHub Desktop.
Save issackelly/473a484a6089eaa4ad36d604e09dfd09 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
import random
def apass():
chars = "!@#$%^&*()1234567890"
password = []
import linecache
for i in range(3):
password.append(linecache.getline("/etc/dictionaries-common/words", random.randint(1,100000)))
password = random.choice(chars).join(password)
password = password.replace("'", "").replace("\n",'')
print (password)
if __name__ == "__main__":
apass()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment