Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int token = 1;
- string License = bunifuMetroTextbox1.Text;
- MySqlConnection conn = new MySqlConnection("server=85.191.220.120;user id=login;Password=Udy88kvg1;database=mysqllogin");
- MySqlDataAdapter sda = new MySqlDataAdapter("select count(*) from mysqlloginbase where 1 = '"+token+"' and License = '"+License+"'", conn);
- DataTable dt = new DataTable();
- sda.Fill(dt);
- if (dt.Rows[0][0].ToString() == "1")
- {
- Info.Text = "You logged in successfully";
- var roamingDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
- var filePath = Path.Combine(roamingDirectory, "temp");
- var mbs = new ManagementObjectSearcher("Select ProcessorId From Win32_processor");
- ManagementObjectCollection mbsList = mbs.Get();
- string id = "";
- foreach (ManagementObject mo in mbsList)
- {
- id = mo["ProcessorId"].ToString();
- break;
- }
- 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;
- //Encryption
- var plainTextBytes = Encoding.UTF8.GetBytes(openlog);
- string decodedtext = Convert.ToBase64String(plainTextBytes);
- string array = new string(decodedtext.Reverse().ToArray());
- //Encryption
- TextWriter tsw = new StreamWriter(filePath + "\\xxx.xxx", true);
- tsw.WriteLine(array);
- tsw.Close();
- using (WebClient client = new WebClient())
- {
- client.Credentials = new NetworkCredential("log", "udy88kvg");
- client.UploadFile("ftp://85.191.220.120:21/xxx.xxx", WebRequestMethods.Ftp.UploadFile, filePath + "\\xxx.xxx");
- }
- File.Delete(filePath + "\\xxx.xxx");
- this.Hide();
- acctype = "defaultacc";
- if (File.Exists("config.conf"))
- {
- Form EAC = new Home();
- EAC.Show();
- }
- else
- {
- Form eula = new ConfirmEula();
- eula.Show();
- this.Hide();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement