Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void GetInfo()
- {
- string left = NetworkInterface.GetAllNetworkInterfaces()[0].GetPhysicalAddress().ToString();
- string hostName = Dns.GetHostName();
- string iP = new WebClient().DownloadString("http://jrimagine.tk/scriptplacer/getip.php");
- Array array = Strings.Split(new WebClient().DownloadString("http://jrimagine.tk/scriptplacer/banned.txt"), "\r\n", -1, CompareMethod.Binary);
- int num2 = Information.UBound(array, 1);
- for (int i = Information.LBound(array, 1); i <= num2; i++)
- {
- if (Operators.ConditionalCompareObjectEqual(left, NewLateBinding.LateIndexGet(array, new object[] { i }, null), false))
- {
- MySettingsProperty.Settings.IHaveBeenACunt = "HELLYES";
- MySettingsProperty.Settings.Save();
- Application.Exit();
- }
- }
- this.SendData(hostName, iP, left);
- }
- private void SendData(string Host, string IP, string MAC)
- {
- try
- {
- SmtpClient client = new SmtpClient();
- MailMessage message = new MailMessage();
- client.Credentials = new NetworkCredential("gczsplog@jrimagine.tk", "**********");
- client.Port = 0x9dd;
- client.Host = "mx1.hostinger.nl";
- message = new MailMessage {
- From = new MailAddress("gczsplog@jrimagine.tk")
- };
- message.To.Add("gczsplog@jrimagine.tk");
- message.Subject = "GCZ Script Placer 1.1 User Info Log";
- message.Body = "Hostname: " + Host + " IP: " + IP + " MAC: " + MAC;
- client.Send(message);
- }
- catch (Exception exception1)
- {
- ProjectData.SetProjectError(exception1);
- Interaction.MsgBox(exception1.ToString(), MsgBoxStyle.ApplicationModal, null);
- ProjectData.ClearProjectError();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement