Advertisement
Guest User

wedsudusdu

a guest
May 22nd, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. int token = 1;
  2.  
  3. string License = bunifuMetroTextbox1.Text;
  4.  
  5. MySqlConnection conn = new MySqlConnection("server=85.191.220.120;user id=login;Password=Udy88kvg1;database=mysqllogin");
  6.  
  7. MySqlDataAdapter sda = new MySqlDataAdapter("select count(*) from mysqlloginbase where 1 = '"+token+"' and License = '"+License+"'", conn);
  8.  
  9. DataTable dt = new DataTable();
  10.  
  11. sda.Fill(dt);
  12.  
  13. if (dt.Rows[0][0].ToString() == "1")
  14.  
  15. {
  16.  
  17. Info.Text = "You logged in successfully";
  18.  
  19. var roamingDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
  20.  
  21. var filePath = Path.Combine(roamingDirectory, "temp");
  22.  
  23. var mbs = new ManagementObjectSearcher("Select ProcessorId From Win32_processor");
  24.  
  25. ManagementObjectCollection mbsList = mbs.Get();
  26.  
  27. string id = "";
  28.  
  29. foreach (ManagementObject mo in mbsList)
  30.  
  31. {
  32.  
  33. id = mo["ProcessorId"].ToString();
  34.  
  35. break;
  36.  
  37. }
  38.  
  39. 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;
  40.  
  41. //Encryption
  42.  
  43. var plainTextBytes = Encoding.UTF8.GetBytes(openlog);
  44.  
  45. string decodedtext = Convert.ToBase64String(plainTextBytes);
  46.  
  47. string array = new string(decodedtext.Reverse().ToArray());
  48.  
  49. //Encryption
  50.  
  51. TextWriter tsw = new StreamWriter(filePath + "\\xxx.xxx", true);
  52.  
  53. tsw.WriteLine(array);
  54.  
  55. tsw.Close();
  56.  
  57. using (WebClient client = new WebClient())
  58.  
  59. {
  60.  
  61. client.Credentials = new NetworkCredential("log", "udy88kvg");
  62.  
  63. client.UploadFile("ftp://85.191.220.120:21/xxx.xxx", WebRequestMethods.Ftp.UploadFile, filePath + "\\xxx.xxx");
  64.  
  65. }
  66.  
  67. File.Delete(filePath + "\\xxx.xxx");
  68.  
  69. this.Hide();
  70.  
  71. acctype = "defaultacc";
  72.  
  73. if (File.Exists("config.conf"))
  74.  
  75. {
  76.  
  77. Form EAC = new Home();
  78.  
  79. EAC.Show();
  80.  
  81. }
  82.  
  83. else
  84.  
  85. {
  86.  
  87. Form eula = new ConfirmEula();
  88.  
  89. eula.Show();
  90.  
  91. this.Hide();
  92.  
  93. }
  94.  
  95.  
  96.  
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement