Загрузил(а) файлы в ''

This commit is contained in:
jericel 2022-06-23 12:13:29 +00:00
parent 91e17206d1
commit b22a65f0ed
1 changed files with 59 additions and 26 deletions

View File

@ -1,28 +1,61 @@
import os.path
import random
print("site name")
site = input()
chars = '+-/*!&$#?=@<>abcdefghijklnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'
length = int(input('len pass'+ "\n"))
password = ""
for i in range(length):
password += random.choice(chars)
a = random.randrange(len("mail"))
mail = list("lettele")
mail.insert(a, ".")
mail = ''.join(mail) + "@disroot.org"
print(mail)
print(password)
if os.path.exists("password.txt") == True:
file = open("password.txt", "a")
file.write(str(site) + "\n")
file.write(str(mail) + "\n")
file.write(str(password) + "\n")
file.write(" " + "\n")
file.close()
else:
file = open("password.txt", "w")
file.write(str(site) + "\n")
file.write(str(mail) + "\n")
file.write(str(password) + "\n")
file.write(" " + "\n")
from art import *
def pass_gen():
chars = '+-/*!&$#?=@<>abcdefghijklnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'
aprint("bearhug")
length = int(input('len pass'+ "\n"))
global password
password = ""
for i in range(length):
password += random.choice(chars)
return password
def email_gen():
global email
a = random.randrange(len("email"))
email = list("wizzyshadowzz")
email.insert(a, ".")
email = ''.join(email) + "@gmail.com"
return email
def write_in_file():
global site
global email
global password
if os.path.exists("password.txt") == True:
file = open("password.txt", "a")
file.write(str(site) + "\n")
file.write(str(email) + "\n")
file.write(str(password) + "\n")
file.write(" " + "\n")
file.close()
else:
file = open("password.txt", "w")
file.write(str(site) + "\n")
file.write(str(email) + "\n")
file.write(str(password) + "\n")
file.write(" " + "\n")
def print_m_p():
global email
global password
print(email)
print(password)
def main():
tprint("SimplePassGen")
aprint("acid")
print("site name")
global site
site = input()
email_gen()
pass_gen()
print_m_p
write_in_file()
if __name__ == "__main__":
main()