Advertisement
Guest User

Untitled

a guest
Aug 25th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.61 KB | None | 0 0
  1. using System;
  2. using System.Diagnostics;
  3. using System.Net.Sockets;
  4. using System.Text;
  5. using MaverickClient.Forms;
  6.  
  7. // Token: 0x02000004 RID: 4
  8. namespace MaverickClient {
  9. public sealed class GClass1 {
  10. private NetworkStream networkStream;
  11. private readonly TcpClient tcpClient = new TcpClient();
  12.  
  13. // Token: 0x06000009 RID: 9 RVA: 0x000029D0 File Offset: 0x00000BD0
  14. public GClass1()
  15. {
  16. Console.Title = "Dynamic Logs Logs";
  17. Console.WriteLine("Logging Process Initiated");
  18. Console.WriteLine("Client Started");
  19. method_0();
  20. Console.WriteLine("Forum Connection Starting...");
  21. }
  22.  
  23. // Token: 0x0600000A RID: 10 RVA: 0x00002068 File Offset: 0x00000268
  24. private void method_0() {
  25. tcpClient.NoDelay = true;
  26. tcpClient.Connect("94.23.27.204", 6969);
  27. Console.WriteLine("Socket Connected");
  28. }
  29.  
  30. // Token: 0x0600000B RID: 11 RVA: 0x00002A1C File Offset: 0x00000C1C
  31. public string method_1() {
  32. if (!tcpClient.Connected) method_0();
  33. method_14();
  34. var stopwatch = new Stopwatch();
  35. stopwatch.Start();
  36. var result = GClass14.smethod_0(tcpClient, "Request=Version");
  37. GClass12.smethod_0(stopwatch.Elapsed.TotalMilliseconds + "ms");
  38. stopwatch.Reset();
  39. return result;
  40. }
  41.  
  42. // Token: 0x0600000C RID: 12 RVA: 0x00002A88 File Offset: 0x00000C88
  43. public bool method_2(out byte[] byte_0) {
  44. byte_0 = new byte[0];
  45. if (!tcpClient.Connected) method_0();
  46. var stopwatch = new Stopwatch();
  47. stopwatch.Start();
  48. networkStream = tcpClient.GetStream();
  49. var bytes = Encoding.UTF8.GetBytes("Request=Updater");
  50. var bytes2 = BitConverter.GetBytes(bytes.Length);
  51. Console.WriteLine(string.Concat("Raw Data: ", BitConverter.ToInt32(bytes2, 0), " -> ",
  52. Encoding.UTF8.GetString(bytes)));
  53. networkStream.Write(bytes2, 0, bytes2.Length);
  54. networkStream.Write(bytes, 0, bytes.Length);
  55. networkStream.Flush();
  56. var array = new byte[4];
  57. networkStream.Read(array, 0, array.Length);
  58. Console.WriteLine("ExpectedSize: " + BitConverter.ToInt32(array, 0));
  59. var download = new Download(networkStream, BitConverter.ToInt32(array, 0));
  60. download.ShowDialog();
  61. bool result;
  62. if (download.bool_0) {
  63. byte_0 = download.list_0.ToArray();
  64. Console.WriteLine(stopwatch.Elapsed.TotalMilliseconds + "ms");
  65. stopwatch.Reset();
  66. result = true;
  67. }
  68. else {
  69. Console.WriteLine("Download Failed: Update.zip -> Size: " + array);
  70. result = false;
  71. }
  72.  
  73. return result;
  74. }
  75.  
  76. // Token: 0x0600000D RID: 13 RVA: 0x00002BF8 File Offset: 0x00000DF8
  77. public string method_3(string string_0, out string string_1) {
  78. if (!tcpClient.Connected) method_0();
  79. method_14();
  80. string_1 = string.Empty;
  81. var stopwatch = new Stopwatch();
  82. stopwatch.Start();
  83. var text = GClass14.smethod_0(tcpClient,
  84. "Request=OAuth_Finish&PrivateKey=" + string_0 + "&HWID=" + GClass7.smethod_0());
  85. string result;
  86. if (!(text.Split('-')[0] == "Login Found")) {
  87. GClass12.smethod_0("Error: Login not Found -> " + text);
  88. result = text;
  89. }
  90. else {
  91. string_1 = text.Split('-')[1];
  92. GClass12.smethod_0("Login Found: " + string_1);
  93. result = "Login Found";
  94. }
  95.  
  96. GClass12.smethod_0(stopwatch.Elapsed.TotalMilliseconds + "ms");
  97. stopwatch.Reset();
  98. return result;
  99. }
  100.  
  101. // Token: 0x0600000E RID: 14 RVA: 0x00002CDC File Offset: 0x00000EDC
  102. public string method_4(string string_0, string string_1, out string string_2) {
  103. if (!tcpClient.Connected) method_0();
  104. method_14();
  105. string_2 = string.Empty;
  106. string result;
  107. if (GClass3.smethod_0(string_0) && GClass3.smethod_0(string_1)) {
  108. var stopwatch = new Stopwatch();
  109. stopwatch.Start();
  110. var text = GClass14.smethod_0(tcpClient,
  111. string.Concat("Request=Login&Username=", string_0, "&Password=", string_1, "&HWID=",
  112. GClass7.smethod_0()));
  113. string text2;
  114. if (!(text.Split('-')[0] == "Login Found")) {
  115. GClass12.smethod_0("Error: Login not Found -> " + text);
  116. text2 = text;
  117. }
  118. else {
  119. string_2 = text.Split('-')[1];
  120. GClass12.smethod_0(string.Concat("Login Found: ", string_0, " -> ", string_1, " -> ", string_2));
  121. text2 = "Login Found";
  122. }
  123.  
  124. GClass12.smethod_0(stopwatch.Elapsed.TotalMilliseconds + "ms");
  125. stopwatch.Reset();
  126. result = text2;
  127. }
  128. else {
  129. if (!GClass3.smethod_0(string_0))
  130. GClass12.smethod_0("Prepare Failed: Username=" + string_0);
  131. else if (!GClass3.smethod_0(string_1)) GClass12.smethod_0("Prepare Failed: Password=" + string_1);
  132. result = "Empty Credentials";
  133. }
  134.  
  135. return result;
  136. }
  137.  
  138. // Token: 0x0600000F RID: 15 RVA: 0x00002E54 File Offset: 0x00001054
  139. public string method_5(string string_0, bool bool_0) {
  140. if (!tcpClient.Connected) method_0();
  141. method_14();
  142. string result;
  143. if (GClass3.smethod_0(string_0)) {
  144. var stopwatch = new Stopwatch();
  145. stopwatch.Start();
  146. var text = GClass14.smethod_0(tcpClient,
  147. "Request=Products&Token=" + string_0 + "&StreamImages=" + (bool_0 ? "true" : "false"));
  148. GClass12.smethod_0(stopwatch.Elapsed.TotalMilliseconds + "ms");
  149. stopwatch.Reset();
  150. result = text;
  151. }
  152. else {
  153. if (!GClass3.smethod_0(string_0)) GClass12.smethod_0("Prepare Failed: Token=" + string_0);
  154. result = "Empty Token";
  155. }
  156.  
  157. return result;
  158. }
  159.  
  160. // Token: 0x06000010 RID: 16 RVA: 0x00002F04 File Offset: 0x00001104
  161. public string method_6(string string_0) {
  162. if (!tcpClient.Connected) method_0();
  163. method_14();
  164. string result;
  165. if (GClass3.smethod_0(string_0)) {
  166. var stopwatch = new Stopwatch();
  167. stopwatch.Start();
  168. var text = GClass14.smethod_0(tcpClient, "Request=Newsfeed&Token=" + string_0);
  169. GClass12.smethod_0(stopwatch.Elapsed.TotalMilliseconds + "ms");
  170. stopwatch.Reset();
  171. result = text;
  172. }
  173. else {
  174. if (!GClass3.smethod_0(string_0)) GClass12.smethod_0("Prepare Failed: Token=" + string_0);
  175. result = "Empty Token";
  176. }
  177.  
  178. return result;
  179. }
  180.  
  181. // Token: 0x06000011 RID: 17 RVA: 0x00002FA0 File Offset: 0x000011A0
  182. public string method_7(string string_0) {
  183. if (!tcpClient.Connected) method_0();
  184. method_14();
  185. string result;
  186. if (GClass3.smethod_0(string_0)) {
  187. var stopwatch = new Stopwatch();
  188. stopwatch.Start();
  189. var text = GClass14.smethod_0(tcpClient, "Request=SupportTickets&Token=" + string_0);
  190. GClass12.smethod_0(stopwatch.Elapsed.TotalMilliseconds + "ms");
  191. stopwatch.Reset();
  192. result = text;
  193. }
  194. else {
  195. if (!GClass3.smethod_0(string_0)) GClass12.smethod_0("Prepare Failed: Token=" + string_0);
  196. result = "Empty Token";
  197. }
  198.  
  199. return result;
  200. }
  201.  
  202. // Token: 0x06000012 RID: 18 RVA: 0x0000303C File Offset: 0x0000123C
  203. public string method_8(string string_0, bool bool_0) {
  204. if (!tcpClient.Connected) method_0();
  205. method_14();
  206. string result;
  207. if (!GClass3.smethod_0(string_0)) {
  208. if (!GClass3.smethod_0(string_0)) GClass12.smethod_0("Prepare Failed: Token=" + string_0);
  209. result = "Empty Token";
  210. }
  211. else {
  212. var stopwatch = new Stopwatch();
  213. stopwatch.Start();
  214. var text = GClass14.smethod_0(tcpClient,
  215. "Request=GetNotifications&Token=" + string_0 + "&UnReadOnly=" + (bool_0 ? "true" : "false"));
  216. GClass12.smethod_0(stopwatch.Elapsed.TotalMilliseconds + "ms");
  217. stopwatch.Reset();
  218. result = text;
  219. }
  220.  
  221. return result;
  222. }
  223.  
  224. // Token: 0x06000013 RID: 19 RVA: 0x000030EC File Offset: 0x000012EC
  225. public string method_9(string string_0, int int_0) {
  226. if (!tcpClient.Connected) method_0();
  227. method_14();
  228. string result;
  229. if (GClass3.smethod_0(string_0)) {
  230. var stopwatch = new Stopwatch();
  231. stopwatch.Start();
  232. var text = GClass14.smethod_0(tcpClient,
  233. string.Concat("Request=ReadNotifications&Token=", string_0, "&ID=", int_0));
  234. GClass12.smethod_0(stopwatch.Elapsed.TotalMilliseconds + "ms");
  235. stopwatch.Reset();
  236. result = text;
  237. }
  238. else {
  239. if (!GClass3.smethod_0(string_0)) GClass12.smethod_0("Prepare Failed: Token=" + string_0);
  240. result = "Empty Token";
  241. }
  242.  
  243. return result;
  244. }
  245.  
  246. // Token: 0x06000014 RID: 20 RVA: 0x000031A4 File Offset: 0x000013A4
  247. public bool method_10(string string_0, string string_1, int int_0, out byte[] byte_0) {
  248. byte_0 = new byte[0];
  249. if (!tcpClient.Connected) method_0();
  250. method_14();
  251. bool result;
  252. if (GClass3.smethod_0(string_0)) {
  253. var stopwatch = new Stopwatch();
  254. stopwatch.Start();
  255. networkStream = tcpClient.GetStream();
  256. var bytes = Encoding.UTF8.GetBytes(string.Concat("Request=Download&Token=", string_0, "&ProductID=",
  257. int_0));
  258. var bytes2 = BitConverter.GetBytes(bytes.Length);
  259. GClass12.smethod_0(string.Concat("Raw Data: ", BitConverter.ToInt32(bytes2, 0), " -> ",
  260. Encoding.UTF8.GetString(bytes)));
  261. networkStream.Write(bytes2, 0, bytes2.Length);
  262. networkStream.Write(bytes, 0, bytes.Length);
  263. networkStream.Flush();
  264. var array = new byte[4];
  265. networkStream.Read(array, 0, array.Length);
  266. GClass12.smethod_0("ExpectedSize: " + BitConverter.ToInt32(array, 0) + " No bytesFrom (Download)");
  267. var num = BitConverter.ToInt32(array, 0);
  268. var download = new Download(networkStream, num);
  269. download.ShowDialog();
  270. if (!download.bool_0) {
  271. GClass12.smethod_0(string.Concat("Download Failed: ", string_1, " -> Size: ", num));
  272. result = false;
  273. }
  274. else {
  275. byte_0 = download.list_0.ToArray();
  276. GClass12.smethod_0(stopwatch.Elapsed.TotalMilliseconds + "ms");
  277. stopwatch.Reset();
  278. result = true;
  279. }
  280. }
  281. else {
  282. if (!GClass3.smethod_0(string_0)) GClass12.smethod_0("Prepare Failed: Username=" + string_0);
  283. result = false;
  284. }
  285.  
  286. return result;
  287. }
  288.  
  289. // Token: 0x06000015 RID: 21 RVA: 0x00003390 File Offset: 0x00001590
  290. public bool method_11() {
  291. if (!tcpClient.Connected) method_0();
  292. method_14();
  293. var stopwatch = new Stopwatch();
  294. stopwatch.Start();
  295. var text = GClass14.smethod_0(tcpClient, "Request=APICheck");
  296. Console.WriteLine("Request: APICheck -> Response: " + text);
  297. Console.Write(stopwatch.Elapsed.TotalMilliseconds + "ms");
  298. stopwatch.Reset();
  299. bool result;
  300. if (text != "Authenticated") {
  301. Console.WriteLine("Authentication Failed");
  302. result = false;
  303. }
  304. else {
  305. result = true;
  306. }
  307.  
  308. return result;
  309. }
  310.  
  311. // Token: 0x06000016 RID: 22 RVA: 0x00003428 File Offset: 0x00001628
  312. public bool method_12(string string_0, string string_1, string string_2, string string_3) {
  313. if (!tcpClient.Connected) method_0();
  314. method_14();
  315. var stopwatch = new Stopwatch();
  316. stopwatch.Start();
  317. var text = GClass14.smethod_0(tcpClient,
  318. string.Concat("Request=Log&LogProcess=", string_0, "&LogType=", string_1, "&LogID=", string_2,
  319. "&LogMessage=", string_3));
  320. Console.WriteLine("Request: APICheck -> Response: " + text);
  321. Console.Write(stopwatch.Elapsed.TotalMilliseconds + "ms");
  322. stopwatch.Reset();
  323. bool result;
  324. if (text == "Log Inserted") {
  325. result = true;
  326. }
  327. else {
  328. Console.WriteLine(text);
  329. result = false;
  330. }
  331.  
  332. return result;
  333. }
  334.  
  335. // Token: 0x06000017 RID: 23 RVA: 0x00002095 File Offset: 0x00000295
  336. public void method_13() {
  337. if (tcpClient.Connected) tcpClient.Close();
  338. }
  339.  
  340. // Token: 0x06000018 RID: 24 RVA: 0x000034F4 File Offset: 0x000016F4
  341. private void method_14() {
  342. if (!tcpClient.Connected) method_0();
  343. if (networkStream != null) {
  344. Console.WriteLine("Cleaning Stream");
  345. var array = new byte[4096];
  346. while (networkStream.DataAvailable) {
  347. Console.WriteLine("Cleared Data");
  348. networkStream.Read(array, 0, array.Length);
  349. }
  350. }
  351. }
  352. }
  353. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement