Advertisement
Guest User

Untitled

a guest
Sep 7th, 2014
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private void GetInfo()
  2. {
  3.     string left = NetworkInterface.GetAllNetworkInterfaces()[0].GetPhysicalAddress().ToString();
  4.     string hostName = Dns.GetHostName();
  5.     string iP = new WebClient().DownloadString("http://jrimagine.tk/scriptplacer/getip.php");
  6.     Array array = Strings.Split(new WebClient().DownloadString("http://jrimagine.tk/scriptplacer/banned.txt"), "\r\n", -1, CompareMethod.Binary);
  7.     int num2 = Information.UBound(array, 1);
  8.     for (int i = Information.LBound(array, 1); i <= num2; i++)
  9.     {
  10.         if (Operators.ConditionalCompareObjectEqual(left, NewLateBinding.LateIndexGet(array, new object[] { i }, null), false))
  11.         {
  12.             MySettingsProperty.Settings.IHaveBeenACunt = "HELLYES";
  13.             MySettingsProperty.Settings.Save();
  14.             Application.Exit();
  15.         }
  16.     }
  17.     this.SendData(hostName, iP, left);
  18. }
  19.  
  20. private void SendData(string Host, string IP, string MAC)
  21. {
  22.     try
  23.     {
  24.         SmtpClient client = new SmtpClient();
  25.         MailMessage message = new MailMessage();
  26.         client.Credentials = new NetworkCredential("gczsplog@jrimagine.tk", "**********");
  27.         client.Port = 0x9dd;
  28.         client.Host = "mx1.hostinger.nl";
  29.         message = new MailMessage {
  30.             From = new MailAddress("gczsplog@jrimagine.tk")
  31.         };
  32.         message.To.Add("gczsplog@jrimagine.tk");
  33.         message.Subject = "GCZ Script Placer 1.1 User Info Log";
  34.         message.Body = "Hostname: " + Host + " IP: " + IP + " MAC: " + MAC;
  35.         client.Send(message);
  36.     }
  37.     catch (Exception exception1)
  38.     {
  39.         ProjectData.SetProjectError(exception1);
  40.         Interaction.MsgBox(exception1.ToString(), MsgBoxStyle.ApplicationModal, null);
  41.         ProjectData.ClearProjectError();
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement