public bool getip(byte countryindex) { bool flag; byte[] numArray = new byte[1]; int[] numArray1 = new int[1]; numArray[0] = countryindex; int num = 4482683; Process[] processByName = this.GetProcessByName("vip72socks"); Process process = new Process(); if (processByName.Count <Process>() > 0) { process = processByName[0]; IntPtr intPtr = Vip72Chung.FindWindowInProcess(process, (string s) => s.StartsWith("VIP72 Socks Client")); IntPtr intPtr1 = Vip72Chung.OpenProcess(2035711, false, process.Id); int num1 = 0; Vip72Chung.WriteProcessMemory((int)intPtr1, num, numArray, 1, ref num1); numArray1[0] = 0; if (File.Exists(string.Concat(AppDomain.CurrentDomain.BaseDirectory, "citycode\\", countryindex.ToString(), ".dat"))) { string[] strArrays = File.ReadAllLines(string.Concat(AppDomain.CurrentDomain.BaseDirectory, "citycode\\", countryindex.ToString(), ".dat")); Random random = new Random(); string str = strArrays[random.Next(0, strArrays.Count <string>())]; int num2 = Convert.ToInt32(str.Split(new string[] { "|" }, StringSplitOptions.None)[1]); numArray1[0] = num2; } Vip72Chung.WriteProcessMemory((int)intPtr1, num + 1, numArray1, 4, ref num1); IntPtr intPtr2 = Vip72Chung.ControlGetHandle(intPtr, "Button", 127); Vip72Chung.ControlClick(intPtr2); Vip72Chung.ControlGetHandle(intPtr, "Edit", 131); DateTime now = DateTime.Now; while (Vip72Chung.ControlGetState(intPtr2, 134217728)) { Thread.Sleep(100); Process[] processArray = this.GetProcessByName("vip72socks"); if (processArray.Count <Process>() == 0) { flag = false; return(flag); } else if ((!processArray[0].Responding ? true : (DateTime.Now - now).TotalSeconds > 30)) { try { if (!processArray[0].HasExited) { processArray[0].Kill(); } } catch (Exception exception) { } flag = false; return(flag); } } } flag = true; return(flag); }
public bool vip72login(string username, string password, int mainPort) { bool flag; Thread.Sleep(1000); Process[] processByName = this.GetProcessByName("vip72socks"); if (processByName.Count <Process>() > 0) { if (!processByName[0].Responding) { try { if (!processByName[0].HasExited) { processByName[0].Kill(); } } catch (Exception exception) { } flag = this.vip72login(username, password, mainPort); return(flag); } } IntPtr zero = IntPtr.Zero; if (processByName.Count <Process>() > 0) { zero = Vip72Chung.FindWindowInProcess(processByName[0], (string s) => s.StartsWith("VIP72 Socks Client")); } IntPtr intPtr = Vip72Chung.ControlGetHandle(zero, "Button", 119); if (intPtr == IntPtr.Zero) { processByName = this.GetProcessByName("vip72socks"); if (processByName.Count <Process>() != 0) { try { if (!processByName[0].HasExited) { processByName[0].Kill(); } } catch (Exception exception1) { } } ProcessStartInfo processStartInfo = new ProcessStartInfo() { FileName = "vip72socks.exe", WorkingDirectory = string.Concat(AppDomain.CurrentDomain.BaseDirectory, "vip72") }; Process.Start(processStartInfo); Thread.Sleep(500); flag = (!this.vip72login(username, password, mainPort) ? false : true); } else { if (!Vip72Chung.ControlGetState(intPtr, 134217728)) { IntPtr intPtr1 = Vip72Chung.ControlGetHandle(zero, "Edit", 303); Vip72Chung.ControlSetText(intPtr1, username); IntPtr intPtr2 = Vip72Chung.ControlGetHandle(zero, "Edit", 301); Vip72Chung.ControlSetText(intPtr2, password); Vip72Chung.ControlClick(intPtr); IntPtr intPtr3 = Vip72Chung.ControlGetHandle(zero, "Edit", 131); DateTime now = DateTime.Now; while (Vip72Chung.ControlGetText(intPtr3) != "System ready") { if (processByName.Count <Process>() > 0) { processByName = this.GetProcessByName("vip72socks"); if (!processByName[0].Responding) { try { if (!processByName[0].HasExited) { processByName[0].Kill(); } } catch (Exception exception2) { } if (!this.vip72login(username, password, mainPort)) { flag = false; return(flag); } else { flag = true; return(flag); } } } if (processByName.Count <Process>() == 0) { flag = false; return(flag); } else if (Vip72Chung.ControlGetText(intPtr3) == "ERROR!Login and Password is incorrect") { flag = false; return(flag); } else if (Vip72Chung.ControlGetState(intPtr, 134217728)) { Thread.Sleep(100); if ((DateTime.Now - now).Seconds > 20) { flag = false; return(flag); } } else { flag = false; return(flag); } } Thread.Sleep(3000); } flag = true; } return(flag); }
// Token: 0x060005D7 RID: 1495 RVA: 0x00035474 File Offset: 0x00033674 public bool getip(string country) { byte[] array = new byte[1]; int[] array2 = new int[1]; byte code = RunData.getInstance().listCountryCode.FirstOrDefault((countrycode x) => x.country == country).code; array[0] = code; array2[0] = 0; int num = 4482683; Process[] processByName = this.GetProcessByName("vip72socks"); Process process = new Process(); if (processByName.Count <Process>() > 0) { process = processByName[0]; IntPtr parentHandle = Vip72Chung.FindWindowInProcess(process, (string s) => s.StartsWith("VIP72 Socks Client")); IntPtr value = Vip72Chung.OpenProcess(2035711, false, process.Id); int num2 = 0; Vip72Chung.WriteProcessMemory((int)value, num, array, 1, ref num2); array2[0] = 0; if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + "citycode\\" + code.ToString() + ".dat")) { string[] array3 = File.ReadAllLines(AppDomain.CurrentDomain.BaseDirectory + "citycode\\" + code.ToString() + ".dat"); Random random = new Random(); int num3 = Convert.ToInt32(array3[random.Next(0, array3.Count <string>())].Split(new string[] { "|" }, StringSplitOptions.None)[1]); array2[0] = num3; } Vip72Chung.WriteProcessMemory((int)value, num + 1, array2, 4, ref num2); IntPtr intPtr = Vip72Chung.ControlGetHandle(parentHandle, "Button", 127); Vip72Chung.ControlClick(intPtr); Vip72Chung.ControlGetHandle(parentHandle, "Edit", 131); DateTime now = DateTime.Now; while (Vip72Chung.ControlGetState(intPtr, 134217728)) { Thread.Sleep(100); Process[] processByName2 = this.GetProcessByName("vip72socks"); if (processByName2.Count <Process>() == 0) { return(false); } if (!processByName2[0].Responding || (DateTime.Now - now).TotalSeconds > 30.0) { try { if (!processByName2[0].HasExited) { processByName2[0].Kill(); } } catch (Exception) { } return(false); } } } return(true); }
// Token: 0x060005D4 RID: 1492 RVA: 0x00034CBC File Offset: 0x00032EBC public static void getCountrycode() { int num = 0; Process[] processesByName = Process.GetProcessesByName("vip72socks"); IntPtr parentHandle = Vip72Chung.FindWindowInProcess(processesByName[0], (string s) => s.StartsWith("VIP72 Socks Client")); uint id = (uint)processesByName[0].Id; IntPtr hwnd = Vip72Chung.ControlGetHandle(parentHandle, "Static", 7811); IntPtr hwnd2 = Vip72Chung.ControlGetHandle(parentHandle, "Static", 7813); IntPtr intPtr = Vip72Chung.ControlGetHandle(parentHandle, "SysListView32", 7809); IntPtr intPtr2 = Vip72Chung.ControlGetHandle(parentHandle, "SysListView32", 7813); int value = 4482683; IntPtr hProcess = Vip72Chung.OpenProcess(2035711, false, processesByName[0].Id); int num2 = 0; IntPtr intPtr3 = IntPtr.Zero; intPtr3 = Marshal.AllocHGlobal(4); IntPtr intPtr4 = IntPtr.Zero; intPtr4 = Marshal.AllocHGlobal(4); string text = ""; for (;;) { Vip72Chung.ControlClick(hwnd); string listViewItem = ListViewItem1.GetListViewItem(intPtr, id, num, 0); bool flag = listViewItem == ""; if (flag) { break; } ListViewItem1.SelectListViewItem(intPtr, id, num); Vip72Chung.ControlDoubleClick(intPtr); Thread.Sleep(100); Vip72Chung.ReadProcessMemory(hProcess, (IntPtr)value, intPtr3, 1, out num2); text = string.Concat(new string[] { text, listViewItem, "|", Marshal.ReadByte(intPtr3).ToString(), "\r\n" }); int num3 = 0; for (;;) { Vip72Chung.ControlClick(hwnd2); while (Vip72Chung.ControlGetText(hwnd2).Contains("loading data from")) { Thread.Sleep(100); } bool flag2 = Vip72Chung.ControlGetState(intPtr, 268435456); string listViewItem2 = ListViewItem1.GetListViewItem(intPtr, id, num3, 0); ListViewItem1.SelectListViewItem(intPtr, id, num3); bool flag3 = listViewItem2 == "" || !flag2; if (flag3) { break; } Vip72Chung.ControlDoubleClick(intPtr); Thread.Sleep(100); Vip72Chung.ReadProcessMemory(hProcess, (IntPtr)value + 1, intPtr4, 4, out num2); int num4 = Marshal.ReadInt32(intPtr4); File.AppendAllText(AppDomain.CurrentDomain.BaseDirectory + "citycode\\" + listViewItem + ".dat", listViewItem2 + "|" + num4.ToString() + "\r\n"); ListViewItem1.SelectListViewItem(intPtr, id, num3); num3++; } num++; } File.WriteAllText(AppDomain.CurrentDomain.BaseDirectory + "countrycode1.dat", text); }
// Token: 0x060005D1 RID: 1489 RVA: 0x000347AC File Offset: 0x000329AC public bool vip72login(string username, string password, int mainPort) { Thread.Sleep(1000); Process[] processByName = this.GetProcessByName("vip72socks"); if (processByName.Count <Process>() > 0) { if (!processByName[0].Responding) { try { if (!processByName[0].HasExited) { processByName[0].Kill(); } } catch (Exception) { } return(this.vip72login(username, password, mainPort)); } } IntPtr parentHandle = IntPtr.Zero; if (processByName.Count <Process>() > 0) { parentHandle = Vip72Chung.FindWindowInProcess(processByName[0], (string s) => s.StartsWith("VIP72 Socks Client")); } IntPtr intPtr = Vip72Chung.ControlGetHandle(parentHandle, "Button", 119); bool result; if (intPtr != IntPtr.Zero) { if (!Vip72Chung.ControlGetState(intPtr, 134217728)) { IntPtr hwnd = Vip72Chung.ControlGetHandle(parentHandle, "Edit", 303); Vip72Chung.ControlSetText(hwnd, username); IntPtr hwnd2 = Vip72Chung.ControlGetHandle(parentHandle, "Edit", 301); Vip72Chung.ControlSetText(hwnd2, password); Vip72Chung.ControlClick(intPtr); IntPtr hwnd3 = Vip72Chung.ControlGetHandle(parentHandle, "Edit", 131); DateTime now = DateTime.Now; while (Vip72Chung.ControlGetText(hwnd3) != "System ready") { if (processByName.Count <Process>() > 0) { processByName = this.GetProcessByName("vip72socks"); if (!processByName[0].Responding) { try { if (!processByName[0].HasExited) { processByName[0].Kill(); } } catch (Exception) { } return(this.vip72login(username, password, mainPort)); } } bool flag10 = processByName.Count <Process>() == 0; if (flag10) { return(false); } bool flag11 = Vip72Chung.ControlGetText(hwnd3) == "ERROR!Login and Password is incorrect"; if (flag11) { return(false); } bool flag12 = !Vip72Chung.ControlGetState(intPtr, 134217728); if (flag12) { return(false); } Thread.Sleep(100); bool flag13 = (DateTime.Now - now).Seconds > 20; if (flag13) { return(false); } } Thread.Sleep(3000); } result = true; } else { processByName = this.GetProcessByName("vip72socks"); bool flag14 = processByName.Count <Process>() != 0; if (flag14) { try { bool flag15 = !processByName[0].HasExited; if (flag15) { processByName[0].Kill(); } } catch (Exception) { } } Process.Start(new ProcessStartInfo { FileName = "vip72socks.exe", WorkingDirectory = AppDomain.CurrentDomain.BaseDirectory + "vip72" }); Thread.Sleep(500); bool flag16 = this.vip72login(username, password, mainPort); result = flag16; } return(result); }
// Token: 0x0600047C RID: 1148 RVA: 0x0002A268 File Offset: 0x00028468 public bool getip(byte countryindex) { byte[] array = new byte[1]; int[] array2 = new int[1]; array[0] = countryindex; int num = 4482683; Process[] processByName = this.GetProcessByName("vip72socks"); Process process = new Process(); bool flag = processByName.Count <Process>() > 0; bool result; if (flag) { process = processByName[0]; Process arg_65_0 = process; Func <string, bool> arg_65_1; if ((arg_65_1 = Vip72Chung.< > c.< > 9__37_0) == null) { arg_65_1 = (Vip72Chung.< > c.< > 9__37_0 = new Func <string, bool>(Vip72Chung.< > c.< > 9. < getip > b__37_0)); } IntPtr parentHandle = Vip72Chung.FindWindowInProcess(arg_65_0, arg_65_1); IntPtr value = Vip72Chung.OpenProcess(2035711, false, process.Id); int num2 = 0; Vip72Chung.WriteProcessMemory((int)value, num, array, 1, ref num2); array2[0] = 0; bool flag2 = File.Exists(AppDomain.CurrentDomain.BaseDirectory + "citycode\\" + countryindex.ToString() + ".dat"); if (flag2) { string[] array3 = File.ReadAllLines(AppDomain.CurrentDomain.BaseDirectory + "citycode\\" + countryindex.ToString() + ".dat"); Random random = new Random(); string text = array3[random.Next(0, array3.Count <string>())]; int num3 = Convert.ToInt32(text.Split(new string[] { "|" }, StringSplitOptions.None)[1]); array2[0] = num3; } Vip72Chung.WriteProcessMemory((int)value, num + 1, array2, 4, ref num2); IntPtr intPtr = Vip72Chung.ControlGetHandle(parentHandle, "Button", 127); Vip72Chung.ControlClick(intPtr); IntPtr intPtr2 = Vip72Chung.ControlGetHandle(parentHandle, "Edit", 131); DateTime now = DateTime.Now; while (Vip72Chung.ControlGetState(intPtr, 134217728)) { Thread.Sleep(100); Process[] processByName2 = this.GetProcessByName("vip72socks"); bool flag3 = processByName2.Count <Process>() == 0; if (flag3) { result = false; return(result); } bool flag4 = !processByName2[0].Responding || (DateTime.Now - now).TotalSeconds > 30.0; if (flag4) { try { bool flag5 = !processByName2[0].HasExited; if (flag5) { processByName2[0].Kill(); } } catch (Exception) { } result = false; return(result); } } } result = true; return(result); }
// Token: 0x06000477 RID: 1143 RVA: 0x00029840 File Offset: 0x00027A40 public bool vip72login(string username, string password, int mainPort) { Thread.Sleep(1000); Process[] processByName = this.GetProcessByName("vip72socks"); bool flag = processByName.Count <Process>() > 0; bool result; if (flag) { bool flag2 = !processByName[0].Responding; if (flag2) { try { bool flag3 = !processByName[0].HasExited; if (flag3) { processByName[0].Kill(); } } catch (Exception) { } result = this.vip72login(username, password, mainPort); return(result); } } IntPtr parentHandle = IntPtr.Zero; bool flag4 = processByName.Count <Process>() > 0; if (flag4) { Process arg_A3_0 = processByName[0]; Func <string, bool> arg_A3_1; if ((arg_A3_1 = Vip72Chung.< > c.< > 9__32_0) == null) { arg_A3_1 = (Vip72Chung.< > c.< > 9__32_0 = new Func <string, bool>(Vip72Chung.< > c.< > 9. < vip72login > b__32_0)); } parentHandle = Vip72Chung.FindWindowInProcess(arg_A3_0, arg_A3_1); } IntPtr intPtr = Vip72Chung.ControlGetHandle(parentHandle, "Button", 119); bool flag5 = intPtr != IntPtr.Zero; if (flag5) { bool flag6 = !Vip72Chung.ControlGetState(intPtr, 134217728); if (flag6) { IntPtr hwnd = Vip72Chung.ControlGetHandle(parentHandle, "Edit", 303); Vip72Chung.ControlSetText(hwnd, username); IntPtr hwnd2 = Vip72Chung.ControlGetHandle(parentHandle, "Edit", 301); Vip72Chung.ControlSetText(hwnd2, password); Vip72Chung.ControlClick(intPtr); IntPtr hwnd3 = Vip72Chung.ControlGetHandle(parentHandle, "Edit", 131); DateTime now = DateTime.Now; while (Vip72Chung.ControlGetText(hwnd3) != "System ready") { bool flag7 = processByName.Count <Process>() > 0; if (flag7) { processByName = this.GetProcessByName("vip72socks"); bool flag8 = !processByName[0].Responding; if (flag8) { try { bool flag9 = !processByName[0].HasExited; if (flag9) { processByName[0].Kill(); } } catch (Exception) { } bool flag10 = this.vip72login(username, password, mainPort); result = flag10; return(result); } } bool flag11 = processByName.Count <Process>() == 0; if (flag11) { result = false; return(result); } bool flag12 = Vip72Chung.ControlGetText(hwnd3) == "ERROR!Login and Password is incorrect"; if (flag12) { result = false; return(result); } bool flag13 = !Vip72Chung.ControlGetState(intPtr, 134217728); if (flag13) { result = false; return(result); } Thread.Sleep(100); bool flag14 = (DateTime.Now - now).Seconds > 20; if (flag14) { result = false; return(result); } } Thread.Sleep(3000); } result = true; } else { processByName = this.GetProcessByName("vip72socks"); bool flag15 = processByName.Count <Process>() != 0; if (flag15) { try { bool flag16 = !processByName[0].HasExited; if (flag16) { processByName[0].Kill(); } } catch (Exception) { } } Process.Start(new ProcessStartInfo { FileName = "vip72socks.exe", WorkingDirectory = AppDomain.CurrentDomain.BaseDirectory + "vip72" }); Thread.Sleep(500); bool flag17 = this.vip72login(username, password, mainPort); result = flag17; } return(result); }