Advertisement
TTpocToXaKep

Rambler mail generation login + pass ( custom mail )

Feb 14th, 2023 (edited)
2,382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.82 KB | None | 0 0
  1. import secrets
  2. import string
  3.  
  4. # Generate a secure login
  5. alphabet = string.ascii_letters + string.digits
  6. login0 = ''.join(secrets.choice(alphabet) for i in range(8))
  7. login = login0 + "@rambler.ru" # here u can write ur mail (@gmail.com, @mail.ru, other)
  8.  
  9. # Generate a secure password
  10. alphabet = string.ascii_letters + string.digits
  11. while True:
  12.     password = ''.join(secrets.choice(alphabet) for i in range(16))
  13.     if (any(c.islower() for c in password)
  14.         and any(c.isupper() for c in password)
  15.         and any(c.isdigit() for c in password)):
  16.         break
  17.  
  18. # Write login and password to file
  19. with open("credentials.txt", "w") as file:
  20.     file.write(f"Login: {login}\nPassword: {password}")
  21.  
  22. print("Login and password written to file 'credentials.txt'")
  23.  
  24. # Wait for user exit
  25. input("Press enter to exit...")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement