// Token: 0x060005D0 RID: 1488 RVA: 0x000346DC File Offset: 0x000328DC public void waitiotherVIP72() { Process[] processesByName = Process.GetProcessesByName("AutoLead"); for (;;) { bool flag = true; foreach (Process process in processesByName) { bool flag2 = Process.GetCurrentProcess().Id != process.Id; if (flag2) { IntPtr parentHandle = Vip72Chung.FindWindowInProcess(process, (string x) => x.StartsWith("")); IntPtr hwnd = Vip72Chung.ControlGetHandle(parentHandle, "WindowsForms10.STATIC.app.0.141b42a_r12_ad1", 1442840576, true); bool flag3 = Vip72Chung.ControlGetText(hwnd) == "Getting Vip72 IP..."; if (flag3) { flag = false; } } } bool flag4 = flag; if (flag4) { break; } Thread.Sleep(500); } }
public void waitiotherVIP72() { bool flag = true; Process[] processesByName = Process.GetProcessesByName("AutoLead"); while (true) { flag = true; Process[] processArray = processesByName; for (int i = 0; i < (int)processArray.Length; i++) { Process process = processArray[i]; if (Process.GetCurrentProcess().Id != process.Id) { if (Vip72Chung.ControlGetText(Vip72Chung.ControlGetHandle(Vip72Chung.FindWindowInProcess(process, (string x) => x.StartsWith("")), "WindowsForms10.STATIC.app.0.141b42a_r12_ad1", 1442840576, true)) == "Getting Vip72 IP...") { flag = false; } } } if (flag) { break; } Thread.Sleep(500); } }
// Token: 0x06000476 RID: 1142 RVA: 0x00029770 File Offset: 0x00027970 public void waitiotherVIP72() { Process[] processesByName = Process.GetProcessesByName("AutoLead"); while (true) { bool flag = true; Process[] array = processesByName; for (int i = 0; i < array.Length; i++) { Process process = array[i]; bool flag2 = Process.GetCurrentProcess().Id != process.Id; if (flag2) { Process arg_61_0 = process; Func <string, bool> arg_61_1; if ((arg_61_1 = Vip72Chung.< > c.< > 9__31_0) == null) { arg_61_1 = (Vip72Chung.< > c.< > 9__31_0 = new Func <string, bool>(Vip72Chung.< > c.< > 9. < waitiotherVIP72 > b__31_0)); } IntPtr parentHandle = Vip72Chung.FindWindowInProcess(arg_61_0, arg_61_1); IntPtr hwnd = Vip72Chung.ControlGetHandle(parentHandle, "WindowsForms10.STATIC.app.0.141b42a_r12_ad1", 1442840576, true); bool flag3 = Vip72Chung.ControlGetText(hwnd) == "Getting Vip72 IP..."; if (flag3) { flag = false; } } } bool flag4 = flag; if (flag4) { break; } Thread.Sleep(500); } }
public string clickip(int port) { string listViewItem; int num = 4328465; int num1 = 4324611; int num2 = 4324304; int num3 = 4253085; Process[] processByName = this.GetProcessByName("vip72socks"); if (processByName.Count <Process>() != 0) { IntPtr intPtr = Vip72Chung.FindWindowInProcess(processByName[0], (string s) => s.StartsWith("VIP72 Socks Client")); IntPtr intPtr1 = Vip72Chung.ControlGetHandle(intPtr, "Button", 7817); if (Vip72Chung.ControlGetCheck(intPtr1)) { Vip72Chung.ControlClick(intPtr1); } IntPtr intPtr2 = Vip72Chung.OpenProcess(2035711, false, processByName[0].Id); int num4 = 0; IntPtr zero = IntPtr.Zero; zero = Marshal.AllocHGlobal(4); Vip72Chung.ReadProcessMemory(intPtr2, (IntPtr)num, zero, 4, out num4); Random random = new Random(); uint id = (uint)processByName[0].Id; IntPtr intPtr3 = Vip72Chung.ControlGetHandle(intPtr, "SysListView32", 117); int num5 = 0; while (ListViewItem1.GetListViewItem(intPtr3, id, num5, 4) != "") { string str = ListViewItem1.GetListViewItem(intPtr3, id, num5, 4); if ((str.Contains(port.ToString()) ? false : !str.Contains("main stream"))) { num5++; } else { ListViewItem1.SelectListViewItem(intPtr3, id, num5); int num6 = 0; Vip72Chung.SendMessageTimeout(intPtr3, 256, (IntPtr)46, IntPtr.Zero, 2, 5000, out num6); } } int num7 = -1; IntPtr intPtr4 = Vip72Chung.ControlGetHandle(intPtr, "SysListView32", 116); while (ListViewItem1.GetListViewItem(intPtr4, id, num5, 0) != "") { num5++; } int num8 = num5; if (num8 != 0) { num5 = 0; num7 = -1; while (ListViewItem1.GetListViewItem(intPtr4, id, num5, 0) != "") { if (!ListViewItem1.GetListViewItem(intPtr4, id, num5, 0).Contains(".**")) { num5++; } else { num7 = random.Next(0, num8); while (!ListViewItem1.GetListViewItem(intPtr4, id, num7, 0).Contains(".**")) { num7 = random.Next(0, num8); } break; } } if (num7 != -1) { int[] numArray = new int[] { 472809 }; int[] numArray1 = new int[] { port }; int[] numArray2 = new int[] { num7 }; int num9 = 0; Vip72Chung.WriteProcessMemory((int)intPtr2, num1, numArray1, 4, ref num9); Vip72Chung.WriteProcessMemory((int)intPtr2, num3, numArray, 4, ref num9); Vip72Chung.WriteProcessMemory((int)intPtr2, num2, numArray2, 4, ref num9); ListViewItem1.SelectListViewItem(intPtr4, id, num7); Vip72Chung.ControlDoubleClick(intPtr4); Thread.Sleep(500); numArray[0] = 21529871; Vip72Chung.WriteProcessMemory((int)intPtr2, num3, numArray, 4, ref num9); IntPtr intPtr5 = Vip72Chung.ControlGetHandle(intPtr, "Button", 7303); IntPtr intPtr6 = Vip72Chung.ControlGetHandle(intPtr, "Edit", 131); DateTime now = DateTime.Now; while (!Vip72Chung.ControlGetCheck(intPtr5)) { if (Vip72Chung.ControlGetText(intPtr6).Contains("ffline")) { listViewItem = "dead"; return(listViewItem); } else if (Vip72Chung.ControlGetText(intPtr6).Contains("limit")) { try { if (!processByName[0].HasExited) { processByName[0].Kill(); } } catch (Exception exception) { } listViewItem = "limited"; return(listViewItem); } else if (Vip72Chung.ControlGetText(intPtr6).Contains("can't")) { listViewItem = "dead"; return(listViewItem); } else if (Vip72Chung.ControlGetText(intPtr6).Contains("disconnect")) { listViewItem = "dead"; return(listViewItem); } else if (Vip72Chung.ControlGetText(intPtr6).Contains("aximum")) { listViewItem = "maximum"; return(listViewItem); } else if ((DateTime.Now - now).TotalSeconds > 15) { listViewItem = "timeout"; return(listViewItem); } } Thread.Sleep(500); intPtr3 = Vip72Chung.ControlGetHandle(intPtr, "SysListView32", 117); num5 = 0; while (ListViewItem1.GetListViewItem(intPtr3, id, num5, 4) != "") { if (!ListViewItem1.GetListViewItem(intPtr3, id, num5, 4).Contains(port.ToString())) { num5++; } else { listViewItem = ListViewItem1.GetListViewItem(intPtr3, id, num5, 0); return(listViewItem); } } listViewItem = "limited"; } else { listViewItem = "no IP"; } } else { listViewItem = "no IP"; } } else { listViewItem = "not running"; } return(listViewItem); }
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: 0x060005D5 RID: 1493 RVA: 0x00034F5C File Offset: 0x0003315C public string clickip(int port) { int value = 4328465; int lpBaseAddress = 4324611; int lpBaseAddress2 = 4324304; int lpBaseAddress3 = 4253085; Process[] processByName = this.GetProcessByName("vip72socks"); bool flag = processByName.Count <Process>() == 0; string result; if (flag) { result = "not running"; } else { IntPtr parentHandle = Vip72Chung.FindWindowInProcess(processByName[0], (string s) => s.StartsWith("VIP72 Socks Client")); IntPtr intPtr = Vip72Chung.ControlGetHandle(parentHandle, "Button", 7817); bool flag2 = Vip72Chung.ControlGetCheck(intPtr); if (flag2) { Vip72Chung.ControlClick(intPtr); } IntPtr intPtr2 = Vip72Chung.OpenProcess(2035711, false, processByName[0].Id); int num = 0; IntPtr lpBuffer = IntPtr.Zero; lpBuffer = Marshal.AllocHGlobal(4); Vip72Chung.ReadProcessMemory(intPtr2, (IntPtr)value, lpBuffer, 4, out num); Random random = new Random(); uint id = (uint)processByName[0].Id; IntPtr intPtr3 = Vip72Chung.ControlGetHandle(parentHandle, "SysListView32", 117); int num2 = 0; while (ListViewItem1.GetListViewItem(intPtr3, id, num2, 4) != "") { string listViewItem = ListViewItem1.GetListViewItem(intPtr3, id, num2, 4); bool flag3 = listViewItem.Contains(port.ToString()) || listViewItem.Contains("main stream"); if (flag3) { ListViewItem1.SelectListViewItem(intPtr3, id, num2); int num3 = 0; Vip72Chung.SendMessageTimeout(intPtr3, 256, (IntPtr)46, IntPtr.Zero, 2, 5000, out num3); } else { num2++; } } IntPtr hwnd = Vip72Chung.ControlGetHandle(parentHandle, "SysListView32", 116); while (ListViewItem1.GetListViewItem(hwnd, id, num2, 0) != "") { num2++; } int num4 = num2; bool flag4 = num4 == 0; if (flag4) { result = "no IP"; } else { num2 = 0; int num5 = -1; while (ListViewItem1.GetListViewItem(hwnd, id, num2, 0) != "") { string listViewItem2 = ListViewItem1.GetListViewItem(hwnd, id, num2, 0); bool flag5 = listViewItem2.Contains(".**"); if (flag5) { num5 = random.Next(0, num4); while (!ListViewItem1.GetListViewItem(hwnd, id, num5, 0).Contains(".**")) { num5 = random.Next(0, num4); } break; } num2++; } bool flag6 = num5 == -1; if (flag6) { result = "no IP"; } else { int[] array = new int[] { 472809 }; int[] lpBuffer2 = new int[] { port }; int[] lpBuffer3 = new int[] { num5 }; int num6 = 0; Vip72Chung.WriteProcessMemory((int)intPtr2, lpBaseAddress, lpBuffer2, 4, ref num6); Vip72Chung.WriteProcessMemory((int)intPtr2, lpBaseAddress3, array, 4, ref num6); Vip72Chung.WriteProcessMemory((int)intPtr2, lpBaseAddress2, lpBuffer3, 4, ref num6); ListViewItem1.SelectListViewItem(hwnd, id, num5); Vip72Chung.ControlDoubleClick(hwnd); Thread.Sleep(500); array[0] = 21529871; Vip72Chung.WriteProcessMemory((int)intPtr2, lpBaseAddress3, array, 4, ref num6); IntPtr controlhand = Vip72Chung.ControlGetHandle(parentHandle, "Button", 7303); IntPtr hwnd2 = Vip72Chung.ControlGetHandle(parentHandle, "Edit", 131); DateTime now = DateTime.Now; while (!Vip72Chung.ControlGetCheck(controlhand)) { bool flag7 = Vip72Chung.ControlGetText(hwnd2).Contains("ffline"); if (flag7) { return("dead"); } bool flag8 = Vip72Chung.ControlGetText(hwnd2).Contains("limit"); if (flag8) { try { bool flag9 = !processByName[0].HasExited; if (flag9) { processByName[0].Kill(); } } catch (Exception) { } return("limited"); } bool flag10 = Vip72Chung.ControlGetText(hwnd2).Contains("can't"); if (flag10) { return("dead"); } bool flag11 = Vip72Chung.ControlGetText(hwnd2).Contains("disconnect"); if (flag11) { return("dead"); } bool flag12 = Vip72Chung.ControlGetText(hwnd2).Contains("aximum"); if (flag12) { return("maximum"); } bool flag13 = (DateTime.Now - now).TotalSeconds > 15.0; if (flag13) { return("timeout"); } } Thread.Sleep(500); intPtr3 = Vip72Chung.ControlGetHandle(parentHandle, "SysListView32", 117); num2 = 0; while (ListViewItem1.GetListViewItem(intPtr3, id, num2, 4) != "") { string listViewItem3 = ListViewItem1.GetListViewItem(intPtr3, id, num2, 4); bool flag14 = listViewItem3.Contains(port.ToString()); if (flag14) { return(ListViewItem1.GetListViewItem(intPtr3, id, num2, 0)); } num2++; } result = "limited"; } } } return(result); }
// 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: 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); }