Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 KB | None | 0 0
  1. private void login_Click(object sender, EventArgs e)
  2. {
  3. string text = this.user.Text;
  4. string str2 = this.pass.Text;
  5. try
  6. {
  7. string requestUriString = "http://maxhook.pw/forum/api.php?action=authenticate&username=" + text + "&password=" + str2;
  8. WebRequest.Create(requestUriString);
  9. new WebClient().DownloadString(requestUriString).Contains("hash");
  10. }
  11. catch
  12. {
  13. MessageBox.Show("Username or Password is incorrect");
  14. Application.Exit();
  15. }
  16. try
  17. {
  18. string str4 = "0031ba249";
  19. string str5 = "0f896fd7cb4cb";
  20. string str6 = "d8e8fca2dc" + str5 + str4;
  21. string str7 = "http://maxhook.pw/forum/api.php?action=getUser&value=" + text + "&hash=" + str6;
  22. WebRequest.Create(str7);
  23. string str8 = new WebClient().DownloadString(str7);
  24. char ch = '"';
  25. string[] textArray1 = new string[] { ch.ToString(), "secondary_group_ids", ch.ToString(), ":", ch.ToString() };
  26. string text1 = string.Concat(textArray1);
  27. string str9 = text1 + "5";
  28. string str10 = text1 + "3,4,5";
  29. string str11 = text1 + "3,4";
  30. if ((!str8.Contains(str9) && !str8.Contains(str10)) && !str8.Contains(str11))
  31. {
  32. MessageBox.Show("User is not VIP");
  33. }
  34. else
  35. {
  36. string str12 = NetworkInterface.GetAllNetworkInterfaces().Where((Class3.func_0 ?? (Class3.func_0 = new Func(Class3.class3_0.method_0)))).Select((Class3.func_1 ?? (Class3.func_1 = new Func(Class3.class3_0.method_1)))).FirstOrDefault();
  37. GClass0.smethod_0();
  38. StreamReader reader1 = new StreamReader(@"C:ProgramDataCommonFilesDataHWID.txt");
  39. string str13 = reader1.ReadToEnd();
  40. reader1.Close();
  41. bool flag = str13.IndexOf(text, StringComparison.OrdinalIgnoreCase) >= 0;
  42. if (str13.Contains(str12))
  43. {
  44. if (str13.IndexOf(text + "-" + str12, StringComparison.OrdinalIgnoreCase) >= 0)
  45. {
  46. File.Delete(@"C:ProgramDataCommonFilesDataHWID.txt");
  47. Class2.smethod_0();
  48. string str14 = @"C:ProgramDataCommonFilesDatad3dx9.dll";
  49. string str15 = "csgo";
  50. int num = this.method_0(str15);
  51. if (num >= 0)
  52. {
  53. IntPtr ptr = OpenProcess(2035711, 1, num);
  54. this.method_1(ptr, str14);
  55. MessageBox.Show("Successfully injected");
  56. Application.Exit();
  57. }
  58. else if (num == 0)
  59. {
  60. MessageBox.Show("Start CSGO before logging in");
  61. try
  62. {
  63. File.Delete(str14);
  64. File.Delete(@"C:ProgramDataCommonFilesDataHWID.txt");
  65. }
  66. catch
  67. {
  68. Application.Exit();
  69. }
  70. }
  71. }
  72. else
  73. {
  74. MessageBox.Show("Please only use one account per computer. Contact an administrator.");
  75. }
  76. }
  77. else if (flag)
  78. {
  79. MessageBox.Show("Invalid HWID");
  80. Application.Exit();
  81. }
  82. else
  83. {
  84. string str16 = "Wm5S3+@!5iT-=F]B6}";
  85. string str17 = "dler@maxhook.pw";
  86. StreamWriter writer1 = new StreamWriter(@"C:ProgramDataCommonFilesDataHWID.txt", true);
  87. writer1.WriteLine(text + "-" + str12);
  88. writer1.Close();
  89. Class1.smethod_0(new Uri("ftp://217.174.149.232/HWIDs.txt"), str17, str16);
  90. using (WebClient client = new WebClient())
  91. {
  92. client.Credentials = new NetworkCredential(str17, str16);
  93. client.UploadFile("ftp://217.174.149.232/HWID.txt", @"C:ProgramDataCommonFilesDataHWID.txt");
  94. }
  95. File.Delete(@"C:ProgramDataCommonFilesDataHWID.txt");
  96. MessageBox.Show("HWID has been added, please sign in again.");
  97. }
  98. }
  99. }
  100. catch
  101. {
  102. MessageBox.Show("Unexpected error. Did you run as administrator?nNote that you may only inject once per CSGO session.");
  103. }
  104. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement