-
Notifications
You must be signed in to change notification settings - Fork 0
/
DiscordAccount.py
83 lines (64 loc) · 2.78 KB
/
DiscordAccount.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#from random_username.generate import generate_username
import random
import string
def generate_password(stringLength=8):
lettersAndDigits = string.ascii_letters + string.digits
return ''.join((random.choice(lettersAndDigits) for i in range(stringLength)))
def generate_email(mail=None, min=5, max=20):
extensions = ['com', 'net', 'org', 'gov']
domains = ['gmail', 'yahoo', 'comcast', 'verizon',
'charter', 'hotmail', 'outlook', 'frontier', 'web']
f = open('email.txt')
lines = f.readlines()
#winext = extensions[random.randint(0, len(extensions)-1)]
#windom = domains[random.randint(0, len(domains)-1)]
#windom = lines[1]
#winext = lines[2]
domain = lines[1]
#acclen = random.randint(min, max)
email_n = open('temp_mail.txt', 'r')
line = email_n.readline()
print('LINE:' + line)
current_mails = int(line)
#f = open('email.txt')
#first_line = f.readline()
mail = lines[0]
winacc = "" + mail + "+" + str(current_mails)
finale = winacc + "@" + domain#windom + "." + winext
print(finale)
current_mails += 1
print('CURRENT MAILS:' + str(current_mails))
line = str(current_mails)
email_n = open('temp_mail.txt', 'w')
email_n.writelines(line)
return finale
def generate_sentence():
nouns = ("puppy", "car", "rabbit", "girl", "monkey", "dog", "cat", "cow", "sheep", "rabbit",
"duck", "hen", "horse", "pig", "turkey", "chicken", "donkey", "goat", "guinea pig", "llama")
verbs = ("runs", "hits", "jumps", "drives", "barfs", "demands", "breeds", "hopes",
"tops", "sounds", "rests", "shoots", "costs", "writes", "tastes", "supplies")
adv = ("crazily.", "dutifully.", "foolishly.", "merrily.", "occasionally.",
"nervously.", "rigidly.", "instantly.", "innocently.", "warmly.", "beautifully.", "simply.", "reassuringly.")
adj = ("adorable", "clueless", "dirty", "odd", "stupid", "private", "fanatical",
"pleasant", "common", "dead", "rude", "political", "sable", "colossal", "therapeutic", "maniacal", "lonley", "nutty", "light", "snotty", "calm", "vivacious")
l = [nouns, verbs, adj, adv]
sentence = " ".join([random.choice(i) for i in l])
return sentence
class DiscordAccount():
token = None
email = None
unsername = None
password = None
def __init__(self):
pass
def generate_random_credentials(self):
sentence = generate_sentence()
while len(sentence) >= 32:
sentence = generate_sentence()
continue
if len(sentence) <= 32:
self.username = sentence
#self.username = generate_sentence()
self.email = generate_email()
self.password = generate_password(10)
self.welcome_message = generate_sentence()