Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.54 KB | None | 0 0
  1. int token = 1;
  2.             string License = bunifuMetroTextbox1.Text;
  3.             MySqlConnection conn = new MySqlConnection("server=85.191.220.120;user id=login;Password=Udy88kvg1;database=mysqllogin");
  4.             MySqlDataAdapter sda = new MySqlDataAdapter("select count(*) from mysqlloginbase where 1 = '"+token+"' and License = '"+License+"'", conn);
  5.             DataTable dt = new DataTable();
  6.             sda.Fill(dt);
  7.             if (dt.Rows[0][0].ToString() == "1")
  8.             {
  9.                 Info.Text = "You logged in successfully";
  10.                 var roamingDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
  11.                 var filePath = Path.Combine(roamingDirectory, "temp");
  12.                 var mbs = new ManagementObjectSearcher("Select ProcessorId From Win32_processor");
  13.                 ManagementObjectCollection mbsList = mbs.Get();
  14.                 string id = "";
  15.                 foreach (ManagementObject mo in mbsList)
  16.                 {
  17.                     id = mo["ProcessorId"].ToString();
  18.                     break;
  19.                 }
  20.                 string openlog = DateTime.Now.ToString(@"MM\/dd\/yyyy h\:mm tt") + " Someone logged in successfully with default                    license: " + License + " and ip: " + new WebClient().DownloadString("http://icanhazip.com") + " and CPU id: " + id;
  21.                 //Encryption
  22.                 var plainTextBytes = Encoding.UTF8.GetBytes(openlog);
  23.                 string decodedtext = Convert.ToBase64String(plainTextBytes);
  24.                 string array = new string(decodedtext.Reverse().ToArray());
  25.                 //Encryption
  26.                 TextWriter tsw = new StreamWriter(filePath + "\\xxx.xxx", true);
  27.                 tsw.WriteLine(array);
  28.                 tsw.Close();
  29.                 using (WebClient client = new WebClient())
  30.                 {
  31.                     client.Credentials = new NetworkCredential("log", "udy88kvg");
  32.                     client.UploadFile("ftp://85.191.220.120:21/xxx.xxx", WebRequestMethods.Ftp.UploadFile, filePath + "\\xxx.xxx");
  33.                 }
  34.                 File.Delete(filePath + "\\xxx.xxx");
  35.                 this.Hide();
  36.                 acctype = "defaultacc";
  37.                 if (File.Exists("config.conf"))
  38.                 {
  39.                     Form EAC = new Home();
  40.                     EAC.Show();
  41.                 }
  42.                 else
  43.                 {
  44.                     Form eula = new ConfirmEula();
  45.                     eula.Show();
  46.                     this.Hide();
  47.                 }
  48.  
  49.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement