-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspams.py
More file actions
69 lines (64 loc) · 3.36 KB
/
spams.py
File metadata and controls
69 lines (64 loc) · 3.36 KB
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
""" File contains the spam function, you can modify it to replace the body
of your spams emails when sending for instance.
@author: Ahmed Tidiane BALDE
"""
from mail import sendmail
def spam(smtpObj, phrom, name, to, subject, nbspams=None):
count = 0
while True and nbspams is None:
sendmail(smtpObj,
phrom,
to,
subject,
"< I can proudly say that I am {} >\n"
" ----------\n"
" \ ,-----._\n"
" . \ . ,' `-.__,------._\n"
" // \ __\\' `-.\n"
"(( _____-'___)) |\n"
" `:='/ (alf_/ |\n"
" `.=| |=' |\n"
" |) O | \\\n"
" | | /\ \\\n"
" | / . / \ \\\n"
" | .-..__ ___ .--' \ |\ \ |\n"
" |o o | ``--.___. / `-' \ \\ \ |\n"
" `--'' ' .' / / | | | | \\\n"
" | | / / | | | mmm\n"
" | || | | /| |\n"
" ( .' \ \ || | |\n"
" | | \ \ // / /\n"
" | | \ \ || |_|\n"
" / | |_/ /_|\n"
" /__/".format(name))
count += 1
print(count)
else:
for i in range(nbspams):
sendmail(smtpObj,
phrom,
to,
subject,
"< I can proudly say that I am {} >\n"
" ----------\n"
" \ ,-----._\n"
" . \ . ,' `-.__,------._\n"
" // \ __\\' `-.\n"
"(( _____-'___)) |\n"
" `:='/ (alf_/ |\n"
" `.=| |=' |\n"
" |) O | \\\n"
" | | /\ \\\n"
" | / . / \ \\\n"
" | .-..__ ___ .--' \ |\ \ |\n"
" |o o | ``--.___. / `-' \ \\ \ |\n"
" `--'' ' .' / / | | | | \\\n"
" | | / / | | | mmm\n"
" | || | | /| |\n"
" ( .' \ \ || | |\n"
" | | \ \ // / /\n"
" | | \ \ || |_|\n"
" / | |_/ /_|\n"
" /__/".format(name))
count += 1
print(count)