Ejemplo n.º 1
0
        // Token: 0x06000439 RID: 1081 RVA: 0x00028390 File Offset: 0x00026590
        public static void ControlClick(IntPtr hwnd)
        {
            int num  = 0;
            int num2 = Vip72.SendMessageTimeout(hwnd, 513, IntPtr.Zero, IntPtr.Zero, 2, 5000, out num);

            Vip72.SendMessageTimeout(hwnd, 514, IntPtr.Zero, IntPtr.Zero, 2, 5000, out num);
        }
Ejemplo n.º 2
0
        // Token: 0x0600043D RID: 1085 RVA: 0x00028514 File Offset: 0x00026714
        public static IntPtr ControlGetHandle(string _text, string _class, string _controlClass, int ID)
        {
            IntPtr intPtr = Vip72.FindWindow(_class, _text);
            bool   flag   = intPtr == IntPtr.Zero;
            IntPtr result;

            if (flag)
            {
                result = IntPtr.Zero;
            }
            else
            {
                IntPtr intPtr2 = IntPtr.Zero;
                IntPtr intPtr3 = IntPtr.Zero;
                int    num     = -1;
                while (num != ID)
                {
                    intPtr3 = Vip72.FindWindowEx(intPtr, intPtr2, _controlClass, null);
                    num     = (int)Vip72.GetWindowLong(intPtr3, -12);
                    intPtr2 = intPtr3;
                    bool flag2 = intPtr3 == IntPtr.Zero;
                    if (flag2)
                    {
                        result = IntPtr.Zero;
                        return(result);
                    }
                }
                result = intPtr2;
            }
            return(result);
        }
Ejemplo n.º 3
0
        // Token: 0x0600043C RID: 1084 RVA: 0x00028490 File Offset: 0x00026690
        public static IntPtr ControlGetHandle(IntPtr parentHandle, string _controlClass, int ID, bool instance)
        {
            bool   flag = parentHandle == IntPtr.Zero;
            IntPtr result;

            if (flag)
            {
                result = IntPtr.Zero;
            }
            else
            {
                IntPtr intPtr  = IntPtr.Zero;
                IntPtr intPtr2 = IntPtr.Zero;
                int    num     = -1;
                while (num != ID)
                {
                    intPtr2 = Vip72.FindWindowEx(parentHandle, intPtr, _controlClass, null);
                    num     = (int)Vip72.GetWindowLong(intPtr2, -16);
                    intPtr  = intPtr2;
                    bool flag2 = intPtr2 == IntPtr.Zero;
                    if (flag2)
                    {
                        result = IntPtr.Zero;
                        return(result);
                    }
                }
                result = intPtr;
            }
            return(result);
        }
Ejemplo n.º 4
0
        // Token: 0x06000440 RID: 1088 RVA: 0x00028604 File Offset: 0x00026804
        public static IntPtr FindWindowInProcess(Process process, Func <string, bool> compareTitle)
        {
            IntPtr intPtr = IntPtr.Zero;
            bool   flag   = process == null;
            IntPtr result;

            if (flag)
            {
                result = intPtr;
            }
            else
            {
                foreach (ProcessThread processThread in process.Threads)
                {
                    intPtr = Vip72.FindWindowInThread(processThread.Id, compareTitle);
                    bool flag2 = intPtr != IntPtr.Zero;
                    if (flag2)
                    {
                        break;
                    }
                }
                result = intPtr;
            }
            return(result);
        }
Ejemplo n.º 5
0
        // Token: 0x0600043E RID: 1086 RVA: 0x000285A0 File Offset: 0x000267A0
        private static bool ControlGetCheck(IntPtr controlhand)
        {
            int num2;
            int num = Vip72.SendMessageTimeout(controlhand, 240, IntPtr.Zero, IntPtr.Zero, 2, 5000, out num2);

            return(num2 == 1);
        }
Ejemplo n.º 6
0
        private static bool ControlGetState(IntPtr controlhandle, int state)
        {
            bool flag;

            flag = (((int)Vip72.GetWindowLong(controlhandle, -16) & state) == 0 ? false : true);
            return(flag);
        }
Ejemplo n.º 7
0
        // Token: 0x06000444 RID: 1092 RVA: 0x00028AD8 File Offset: 0x00026CD8
        public void clearIpWithPort(int port)
        {
            Process[] processByName = this.GetProcessByName("vip72socks");
            bool      flag          = processByName.Count <Process>() > 0;

            if (flag)
            {
                Process[] array = processByName;
                for (int i = 0; i < array.Length; i++)
                {
                    Process             process  = array[i];
                    Process             arg_4F_0 = Vip72.Vip72Process;
                    Func <string, bool> arg_4F_1;
                    if ((arg_4F_1 = Vip72.< > c.< > 9__34_0) == null)
                    {
                        arg_4F_1 = (Vip72.< > c.< > 9__34_0 = new Func <string, bool>(Vip72.< > c.< > 9. < clearIpWithPort > b__34_0));
                    }
                    IntPtr parentHandle = Vip72.FindWindowInProcess(arg_4F_0, arg_4F_1);
                    IntPtr hwnd         = Vip72.ControlGetHandle(parentHandle, "Static", 7955);
                    bool   flag2        = Vip72.ControlGetText(hwnd).EndsWith(":" + port.ToString());
                    if (flag2)
                    {
                        process.Kill();
                    }
                }
            }
        }
Ejemplo n.º 8
0
        public static IntPtr ControlGetHandle(string _text, string _class, string _controlClass, int ID)
        {
            IntPtr zero;
            IntPtr intPtr = Vip72.FindWindow(_class, _text);

            if (intPtr != IntPtr.Zero)
            {
                IntPtr zero1      = IntPtr.Zero;
                IntPtr intPtr1    = IntPtr.Zero;
                int    windowLong = -1;
                while (windowLong != ID)
                {
                    intPtr1    = Vip72.FindWindowEx(intPtr, zero1, _controlClass, null);
                    windowLong = (int)Vip72.GetWindowLong(intPtr1, -12);
                    zero1      = intPtr1;
                    if (intPtr1 == IntPtr.Zero)
                    {
                        zero = IntPtr.Zero;
                        return(zero);
                    }
                }
                zero = zero1;
            }
            else
            {
                zero = IntPtr.Zero;
            }
            return(zero);
        }
Ejemplo n.º 9
0
        public static IntPtr ControlGetHandle(IntPtr parentHandle, string _controlClass, int ID, bool instance)
        {
            IntPtr zero;

            if (parentHandle != IntPtr.Zero)
            {
                IntPtr intPtr     = IntPtr.Zero;
                IntPtr zero1      = IntPtr.Zero;
                int    windowLong = -1;
                while (windowLong != ID)
                {
                    zero1      = Vip72.FindWindowEx(parentHandle, intPtr, _controlClass, null);
                    windowLong = (int)Vip72.GetWindowLong(zero1, -16);
                    intPtr     = zero1;
                    if (zero1 == IntPtr.Zero)
                    {
                        zero = IntPtr.Zero;
                        return(zero);
                    }
                }
                zero = intPtr;
            }
            else
            {
                zero = IntPtr.Zero;
            }
            return(zero);
        }
Ejemplo n.º 10
0
        // Token: 0x06000445 RID: 1093 RVA: 0x00028B88 File Offset: 0x00026D88
        public void clearip()
        {
            bool flag = !Vip72.Vip72Process.HasExited;

            if (flag)
            {
                IntPtr intPtr = Vip72.OpenProcess(2035711, false, Vip72.Vip72Process.Id);
                byte[] array  = new byte[]
                {
                    144,
                    144
                };
                Process             arg_69_0 = Vip72.Vip72Process;
                Func <string, bool> arg_69_1;
                if ((arg_69_1 = Vip72.< > c.< > 9__35_0) == null)
                {
                    arg_69_1 = (Vip72.< > c.< > 9__35_0 = new Func <string, bool>(Vip72.< > c.< > 9. < clearip > b__35_0));
                }
                IntPtr parentHandle = Vip72.FindWindowInProcess(arg_69_0, arg_69_1);
                IntPtr hWnd         = Vip72.ControlGetHandle(parentHandle, "SysListView32", 117);
                for (int i = 0; i < 30; i++)
                {
                    int num = 0;
                    Vip72.SendMessageTimeout(hWnd, 256, (IntPtr)46, IntPtr.Zero, 2, 5000, out num);
                }
            }
        }
Ejemplo n.º 11
0
        // Token: 0x0600059D RID: 1437 RVA: 0x000340C8 File Offset: 0x000322C8
        public bool getip(string country)
        {
            byte[] array  = new byte[1];
            int[]  array2 = new int[]
            {
                0
            };
            byte code = RunData.getInstance().listCountryCode.FirstOrDefault((countrycode x) => x.country == country).code;

            array[0] = code;
            int num = 4482683;

            if (Vip72.Vip72Process != null && !Vip72.Vip72Process.HasExited)
            {
                IntPtr parentHandle = Vip72.FindWindowInProcess(Vip72.Vip72Process, (string s) => s.StartsWith("VIP72 Socks Client"));
                IntPtr value        = Vip72.OpenProcess(2035711, false, Vip72.Vip72Process.Id);
                int    num2         = 0;
                Vip72.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;
                }
                Vip72.WriteProcessMemory((int)value, num + 1, array2, 4, ref num2);
                IntPtr intPtr = Vip72.ControlGetHandle(parentHandle, "Button", 127);
                Vip72.ControlClick(intPtr);
                Vip72.ControlGetHandle(parentHandle, "Edit", 131);
                DateTime now = DateTime.Now;
                while (Vip72.ControlGetState(intPtr, 134217728))
                {
                    Thread.Sleep(100);
                    if (Vip72.Vip72Process.HasExited)
                    {
                        return(false);
                    }
                    if (!Vip72.Vip72Process.Responding || (DateTime.Now - now).TotalSeconds > 30.0)
                    {
                        try
                        {
                            if (!Vip72.Vip72Process.HasExited)
                            {
                                Vip72.Vip72Process.Kill();
                            }
                        }
                        catch (Exception)
                        {
                        }
                        return(false);
                    }
                }
            }
            return(true);
        }
Ejemplo n.º 12
0
        public static string ControlGetText(IntPtr hwnd)
        {
            StringBuilder stringBuilder = new StringBuilder(255);
            int           num           = 0;

            Vip72.SendMessageTimeout(hwnd, 13, stringBuilder.Capacity, stringBuilder, 2, 5000, out num);
            return(stringBuilder.ToString());
        }
Ejemplo n.º 13
0
        public bool getip(byte countryindex)
        {
            bool flag;

            byte[] numArray  = new byte[1];
            int[]  numArray1 = new int[1];
            numArray[0] = countryindex;
            int num = 4482683;

            if ((Vip72.Vip72Process == null ? false : !Vip72.Vip72Process.HasExited))
            {
                IntPtr intPtr  = Vip72.FindWindowInProcess(Vip72.Vip72Process, (string s) => s.StartsWith("VIP72 Socks Client"));
                IntPtr intPtr1 = Vip72.OpenProcess(2035711, false, Vip72.Vip72Process.Id);
                int    num1    = 0;
                Vip72.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;
                }
                Vip72.WriteProcessMemory((int)intPtr1, num + 1, numArray1, 4, ref num1);
                IntPtr intPtr2 = Vip72.ControlGetHandle(intPtr, "Button", 127);
                Vip72.ControlClick(intPtr2);
                Vip72.ControlGetHandle(intPtr, "Edit", 131);
                DateTime now = DateTime.Now;
                while (Vip72.ControlGetState(intPtr2, 134217728))
                {
                    Thread.Sleep(100);
                    if (Vip72.Vip72Process.HasExited)
                    {
                        flag = false;
                        return(flag);
                    }
                    else if ((!Vip72.Vip72Process.Responding ? true : (DateTime.Now - now).TotalSeconds > 30))
                    {
                        try
                        {
                            if (!Vip72.Vip72Process.HasExited)
                            {
                                Vip72.Vip72Process.Kill();
                            }
                        }
                        catch (Exception exception)
                        {
                        }
                        flag = false;
                        return(flag);
                    }
                }
            }
            flag = true;
            return(flag);
        }
Ejemplo n.º 14
0
 public void clearip()
 {
     if (!Vip72.Vip72Process.HasExited)
     {
         Vip72.OpenProcess(2035711, false, Vip72.Vip72Process.Id);
         byte[] numArray = new byte[] { 144, 144 };
         IntPtr intPtr   = Vip72.FindWindowInProcess(Vip72.Vip72Process, (string s) => s.StartsWith("VIP72 Socks Client"));
         IntPtr intPtr1  = Vip72.ControlGetHandle(intPtr, "SysListView32", 117);
         for (int i = 0; i < 30; i++)
         {
             int num = 0;
             Vip72.SendMessageTimeout(intPtr1, 256, (IntPtr)46, IntPtr.Zero, 2, 5000, out num);
         }
     }
 }
Ejemplo n.º 15
0
 public void clearIpWithPort(int port)
 {
     Process[] processByName = this.GetProcessByName("vip72socks");
     if (processByName.Count <Process>() > 0)
     {
         Process[] processArray = processByName;
         for (int i = 0; i < (int)processArray.Length; i++)
         {
             Process process = processArray[i];
             if (Vip72.ControlGetText(Vip72.ControlGetHandle(Vip72.FindWindowInProcess(Vip72.Vip72Process, (string s) => s.StartsWith("VIP72 Socks Client")), "Static", 7955)).EndsWith(string.Concat(":", port.ToString())))
             {
                 process.Kill();
             }
         }
     }
 }
Ejemplo n.º 16
0
        // Token: 0x06000599 RID: 1433 RVA: 0x00033A54 File Offset: 0x00031C54
        public void clearIpWithPort(int port)
        {
            Process[] processByName = this.GetProcessByName("vip72socks");
            bool      flag          = processByName.Count <Process>() > 0;

            if (flag)
            {
                foreach (Process process in processByName)
                {
                    IntPtr parentHandle = Vip72.FindWindowInProcess(Vip72.Vip72Process, (string s) => s.StartsWith("VIP72 Socks Client"));
                    IntPtr hwnd         = Vip72.ControlGetHandle(parentHandle, "Static", 7955);
                    bool   flag2        = Vip72.ControlGetText(hwnd).EndsWith(":" + port.ToString());
                    if (flag2)
                    {
                        process.Kill();
                    }
                }
            }
        }
Ejemplo n.º 17
0
        private static IntPtr FindWindowInThread(int threadId, Func <string, bool> compareTitle)
        {
            IntPtr zero = IntPtr.Zero;

            Vip72.EnumThreadWindows(threadId, (IntPtr hWnd, IntPtr lParam) => {
                bool flag;
                StringBuilder stringBuilder = new StringBuilder(200);
                Vip72.GetWindowText(hWnd, stringBuilder, 200);
                if (!compareTitle(stringBuilder.ToString()))
                {
                    flag = true;
                }
                else
                {
                    zero = hWnd;
                    flag = false;
                }
                return(flag);
            }, IntPtr.Zero);
            return(zero);
        }
Ejemplo n.º 18
0
        private InterfaceVip72 getVip72Instance()
        {
            bool svip = false;

            base.Invoke(new MethodInvoker(delegate
            {
                svip = this.sameVip.Checked;
            }));

            InterfaceVip72 vipInstance;

            if (!svip)
            {
                vipInstance = new Vip72();
            }
            else
            {
                vipInstance = new Vip72Chung();
            }
            return(vipInstance);
        }
Ejemplo n.º 19
0
        // Token: 0x06000441 RID: 1089 RVA: 0x00028698 File Offset: 0x00026898
        private static IntPtr FindWindowInThread(int threadId, Func <string, bool> compareTitle)
        {
            IntPtr windowHandle = IntPtr.Zero;

            Vip72.EnumThreadWindows(threadId, delegate(IntPtr hWnd, IntPtr lParam)
            {
                StringBuilder stringBuilder = new StringBuilder(200);
                Vip72.GetWindowText(hWnd, stringBuilder, 200);
                bool flag = compareTitle(stringBuilder.ToString());
                bool result;
                if (flag)
                {
                    windowHandle = hWnd;
                    result       = false;
                }
                else
                {
                    result = true;
                }
                return(result);
            }, IntPtr.Zero);
            return(windowHandle);
        }
Ejemplo n.º 20
0
        public static IntPtr FindWindowInProcess(Process process, Func <string, bool> compareTitle)
        {
            IntPtr intPtr;
            IntPtr zero = IntPtr.Zero;

            if (process != null)
            {
                foreach (ProcessThread thread in process.Threads)
                {
                    zero = Vip72.FindWindowInThread(thread.Id, compareTitle);
                    if (zero != IntPtr.Zero)
                    {
                        break;
                    }
                }
                intPtr = zero;
            }
            else
            {
                intPtr = zero;
            }
            return(intPtr);
        }
Ejemplo n.º 21
0
        // Token: 0x06000442 RID: 1090 RVA: 0x000286E0 File Offset: 0x000268E0
        public bool vip72login(string username, string password, int mainPort)
        {
            Thread.Sleep(1000);
            Process[] processByName = this.GetProcessByName("vip72socks");
            Process[] array         = processByName;
            for (int i = 0; i < array.Length; i++)
            {
                Process             process  = array[i];
                Process             arg_4A_0 = process;
                Func <string, bool> arg_4A_1;
                if ((arg_4A_1 = Vip72.< > c.< > 9__32_0) == null)
                {
                    arg_4A_1 = (Vip72.< > c.< > 9__32_0 = new Func <string, bool>(Vip72.< > c.< > 9. < vip72login > b__32_0));
                }
                IntPtr parentHandle = Vip72.FindWindowInProcess(arg_4A_0, arg_4A_1);
                IntPtr hwnd         = Vip72.ControlGetHandle(parentHandle, "Static", 7955);
                bool   flag         = Vip72.ControlGetText(hwnd).EndsWith(":" + mainPort.ToString());
                if (flag)
                {
                    Vip72.Vip72Process = process;
                    break;
                }
            }
            bool flag2 = Vip72.Vip72Process != null && !Vip72.Vip72Process.HasExited && Vip72.Vip72Process.Responding;

            if (flag2)
            {
                Process             arg_EE_0 = Vip72.Vip72Process;
                Func <string, bool> arg_EE_1;
                if ((arg_EE_1 = Vip72.< > c.< > 9__32_1) == null)
                {
                    arg_EE_1 = (Vip72.< > c.< > 9__32_1 = new Func <string, bool>(Vip72.< > c.< > 9. < vip72login > b__32_1));
                }
                IntPtr parentHandle2 = Vip72.FindWindowInProcess(arg_EE_0, arg_EE_1);
                IntPtr hwnd2         = Vip72.ControlGetHandle(parentHandle2, "Static", 7955);
                bool   flag3         = !Vip72.ControlGetText(hwnd2).EndsWith(":" + mainPort.ToString());
                if (flag3)
                {
                    bool flag4 = !Vip72.Vip72Process.HasExited;
                    if (flag4)
                    {
                        Vip72.Vip72Process.Kill();
                    }
                    Vip72.Vip72Process = null;
                }
            }
            else
            {
                bool flag5 = Vip72.Vip72Process != null && !Vip72.Vip72Process.Responding;
                if (flag5)
                {
                    bool flag6 = !Vip72.Vip72Process.HasExited;
                    if (flag6)
                    {
                        Vip72.Vip72Process.Kill();
                    }
                    Vip72.Vip72Process = null;
                }
            }
            bool flag7 = Vip72.Vip72Process == null || Vip72.Vip72Process.HasExited;

            if (flag7)
            {
                Vip72.Vip72Process = Process.Start(new ProcessStartInfo
                {
                    FileName         = "vip72socks.exe",
                    WorkingDirectory = AppDomain.CurrentDomain.BaseDirectory + "vip72",
                    Arguments        = "-mp:" + mainPort.ToString()
                });
                IntPtr value    = Vip72.OpenProcess(2035711, false, Vip72.Vip72Process.Id);
                byte[] lpBuffer = new byte[]
                {
                    235
                };
                int num           = 0;
                int lpBaseAddress = 4234074;
                Vip72.WriteProcessMemory((int)value, lpBaseAddress, lpBuffer, 1, ref num);
            }
            Thread.Sleep(500);
            Process             arg_285_0 = Vip72.Vip72Process;
            Func <string, bool> arg_285_1;

            if ((arg_285_1 = Vip72.< > c.< > 9__32_2) == null)
            {
                arg_285_1 = (Vip72.< > c.< > 9__32_2 = new Func <string, bool>(Vip72.< > c.< > 9. < vip72login > b__32_2));
            }
            IntPtr parentHandle3 = Vip72.FindWindowInProcess(arg_285_0, arg_285_1);
            IntPtr intPtr        = Vip72.ControlGetHandle(parentHandle3, "Button", 119);
            IntPtr hwnd3         = Vip72.ControlGetHandle(parentHandle3, "Static", 7955);
            bool   flag8         = intPtr != IntPtr.Zero;
            bool   result;

            if (flag8)
            {
                Vip72.ControlSetText(hwnd3, "Port mac dinh:" + mainPort.ToString());
                bool flag9 = !Vip72.ControlGetState(intPtr, 134217728);
                if (flag9)
                {
                    IntPtr hwnd4 = Vip72.ControlGetHandle(parentHandle3, "Edit", 303);
                    Vip72.ControlSetText(hwnd4, username);
                    IntPtr hwnd5 = Vip72.ControlGetHandle(parentHandle3, "Edit", 301);
                    Vip72.ControlSetText(hwnd5, password);
                    Vip72.ControlClick(intPtr);
                    IntPtr   hwnd6 = Vip72.ControlGetHandle(parentHandle3, "Edit", 131);
                    DateTime now   = DateTime.Now;
                    while (Vip72.ControlGetText(hwnd6) != "System ready")
                    {
                        bool flag10 = Vip72.ControlGetText(hwnd6) == "ERROR!Login and Password is incorrect";
                        if (flag10)
                        {
                            result = false;
                            return(result);
                        }
                        bool flag11 = !Vip72.ControlGetState(intPtr, 134217728);
                        if (flag11)
                        {
                            result = false;
                            return(result);
                        }
                        Thread.Sleep(100);
                        bool flag12 = (DateTime.Now - now).Seconds > 20;
                        if (flag12)
                        {
                            result = false;
                            return(result);
                        }
                    }
                    Thread.Sleep(3000);
                }
                result = true;
            }
            else
            {
                result = this.vip72login(username, password, mainPort);
            }
            return(result);
        }
Ejemplo n.º 22
0
        // Token: 0x0600043F RID: 1087 RVA: 0x000285D4 File Offset: 0x000267D4
        private static bool ControlGetState(IntPtr controlhandle, int state)
        {
            int num = (int)Vip72.GetWindowLong(controlhandle, -16);

            return((num & state) != 0);
        }
Ejemplo n.º 23
0
        public bool vip72login(string username, string password, int mainPort)
        {
            bool flag;

            Thread.Sleep(1000);
            Process[] processByName = this.GetProcessByName("vip72socks");
            int       num           = 0;

            while (num < (int)processByName.Length)
            {
                Process process = processByName[num];
                if (!Vip72.ControlGetText(Vip72.ControlGetHandle(Vip72.FindWindowInProcess(process, (string s) => s.StartsWith("VIP72 Socks Client")), "Static", 7955)).EndsWith(string.Concat(":", mainPort.ToString())))
                {
                    num++;
                }
                else
                {
                    Vip72.Vip72Process = process;
                    break;
                }
            }
            if ((Vip72.Vip72Process == null || Vip72.Vip72Process.HasExited ? false : Vip72.Vip72Process.Responding))
            {
                if (!Vip72.ControlGetText(Vip72.ControlGetHandle(Vip72.FindWindowInProcess(Vip72.Vip72Process, (string s) => s.StartsWith("VIP72 Socks Client")), "Static", 7955)).EndsWith(string.Concat(":", mainPort.ToString())))
                {
                    if (!Vip72.Vip72Process.HasExited)
                    {
                        Vip72.Vip72Process.Kill();
                    }
                    Vip72.Vip72Process = null;
                }
            }
            else if ((Vip72.Vip72Process == null ? false : !Vip72.Vip72Process.Responding))
            {
                if (!Vip72.Vip72Process.HasExited)
                {
                    Vip72.Vip72Process.Kill();
                }
                Vip72.Vip72Process = null;
            }
            if ((Vip72.Vip72Process == null ? true : Vip72.Vip72Process.HasExited))
            {
                ProcessStartInfo processStartInfo = new ProcessStartInfo()
                {
                    FileName         = "vip72socks.exe",
                    WorkingDirectory = string.Concat(AppDomain.CurrentDomain.BaseDirectory, "vip72"),
                    Arguments        = string.Concat("-mp:", mainPort.ToString())
                };
                Vip72.Vip72Process = Process.Start(processStartInfo);
                IntPtr intPtr   = Vip72.OpenProcess(2035711, false, Vip72.Vip72Process.Id);
                byte[] numArray = new byte[] { 235 };
                int    num1     = 0;
                int    num2     = 4234074;
                Vip72.WriteProcessMemory((int)intPtr, num2, numArray, 1, ref num1);
            }
            Thread.Sleep(500);
            IntPtr intPtr1 = Vip72.FindWindowInProcess(Vip72.Vip72Process, (string s) => s.StartsWith("VIP72 Socks Client"));
            IntPtr intPtr2 = Vip72.ControlGetHandle(intPtr1, "Button", 119);
            IntPtr intPtr3 = Vip72.ControlGetHandle(intPtr1, "Static", 7955);

            if (intPtr2 == IntPtr.Zero)
            {
                flag = this.vip72login(username, password, mainPort);
            }
            else
            {
                Vip72.ControlSetText(intPtr3, string.Concat("Port mac dinh:", mainPort.ToString()));
                if (!Vip72.ControlGetState(intPtr2, 134217728))
                {
                    IntPtr intPtr4 = Vip72.ControlGetHandle(intPtr1, "Edit", 303);
                    Vip72.ControlSetText(intPtr4, username);
                    IntPtr intPtr5 = Vip72.ControlGetHandle(intPtr1, "Edit", 301);
                    Vip72.ControlSetText(intPtr5, password);
                    Vip72.ControlClick(intPtr2);
                    IntPtr   intPtr6 = Vip72.ControlGetHandle(intPtr1, "Edit", 131);
                    DateTime now     = DateTime.Now;
                    while (Vip72.ControlGetText(intPtr6) != "System ready")
                    {
                        if (Vip72.ControlGetText(intPtr6) == "ERROR!Login and Password is incorrect")
                        {
                            flag = false;
                            return(flag);
                        }
                        else if (Vip72.ControlGetState(intPtr2, 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);
        }
Ejemplo n.º 24
0
 // Token: 0x06000438 RID: 1080 RVA: 0x0002836C File Offset: 0x0002656C
 public static int ControlSetText(IntPtr hwnd, string text)
 {
     return(Vip72.SendMessage(hwnd, 12, text.Length, text));
 }
Ejemplo n.º 25
0
        // Token: 0x06000446 RID: 1094 RVA: 0x00028C54 File Offset: 0x00026E54
        public string clickip(int port)
        {
            bool   hasExited = Vip72.Vip72Process.HasExited;
            string result;

            if (hasExited)
            {
                result = "not running";
            }
            else
            {
                Process             arg_41_0 = Vip72.Vip72Process;
                Func <string, bool> arg_41_1;
                if ((arg_41_1 = Vip72.< > c.< > 9__36_0) == null)
                {
                    arg_41_1 = (Vip72.< > c.< > 9__36_0 = new Func <string, bool>(Vip72.< > c.< > 9. < clickip > b__36_0));
                }
                IntPtr parentHandle  = Vip72.FindWindowInProcess(arg_41_0, arg_41_1);
                int    value         = 4328465;
                int    lpBaseAddress = 4324304;
                IntPtr intPtr        = Vip72.ControlGetHandle(parentHandle, "Button", 7817);
                bool   flag          = Vip72.ControlGetCheck(intPtr);
                if (flag)
                {
                    Vip72.ControlClick(intPtr);
                }
                IntPtr intPtr2  = Vip72.OpenProcess(2035711, false, Vip72.Vip72Process.Id);
                int    num      = 0;
                IntPtr lpBuffer = IntPtr.Zero;
                lpBuffer = Marshal.AllocHGlobal(4);
                Vip72.ReadProcessMemory(intPtr2, (IntPtr)value, lpBuffer, 4, out num);
                Random random  = new Random();
                uint   id      = (uint)Vip72.Vip72Process.Id;
                IntPtr intPtr3 = Vip72.ControlGetHandle(parentHandle, "SysListView32", 117);
                int    num2    = 0;
                while (ListViewItem1.GetListViewItem(intPtr3, id, num2, 4) != "")
                {
                    string listViewItem = ListViewItem1.GetListViewItem(intPtr3, id, num2, 4);
                    bool   flag2        = listViewItem.Contains(port.ToString()) || listViewItem.Contains("main stream");
                    if (flag2)
                    {
                        ListViewItem1.SelectListViewItem(intPtr3, id, num2);
                        int num3 = 0;
                        Vip72.SendMessageTimeout(intPtr3, 256, (IntPtr)46, IntPtr.Zero, 2, 5000, out num3);
                    }
                    else
                    {
                        num2++;
                    }
                }
                num2 = 0;
                IntPtr hwnd = Vip72.ControlGetHandle(parentHandle, "SysListView32", 116);
                while (ListViewItem1.GetListViewItem(hwnd, id, num2, 0) != "")
                {
                    num2++;
                }
                int  num4  = num2;
                bool flag3 = num4 == 0;
                if (flag3)
                {
                    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   flag4         = listViewItem2.Contains(".**");
                        if (flag4)
                        {
                            num5 = random.Next(0, num4);
                            while (!ListViewItem1.GetListViewItem(hwnd, id, num5, 0).Contains(".**"))
                            {
                                num5 = random.Next(0, num4);
                            }
                            break;
                        }
                        num2++;
                    }
                    bool flag5 = num5 == -1;
                    if (flag5)
                    {
                        result = "no IP";
                    }
                    else
                    {
                        int[] lpBuffer2 = new int[]
                        {
                            num5
                        };
                        int num6 = 0;
                        Vip72.WriteProcessMemory((int)intPtr2, lpBaseAddress, lpBuffer2, 4, ref num6);
                        ListViewItem1.SelectListViewItem(hwnd, id, num5);
                        Vip72.ControlDoubleClick(hwnd);
                        Thread.Sleep(500);
                        IntPtr   controlhand = Vip72.ControlGetHandle(parentHandle, "Button", 7303);
                        IntPtr   hwnd2       = Vip72.ControlGetHandle(parentHandle, "Edit", 131);
                        DateTime now         = DateTime.Now;
                        while (!Vip72.ControlGetCheck(controlhand))
                        {
                            bool flag6 = Vip72.ControlGetText(hwnd2).Contains("ffline");
                            if (flag6)
                            {
                                result = "dead";
                                return(result);
                            }
                            bool flag7 = Vip72.ControlGetText(hwnd2).Contains("limit");
                            if (flag7)
                            {
                                try
                                {
                                    bool flag8 = !Vip72.Vip72Process.HasExited;
                                    if (flag8)
                                    {
                                        Vip72.Vip72Process.Kill();
                                    }
                                }
                                catch (Exception)
                                {
                                }
                                result = "limited";
                                return(result);
                            }
                            bool flag9 = Vip72.ControlGetText(hwnd2).Contains("can't");
                            if (flag9)
                            {
                                result = "dead";
                                return(result);
                            }
                            bool flag10 = Vip72.ControlGetText(hwnd2).Contains("disconnect");
                            if (flag10)
                            {
                                result = "dead";
                                return(result);
                            }
                            bool flag11 = Vip72.ControlGetText(hwnd2).Contains("aximum");
                            if (flag11)
                            {
                                result = "maximum";
                                return(result);
                            }
                            bool flag12 = (DateTime.Now - now).TotalSeconds > 15.0;
                            if (flag12)
                            {
                                result = "timeout";
                                return(result);
                            }
                        }
                        Thread.Sleep(500);
                        intPtr3 = Vip72.ControlGetHandle(parentHandle, "SysListView32", 117);
                        num2    = 0;
                        while (ListViewItem1.GetListViewItem(intPtr3, id, num2, 4) != "")
                        {
                            string listViewItem3 = ListViewItem1.GetListViewItem(intPtr3, id, num2, 4);
                            bool   flag13        = listViewItem3.Contains("main stream");
                            if (flag13)
                            {
                                result = ListViewItem1.GetListViewItem(intPtr3, id, num2, 0);
                                return(result);
                            }
                            num2++;
                        }
                        result = "limited";
                    }
                }
            }
            return(result);
        }
Ejemplo n.º 26
0
        public string clickip(int port)
        {
            string listViewItem;

            if (!Vip72.Vip72Process.HasExited)
            {
                IntPtr intPtr  = Vip72.FindWindowInProcess(Vip72.Vip72Process, (string s) => s.StartsWith("VIP72 Socks Client"));
                int    num     = 4328465;
                int    num1    = 4324304;
                IntPtr intPtr1 = Vip72.ControlGetHandle(intPtr, "Button", 7817);
                if (Vip72.ControlGetCheck(intPtr1))
                {
                    Vip72.ControlClick(intPtr1);
                }
                IntPtr intPtr2 = Vip72.OpenProcess(2035711, false, Vip72.Vip72Process.Id);
                int    num2    = 0;
                IntPtr zero    = IntPtr.Zero;
                zero = Marshal.AllocHGlobal(4);
                Vip72.ReadProcessMemory(intPtr2, (IntPtr)num, zero, 4, out num2);
                Random random  = new Random();
                uint   id      = (uint)Vip72.Vip72Process.Id;
                IntPtr intPtr3 = Vip72.ControlGetHandle(intPtr, "SysListView32", 117);
                int    num3    = 0;
                while (ListViewItem1.GetListViewItem(intPtr3, id, num3, 4) != "")
                {
                    string str = ListViewItem1.GetListViewItem(intPtr3, id, num3, 4);
                    if ((str.Contains(port.ToString()) ? false : !str.Contains("main stream")))
                    {
                        num3++;
                    }
                    else
                    {
                        ListViewItem1.SelectListViewItem(intPtr3, id, num3);
                        int num4 = 0;
                        Vip72.SendMessageTimeout(intPtr3, 256, (IntPtr)46, IntPtr.Zero, 2, 5000, out num4);
                    }
                }
                num3 = 0;
                int    num5    = -1;
                IntPtr intPtr4 = Vip72.ControlGetHandle(intPtr, "SysListView32", 116);
                while (ListViewItem1.GetListViewItem(intPtr4, id, num3, 0) != "")
                {
                    num3++;
                }
                int num6 = num3;
                if (num6 != 0)
                {
                    num3 = 0;
                    num5 = -1;
                    while (ListViewItem1.GetListViewItem(intPtr4, id, num3, 0) != "")
                    {
                        if (!ListViewItem1.GetListViewItem(intPtr4, id, num3, 0).Contains(".**"))
                        {
                            num3++;
                        }
                        else
                        {
                            num5 = random.Next(0, num6);
                            while (!ListViewItem1.GetListViewItem(intPtr4, id, num5, 0).Contains(".**"))
                            {
                                num5 = random.Next(0, num6);
                            }
                            break;
                        }
                    }
                    if (num5 != -1)
                    {
                        int[] numArray = new int[] { num5 };
                        int   num7     = 0;
                        Vip72.WriteProcessMemory((int)intPtr2, num1, numArray, 4, ref num7);
                        ListViewItem1.SelectListViewItem(intPtr4, id, num5);
                        Vip72.ControlDoubleClick(intPtr4);
                        Thread.Sleep(500);
                        IntPtr   intPtr5 = Vip72.ControlGetHandle(intPtr, "Button", 7303);
                        IntPtr   intPtr6 = Vip72.ControlGetHandle(intPtr, "Edit", 131);
                        DateTime now     = DateTime.Now;
                        while (!Vip72.ControlGetCheck(intPtr5))
                        {
                            if (Vip72.ControlGetText(intPtr6).Contains("ffline"))
                            {
                                listViewItem = "dead";
                                return(listViewItem);
                            }
                            else if (Vip72.ControlGetText(intPtr6).Contains("limit"))
                            {
                                try
                                {
                                    if (!Vip72.Vip72Process.HasExited)
                                    {
                                        Vip72.Vip72Process.Kill();
                                    }
                                }
                                catch (Exception exception)
                                {
                                }
                                listViewItem = "limited";
                                return(listViewItem);
                            }
                            else if (Vip72.ControlGetText(intPtr6).Contains("can't"))
                            {
                                listViewItem = "dead";
                                return(listViewItem);
                            }
                            else if (Vip72.ControlGetText(intPtr6).Contains("disconnect"))
                            {
                                listViewItem = "dead";
                                return(listViewItem);
                            }
                            else if (Vip72.ControlGetText(intPtr6).Contains("aximum"))
                            {
                                listViewItem = "maximum";
                                return(listViewItem);
                            }
                            else if ((DateTime.Now - now).TotalSeconds > 15)
                            {
                                listViewItem = "timeout";
                                return(listViewItem);
                            }
                        }
                        Thread.Sleep(500);
                        intPtr3 = Vip72.ControlGetHandle(intPtr, "SysListView32", 117);
                        num3    = 0;
                        while (ListViewItem1.GetListViewItem(intPtr3, id, num3, 4) != "")
                        {
                            if (!ListViewItem1.GetListViewItem(intPtr3, id, num3, 4).Contains("main stream"))
                            {
                                num3++;
                            }
                            else
                            {
                                listViewItem = ListViewItem1.GetListViewItem(intPtr3, id, num3, 0);
                                return(listViewItem);
                            }
                        }
                        listViewItem = "limited";
                    }
                    else
                    {
                        listViewItem = "no IP";
                    }
                }
                else
                {
                    listViewItem = "no IP";
                }
            }
            else
            {
                listViewItem = "not running";
            }
            return(listViewItem);
        }
Ejemplo n.º 27
0
        // Token: 0x06000448 RID: 1096 RVA: 0x0002914C File Offset: 0x0002734C
        public bool getip(byte countryindex)
        {
            byte[] array  = new byte[1];
            int[]  array2 = new int[1];
            array[0] = countryindex;
            int  num  = 4482683;
            bool flag = Vip72.Vip72Process != null && !Vip72.Vip72Process.HasExited;
            bool result;

            if (flag)
            {
                Process             arg_5C_0 = Vip72.Vip72Process;
                Func <string, bool> arg_5C_1;
                if ((arg_5C_1 = Vip72.< > c.< > 9__38_0) == null)
                {
                    arg_5C_1 = (Vip72.< > c.< > 9__38_0 = new Func <string, bool>(Vip72.< > c.< > 9. < getip > b__38_0));
                }
                IntPtr parentHandle = Vip72.FindWindowInProcess(arg_5C_0, arg_5C_1);
                IntPtr value        = Vip72.OpenProcess(2035711, false, Vip72.Vip72Process.Id);
                int    num2         = 0;
                Vip72.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;
                }
                Vip72.WriteProcessMemory((int)value, num + 1, array2, 4, ref num2);
                IntPtr intPtr = Vip72.ControlGetHandle(parentHandle, "Button", 127);
                Vip72.ControlClick(intPtr);
                IntPtr   intPtr2 = Vip72.ControlGetHandle(parentHandle, "Edit", 131);
                DateTime now     = DateTime.Now;
                while (Vip72.ControlGetState(intPtr, 134217728))
                {
                    Thread.Sleep(100);
                    bool hasExited = Vip72.Vip72Process.HasExited;
                    if (hasExited)
                    {
                        result = false;
                        return(result);
                    }
                    bool flag3 = !Vip72.Vip72Process.Responding || (DateTime.Now - now).TotalSeconds > 30.0;
                    if (flag3)
                    {
                        try
                        {
                            bool flag4 = !Vip72.Vip72Process.HasExited;
                            if (flag4)
                            {
                                Vip72.Vip72Process.Kill();
                            }
                        }
                        catch (Exception)
                        {
                        }
                        result = false;
                        return(result);
                    }
                }
            }
            result = true;
            return(result);
        }
Ejemplo n.º 28
0
        private void threadchangeIP()
        {
            dynamic           vip72Chung;
            object            obj;
            object            obj1;
            string            text;
            vipaccount        yellow;
            luminatio_account yellow_lumi;
            MethodInvoker     methodInvoker = null;

            while (true)
            {
Label2:
                text = "SSH";
                this.proxytool.Invoke(new MethodInvoker(() => text = this.proxytool.Text));
                Thread.Sleep(10);
                bool @checked = false;
                base.Invoke(new MethodInvoker(() => @checked = this.sameVip.Checked));
                if (@checked)
                {
                    vip72Chung = new Vip72Chung();
                }
                else
                {
                    vip72Chung = new Vip72();
                }

                if (text == "Lumi")
                {
                    try
                    {
                        vip72Chung.clearIpWithPort((int)this.numericUpDown1.Value);
                        sshcommand.closebitvise((int)this.numericUpDown1.Value);
                        //Lumi.closeLuminatio((int)this.numericUpDown1.Value);
                        if (!this.bitproc.HasExited)
                        {
                            this.bitproc.Kill();
                        }
                    }
                    catch (Exception exception)
                    {
                    }

                    this.label1.Invoke(new MethodInvoker(() => this.label1.Text = "Checking Luminatio Account..."));
                    string str = "";
                    this.label1.Invoke(new MethodInvoker(() => str = this.comboBox5.Text));

                    this.label1.Invoke(new MethodInvoker(() =>
                                                         this.label1.Text = "Fake IP over CCProxy for country=" + str));

                    yellow_lumi = this.listlumiacc.FirstOrDefault <luminatio_account>((luminatio_account x) => !x.bad);


                    if (yellow_lumi != null)
                    {
                        this.listViewQuan3.Invoke(new MethodInvoker(() =>
                        {
                            this.listViewQuan3.Items[this.listlumiacc.IndexOf(yellow_lumi)].BackColor = Color.Yellow;
                            this.listViewQuan3.Refresh();
                        }));

                        if (!(Lumi.fake_proxy_lumi(str, this.numericUpDown1.Value.ToString(), yellow_lumi.zone, yellow_lumi.password, yellow_lumi.username)))

                        {
                            yellow_lumi.bad = true;
                            this.listViewQuan3.Invoke(new MethodInvoker(() =>
                            {
                                this.listViewQuan3.Items[this.listlumiacc.IndexOf(yellow_lumi)].BackColor = Color.Red;
                                this.listViewQuan3.Refresh();
                            }));
                            this.savelumi();
                            goto Label2;
                        }

                        this.listViewQuan3.Invoke(new MethodInvoker(() =>
                        {
                            this.listViewQuan3.Items[this.listlumiacc.IndexOf(yellow_lumi)].BackColor = Color.Lime;
                            this.listViewQuan3.Refresh();
                        }));

                        obj        = this.label1.Invoke(new MethodInvoker(() => this.label1.Text = "IP changed..." + Lumi.getCurrentLumiIPVer2(this.ipAddressControl1.Text, this.numericUpDown1.Value)));
                        obj1       = this.button20.Invoke(new MethodInvoker(() => this.button20.Enabled = true));
                        this.curip = Lumi.getCurrentLumiIPVer2(this.ipAddressControl1.Text, this.numericUpDown1.Value);
                        this.savelumi();
                        return;
                    }
                    else
                    {
                        MessageBox.Show("There is no account, Please add other Lumi account to use",
                                        Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                        this.label1.Invoke(new MethodInvoker(() => this.label1.Text = "Lumi account is out"));
                        this.button7.Invoke(new MethodInvoker(() =>
                        {
                            if (this.button7.Text == "STOP")
                            {
                                this.button7_Click(null, null);
                            }

                            if (this.button19.Text == "STOP")
                            {
                                this.button19_Click(null, null);
                            }
                        }));
                        this.button20.Invoke(new MethodInvoker(() => this.button20.Enabled = true));
                        return;
                    }
                }
                else if (text != "SSH")
                {
                    if (text != "Vip72")
                    {
                        break;
                    }

                    try
                    {
                        sshcommand.closebitvise((int)this.numericUpDown1.Value);
                        Lumi.closeLuminatio((int)this.numericUpDown1.Value);
                        if (!this.bitproc.HasExited)
                        {
                            this.bitproc.Kill();
                        }
                    }
                    catch (Exception exception)
                    {
                    }

                    this.label1.Invoke(new MethodInvoker(() => this.label1.Text = "Đang đợi Để sử dụng Vip72..."));
                    vip72Chung.waitiotherVIP72();
                    this.label1.Invoke(new MethodInvoker(() => this.label1.Text = "Getting Vip72 IP..."));
                    yellow = this.listvipacc.FirstOrDefault <vipaccount>((vipaccount x) => !x.limited);
                    if (yellow != null)
                    {
                        int num1 = 0;
                        this.listView3.Invoke(new MethodInvoker(() =>
                        {
                            this.listView3.Items[this.listvipacc.IndexOf(yellow)].BackColor = Color.Yellow;
                            this.listView3.Refresh();
                        }));
                        while (true)
                        {
                            if (!(dynamic)(!vip72Chung.vip72login(yellow.username, yellow.password,
                                                                  (int)this.numericUpDown1.Value)))
                            {
                                break;
                            }

                            num1++;
                            if (num1 > 0)
                            {
                                goto Label3;
                            }
                        }

                        this.listView3.Invoke(new MethodInvoker(() =>
                        {
                            this.listView3.Items[this.listvipacc.IndexOf(yellow)].BackColor = Color.Lime;
                            this.listView3.Refresh();
                        }));
                        while (true)
                        {
                            string str = "";
                            this.label1.Invoke(new MethodInvoker(() => str = this.comboBox5.Text));
                            if (!vip72Chung.getip(this.listcountrycode
                                                  .FirstOrDefault <countrycode>((countrycode x) => x.country == str).code))
                            {
                                break;
                            }

                            this.label1.Invoke(new MethodInvoker(() => { }));
                            string value = (string)vip72Chung.clickip((int)this.numericUpDown1.Value);
                            string str1  = value;
                            if (str1 == "not running")
                            {
                                goto Label2;
                            }
                            else if (str1 != "no IP")
                            {
                                if (str1 != "dead")
                                {
                                    if (str1 == "limited")
                                    {
                                        this.listView3.Invoke(new MethodInvoker(() =>
                                        {
                                            this.listView3.Items[this.listvipacc.IndexOf(yellow)].BackColor = Color.Red;
                                            this.listView3.Refresh();
                                        }));
                                        yellow.limited = true;
                                        goto Label2;
                                    }
                                    else if (str1 == "maximum")
                                    {
                                        vip72Chung.clearip();
                                    }
                                    else if (str1 == "timeout")
                                    {
                                        goto Label2;
                                    }
                                    else
                                    {
                                        this.curip = value;
                                        break;
                                    }
                                }
                            }
                        }

                        break;
                    }
                    else if (this.listvipacc.Count != 0)
                    {
                        foreach (vipaccount _vipaccount in this.listvipacc)
                        {
                            _vipaccount.limited = false;
                        }

                        this.button10.Invoke(new MethodInvoker(() => this.button20.Enabled = true));
                        return;
                    }
                    else
                    {
                        MessageBox.Show("There is no account, Please add other Vip72 account to use",
                                        Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                        this.label1.Invoke(new MethodInvoker(() => this.label1.Text = "Vip72 account is out"));
                        this.button7.Invoke(new MethodInvoker(() =>
                        {
                            if (this.button7.Text == "STOP")
                            {
                                this.button7_Click(null, null);
                            }

                            if (this.button19.Text == "STOP")
                            {
                                this.button19_Click(null, null);
                            }
                        }));
                        this.button20.Invoke(new MethodInvoker(() => this.button20.Enabled = true));
                        return;
                    }
                }
                else
                {
                    vip72Chung.clearIpWithPort((int)this.numericUpDown1.Value);
                    sshcommand.closebitvise((int)this.numericUpDown1.Value);
                    Lumi.closeLuminatio((int)this.numericUpDown1.Value);
                    try
                    {
                        if (!this.bitproc.HasExited)
                        {
                            this.bitproc.Kill();
                        }
                    }
                    catch (Exception exception1)
                    {
                    }

                    while (true)
                    {
                        string text1 = "";
                        this.label1.Invoke(new MethodInvoker(() =>
                        {
                            text1            = this.comboBox5.Text;
                            this.label1.Text = "Checking SSH....";
                        }));
                        ssh aqua = this.listssh.FirstOrDefault <ssh>((ssh x) =>
                                                                     (!(x.live != "dead") || x.used ? false : x.country == text1));
                        if (aqua == null)
                        {
                            MessageBox.Show("All SSH are used or dead, please update new SSH list!",
                                            Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                            this.label1.Invoke(new MethodInvoker(() => this.label1.Text = "SSH is out!"));
                            this.button7.Invoke(new MethodInvoker(() =>
                            {
                                if (this.button7.Text == "STOP")
                                {
                                    this.button7_Click(null, null);
                                }

                                if (this.button19.Text == "STOP")
                                {
                                    this.button19_Click(null, null);
                                }
                            }));
                            this.button20.Invoke(new MethodInvoker(() => this.button20.Enabled = true));
                            return;
                        }

                        Random random = new Random();
                        int    num2   = random.Next(0, this.listssh.Count);
                        while (true)
                        {
                            if ((this.listssh.ElementAt <ssh>(num2).live == "dead" ||
                                 this.listssh.ElementAt <ssh>(num2).used
                                ? false
                                : this.listssh.ElementAt <ssh>(num2).country == text1))
                            {
                                break;
                            }

                            num2 = random.Next(0, this.listssh.Count);
                        }

                        aqua      = this.listssh.ElementAt <ssh>(num2);
                        aqua.used = true;
                        this.listView2.Invoke(new MethodInvoker(() =>
                        {
                            this.listView2.Items[this.listssh.IndexOf(aqua)].BackColor = Color.Aqua;
                            this.listView2.Refresh();
                            this.savessh();
                            this.ssh_uncheck.Invoke(new MethodInvoker(() =>
                            {
                                Label sshUncheck = this.ssh_uncheck;
                                int num          = this.listssh.Count <ssh>((ssh x) => x.live == "uncheck");
                                sshUncheck.Text  = string.Concat("Uncheck:", num.ToString());
                                Label sshUsed    = this.ssh_used;
                                num           = this.listssh.Count <ssh>((ssh x) => x.used);
                                sshUsed.Text  = string.Concat("Used:", num.ToString());
                                Label sshLive = this.ssh_live;
                                num           = this.listssh.Count <ssh>((ssh x) => x.live == "alive");
                                sshLive.Text  = string.Concat("Live:", num.ToString());
                                Label ssDead  = this.ss_dead;
                                num           = this.listssh.Count <ssh>((ssh x) => x.live == "dead");
                                ssDead.Text   = string.Concat("Dead:", num.ToString());
                            }));
                        }));
                        this.curip = aqua.IP;
                        if (sshcommand.SetSSH(aqua.IP, aqua.username, aqua.password, this.ipAddressControl1.Text,
                                              this.numericUpDown1.Value.ToString(), ref this.bitproc))
                        {
                            break;
                        }

                        aqua.live = "dead";
                        this.listView2.Invoke(new MethodInvoker(() =>
                        {
                            this.listView2.Items[this.listssh.IndexOf(aqua)].BackColor = Color.Red;
                            this.listView2.Refresh();
                            this.savessh();
                            this.ssh_uncheck.Invoke(new MethodInvoker(() =>
                            {
                                Label sshUncheck = this.ssh_uncheck;
                                int num          = this.listssh.Count <ssh>((ssh x) => x.live == "uncheck");
                                sshUncheck.Text  = string.Concat("Uncheck:", num.ToString());
                                Label sshUsed    = this.ssh_used;
                                num           = this.listssh.Count <ssh>((ssh x) => x.used);
                                sshUsed.Text  = string.Concat("Used:", num.ToString());
                                Label sshLive = this.ssh_live;
                                num           = this.listssh.Count <ssh>((ssh x) => x.live == "alive");
                                sshLive.Text  = string.Concat("Live:", num.ToString());
                                Label ssDead  = this.ss_dead;
                                num           = this.listssh.Count <ssh>((ssh x) => x.live == "dead");
                                ssDead.Text   = string.Concat("Dead:", num.ToString());
                            }));
                        }));
                    }

                    obj  = this.label1.Invoke(new MethodInvoker(() => this.label1.Text = "IP changed..."));
                    obj1 = this.button20.Invoke(new MethodInvoker(() => this.button20.Enabled = true));
                    return;
                }
            }

            if (text == "SSHServer")
            {
                bool   flag = false;
                string str2 = "";
                vip72Chung.clearIpWithPort((int)this.numericUpDown1.Value);
                sshcommand.closebitvise((int)this.numericUpDown1.Value);
                Lumi.closeLuminatio((int)this.numericUpDown1.Value);
                while (true)
                {
                    while (true)
                    {
                        Label         label          = this.label1;
                        MethodInvoker methodInvoker1 = methodInvoker;
                        if (methodInvoker1 == null)
                        {
                            MethodInvoker text2 = () =>
                            {
                                this.label1.Text = "Getting SSH from the server...";
                                //this.checktrung = this.checkBox18.Checked;
                                //this.offer_id = this.textBox11.Text;
                            };
                            MethodInvoker methodInvoker2 = text2;
                            methodInvoker  = text2;
                            methodInvoker1 = methodInvoker2;
                        }

                        label.Invoke(methodInvoker1);
                        string text3 = "";
                        this.label1.Invoke(new MethodInvoker(() => text3 = this.comboBox5.Text));
                        string str3 = string.Concat(this.sshserverurl, "/Home/getssh?country=", text3);
                        if (flag)
                        {
                            str3 = string.Concat(str3, "&offerID=", str2);
                        }

                        HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(str3);
                        httpWebRequest.UserAgent = "autoleadios";
                        try
                        {
                            StreamReader streamReader =
                                new StreamReader(httpWebRequest.GetResponse().GetResponseStream());
                            string end = streamReader.ReadToEnd();
                            if (end != "hetssh")
                            {
                                string[] strArrays = end.Split(new string[] { "|" }, StringSplitOptions.None);
                                if (strArrays.Count <string>() >= 4)
                                {
                                    this.curip = strArrays[1];
                                    if (!sshcommand.SetSSH(strArrays[1], strArrays[2], strArrays[3],
                                                           this.ipAddressControl1.Text, this.numericUpDown1.Value.ToString(),
                                                           ref this.bitproc))
                                    {
                                        string str4 = string.Concat(this.sshserverurl, "/Home/xoassh?ID=",
                                                                    strArrays[0]);
                                        HttpWebRequest httpWebRequest1 = (HttpWebRequest)WebRequest.Create(str4);
                                        httpWebRequest1.UserAgent = "autoleadios";
                                        try
                                        {
                                            StreamReader streamReader1 =
                                                new StreamReader(httpWebRequest1.GetResponse().GetResponseStream());
                                            streamReader.ReadToEnd();
                                        }
                                        catch (Exception exception2)
                                        {
                                        }

                                        break;
                                    }
                                    else
                                    {
                                        goto Label5;
                                    }
                                }
                            }
                            else
                            {
                                base.Invoke(new MethodInvoker(() =>
                                                              this.label1.Text = "SSh trên server đã hết, đang đợi ssh mới ..."));
                                for (int i = 0; i < 10; i++)
                                {
                                    Thread.Sleep(1000);
                                    base.Invoke(new MethodInvoker(() =>
                                                                  this.label1.Text = string.Concat("Đợi để lấy SSH trên server trong ",
                                                                                                   (10 - i).ToString(), " giây")));
                                }
                            }
                        }
                        catch (Exception exception3)
                        {
                            break;
                        }
                    }
                }

Label5:
                this.label1.Text = "SSh trên server đã hết, đang đợi ssh mới ...";
            }

            obj  = this.label1.Invoke(new MethodInvoker(() => this.label1.Text = "IP changed..."));
            obj1 = this.button20.Invoke(new MethodInvoker(() => this.button20.Enabled = true));
            return;

Label3:
            yellow.limited = true;
            this.listView3.Invoke(new MethodInvoker(() =>
            {
                this.listView3.Items[this.listvipacc.IndexOf(this.vipacc)].BackColor = Color.Red;
                this.listView3.Refresh();
            }));
            //goto Label2;
            MessageBox.Show("No Lable2 to goto line 10572!", Application.ProductName, MessageBoxButtons.OK,
                            MessageBoxIcon.Hand);
        }
Ejemplo n.º 29
0
        private void autoRRS()
        {
            dynamic vip72Chung;
            //Form1.DisplayClass156_5 variable;
            MethodInvoker     methodInvoker = null;
            vipaccount        yellow;
            luminatio_account yellow_lumi;
            bool   @checked = false;
            Random random2  = new Random();

            List <backup> .Enumerator enumerator = this.listbackup.GetEnumerator();
            try
            {
                while (enumerator.MoveNext())
                {
                    backup       current      = enumerator.Current;
                    bool         flag         = false;
                    backup       _backup      = current;
                    ListViewItem listViewItem = null;
                    this.listView4.Invoke(new MethodInvoker(() =>
                    {
                        foreach (ListViewItem item in this.listView4.Items)
                        {
                            if (item.SubItems[7].Text == current.filename)
                            {
                                listViewItem = item;
                                break;
                            }
                        }

                        flag = listViewItem.Checked;
                    }));
                    if ((!flag ? false : listViewItem != null))
                    {
                        base.Invoke(new MethodInvoker(() =>
                        {
                            //this.currentlistview.BackColor = Color.Yellow;
                            this.listView4.Refresh();
                        }));
                        string str = "";
                        List <string> .Enumerator enumerator1 = current.appList.GetEnumerator();
                        try
                        {
                            while (enumerator1.MoveNext())
                            {
                                str = string.Concat(str, enumerator1.Current);
                                str = string.Concat(str, ";");
                            }
                        }
                        finally
                        {
                            ((IDisposable)enumerator1).Dispose();
                        }

                        this.cmdResult.wipe = false;
                        this.cmd.close("all");
                        bool flag1 = false;
                        this.checkBox2.Invoke(new MethodInvoker(() =>
                        {
                            this.label1.Text = "Wiping Application data...";
                            if (this.checkBox2.Checked)
                            {
                                flag1 = true;
                            }
                        }));
                        this.cmd.faketype(this.getrandomdevice());
                        if (this.fakeversion.Checked)
                        {
                            if ((this.checkBox14.Checked ? true : this.checkBox15.Checked))
                            {
                                string str1 = "";
                                if ((!this.checkBox14.Checked ? true : !this.checkBox15.Checked))
                                {
                                    str1 = (!this.checkBox14.Checked ? "9" : "8");
                                }
                                else
                                {
                                    int num1 = (new Random()).Next(8, 10);
                                    str1 = num1.ToString();
                                }

                                this.cmd.fakeversion(str1);
                            }
                        }

                        this.cmd.randominfo();
                        if (!flag1)
                        {
                            this.cmd.wipe(str);
                        }
                        else
                        {
                            this.cmd.wipefull(str);
                        }

                        DateTime now = DateTime.Now;
                        this.button2.Invoke(new MethodInvoker(() => this.maxwait = (int)this.numericUpDown10.Value));
                        while (!this.cmdResult.wipe)
                        {
                            Thread.Sleep(500);
                            if ((DateTime.Now - now).TotalSeconds <= (double)this.maxwait)
                            {
                                this.cmd.checkwipe();
                            }
                            else
                            {
                                this.button2.Invoke(new MethodInvoker(() =>
                                {
                                    if (this.button2.Text == "Disconnect")
                                    {
                                        this.button2_Click(null, null);
                                    }
                                }));
                                return;
                            }
                        }

                        while (true)
                        {
Label3:
                            string text = "SSH";
                            this.proxytool.Invoke(new MethodInvoker(() => text = this.proxytool.Text));
                            Thread.Sleep(10);
                            if (text != "Direct")
                            {
                            }

                            bool checked1 = false;
                            base.Invoke(new MethodInvoker(() => checked1 = this.sameVip.Checked));
                            if (checked1)
                            {
                                vip72Chung = new Vip72Chung();
                            }
                            else
                            {
                                vip72Chung = new Vip72();
                            }

                            vip72Chung.waitiotherVIP72();

                            if (text == "Lumi")
                            {
                                try
                                {
                                    vip72Chung.clearIpWithPort((int)this.numericUpDown1.Value);
                                    sshcommand.closebitvise((int)this.numericUpDown1.Value);
                                    //Lumi.closeLuminatio((int)this.numericUpDown1.Value);
                                    if (!this.bitproc.HasExited)
                                    {
                                        this.bitproc.Kill();
                                    }
                                }
                                catch (Exception exception)
                                {
                                }

                                while (true)
                                {
                                    this.label1.Invoke(new MethodInvoker(() => this.label1.Text = "Checking Luminatio Account..."));
                                    string str11 = "";
                                    this.label1.Invoke(new MethodInvoker(() => str = this.comboBox5.Text));

                                    this.label1.Invoke(new MethodInvoker(() =>
                                                                         this.label1.Text = "Fake IP over CCProxy for country=" + str11));

                                    yellow_lumi = this.listlumiacc.FirstOrDefault <luminatio_account>((luminatio_account x) => !x.bad);


                                    if (yellow_lumi != null)
                                    {
                                        this.listViewQuan3.Invoke(new MethodInvoker(() =>
                                        {
                                            this.listViewQuan3.Items[this.listlumiacc.IndexOf(yellow_lumi)].BackColor = Color.Yellow;
                                            this.listViewQuan3.Refresh();
                                        }));

                                        if (!(Lumi.fake_proxy_lumi(str11, this.numericUpDown1.Value.ToString(), yellow_lumi.zone, yellow_lumi.password, yellow_lumi.username)))

                                        {
                                            yellow_lumi.bad = true;
                                            this.listViewQuan3.Invoke(new MethodInvoker(() =>
                                            {
                                                this.listViewQuan3.Items[this.listlumiacc.IndexOf(yellow_lumi)].BackColor = Color.Red;
                                                this.listViewQuan3.Refresh();
                                            }));
                                            this.savelumi();
                                        }
                                        else
                                        {
                                            this.listViewQuan3.Invoke(new MethodInvoker(() =>
                                            {
                                                this.listViewQuan3.Items[this.listlumiacc.IndexOf(yellow_lumi)].BackColor = Color.Lime;
                                                this.listViewQuan3.Refresh();
                                            }));

                                            this.label1.Invoke(new MethodInvoker(() => this.label1.Text        = "IP changed..." + Lumi.getCurrentLumiIPVer2(this.ipAddressControl1.Text, this.numericUpDown1.Value)));
                                            this.button20.Invoke(new MethodInvoker(() => this.button20.Enabled = true));
                                            this.curip = Lumi.getCurrentLumiIPVer2(this.ipAddressControl1.Text, this.numericUpDown1.Value);
                                            this.savelumi();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        MessageBox.Show("There is no account, Please add other Lumi account to use",
                                                        Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                                        this.label1.Invoke(new MethodInvoker(() => this.label1.Text = "Lumi account is out"));
                                        this.button7.Invoke(new MethodInvoker(() =>
                                        {
                                            if (this.button7.Text == "STOP")
                                            {
                                                this.button7_Click(null, null);
                                            }

                                            if (this.button19.Text == "STOP")
                                            {
                                                this.button19_Click(null, null);
                                            }
                                        }));
                                    }
                                }

                                goto Label2;
                            }
                            else if (text == "SSH")
                            {
                                vip72Chung.clearIpWithPort((int)this.numericUpDown1.Value);
                                sshcommand.closebitvise((int)this.numericUpDown1.Value);
                                Lumi.closeLuminatio((int)this.numericUpDown1.Value);
                                try
                                {
                                    if (!this.bitproc.HasExited)
                                    {
                                        this.bitproc.Kill();
                                    }
                                }
                                catch (Exception exception)
                                {
                                }

                                while (true)
                                {
                                    string text1 = "";
                                    this.label1.Invoke(new MethodInvoker(() =>
                                    {
                                        text1            = this.comboBox5.Text;
                                        this.label1.Text = "Checking SSH....";
                                    }));
                                    ssh red = this.listssh.FirstOrDefault <ssh>((ssh x) =>
                                                                                (!(x.live != "dead") || x.used ? false : x.country == text1));
                                    @checked = false;
                                    this.label1.Invoke(new MethodInvoker(() => @checked = this.checkBox17.Checked));
                                    if (red == null)
                                    {
                                        goto Label6;
                                    }

                                    Random random3 = new Random();
                                    int    aqua    = random3.Next(0, this.listssh.Count);
                                    while (true)
                                    {
                                        if ((this.listssh.ElementAt <ssh>(aqua).live == "dead" ||
                                             this.listssh.ElementAt <ssh>(aqua).used
                                            ? false
                                            : this.listssh.ElementAt <ssh>(aqua).country == text1))
                                        {
                                            break;
                                        }

                                        aqua = random3.Next(0, this.listssh.Count);
                                    }

                                    red        = this.listssh.ElementAt <ssh>(aqua);
                                    red.used   = true;
                                    this.curip = red.IP;
                                    this.listView2.Invoke(new MethodInvoker(() =>
                                    {
                                        this.listView2.Items[aqua].BackColor = Color.Aqua;
                                        this.listView2.Refresh();
                                        this.savessh();
                                        this.ssh_uncheck.Invoke(new MethodInvoker(() =>
                                        {
                                            Label sshUncheck = this.ssh_uncheck;
                                            int num          = this.listssh.Count <ssh>((ssh x) => x.live == "uncheck");
                                            sshUncheck.Text  = string.Concat("Uncheck:", num.ToString());
                                            Label sshUsed    = this.ssh_used;
                                            num           = this.listssh.Count <ssh>((ssh x) => x.used);
                                            sshUsed.Text  = string.Concat("Used:", num.ToString());
                                            Label sshLive = this.ssh_live;
                                            num           = this.listssh.Count <ssh>((ssh x) => x.live == "alive");
                                            sshLive.Text  = string.Concat("Live:", num.ToString());
                                            Label ssDead  = this.ss_dead;
                                            num           = this.listssh.Count <ssh>((ssh x) => x.live == "dead");
                                            ssDead.Text   = string.Concat("Dead:", num.ToString());
                                        }));
                                    }));
                                    this.curip = red.IP;
                                    if (sshcommand.SetSSH(red.IP, red.username, red.password,
                                                          this.ipAddressControl1.Text, this.numericUpDown1.Value.ToString(),
                                                          ref this.bitproc))
                                    {
                                        break;
                                    }

                                    red.live = "dead";
                                    this.listView2.Invoke(new MethodInvoker(() =>
                                    {
                                        this.listView2.Items[this.listssh.IndexOf(red)].BackColor = Color.Red;
                                        this.listView2.Refresh();
                                        this.savessh();
                                        this.ssh_uncheck.Invoke(new MethodInvoker(() =>
                                        {
                                            Label sshUncheck = this.ssh_uncheck;
                                            int num          = this.listssh.Count <ssh>((ssh x) => x.live == "uncheck");
                                            sshUncheck.Text  = string.Concat("Uncheck:", num.ToString());
                                            Label sshUsed    = this.ssh_used;
                                            num           = this.listssh.Count <ssh>((ssh x) => x.used);
                                            sshUsed.Text  = string.Concat("Used:", num.ToString());
                                            Label sshLive = this.ssh_live;
                                            num           = this.listssh.Count <ssh>((ssh x) => x.live == "alive");
                                            sshLive.Text  = string.Concat("Live:", num.ToString());
                                            Label ssDead  = this.ss_dead;
                                            num           = this.listssh.Count <ssh>((ssh x) => x.live == "dead");
                                            ssDead.Text   = string.Concat("Dead:", num.ToString());
                                        }));
                                    }));
                                }

                                goto Label2;
                            }
                            else if (text != "Vip72")
                            {
                                if (text == "SSHServer")
                                {
                                    bool   flag2 = false;
                                    string str2  = "";
                                    vip72Chung.clearIpWithPort((int)this.numericUpDown1.Value);
                                    sshcommand.closebitvise((int)this.numericUpDown1.Value);
                                    Lumi.closeLuminatio((int)this.numericUpDown1.Value);
                                    while (true)
                                    {
                                        while (true)
                                        {
                                            Label         label          = this.label1;
                                            MethodInvoker methodInvoker1 = methodInvoker;
                                            if (methodInvoker1 == null)
                                            {
                                                MethodInvoker text2 = () =>
                                                {
                                                    this.label1.Text = "Getting SSH from the server...";
                                                    //this.checktrung = this.checkBox18.Checked;
                                                    //this.offer_id = this.textBox11.Text;
                                                };
                                                MethodInvoker methodInvoker2 = text2;
                                                methodInvoker  = text2;
                                                methodInvoker1 = methodInvoker2;
                                            }

                                            label.Invoke(methodInvoker1);
                                            string text3 = "";
                                            this.label1.Invoke(new MethodInvoker(() => text3 = this.comboBox5.Text));
                                            string str3 = string.Concat(this.sshserverurl, "/Home/getssh?country=",
                                                                        text3);
                                            if (flag2)
                                            {
                                                str3 = string.Concat(str3, "&offerID=", str2);
                                            }

                                            HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(str3);
                                            httpWebRequest.UserAgent = "autoleadios";
                                            try
                                            {
                                                StreamReader streamReader =
                                                    new StreamReader(httpWebRequest.GetResponse().GetResponseStream());
                                                string end = streamReader.ReadToEnd();
                                                if (end != "hetssh")
                                                {
                                                    string[] strArrays1 = end.Split(new string[] { "|" },
                                                                                    StringSplitOptions.None);
                                                    if (strArrays1.Count <string>() >= 4)
                                                    {
                                                        this.curip = strArrays1[1];
                                                        if (!sshcommand.SetSSH(strArrays1[1], strArrays1[2],
                                                                               strArrays1[3], this.ipAddressControl1.Text,
                                                                               this.numericUpDown1.Value.ToString(), ref this.bitproc))
                                                        {
                                                            string str4 = string.Concat(this.sshserverurl,
                                                                                        "/Home/xoassh?ID=", strArrays1[0]);
                                                            HttpWebRequest httpWebRequest1 =
                                                                (HttpWebRequest)WebRequest.Create(str4);
                                                            httpWebRequest1.UserAgent = "autoleadios";
                                                            try
                                                            {
                                                                StreamReader streamReader1 =
                                                                    new StreamReader(httpWebRequest1.GetResponse()
                                                                                     .GetResponseStream());
                                                                streamReader.ReadToEnd();
                                                            }
                                                            catch (Exception exception1)
                                                            {
                                                            }

                                                            break;
                                                        }
                                                        else
                                                        {
                                                            goto Label4;
                                                        }
                                                    }
                                                }
                                                else
                                                {
                                                    base.Invoke(new MethodInvoker(() =>
                                                                                  this.label1.Text =
                                                                                      "SSh trên server đã hết, đang đợi ssh mới ..."));
                                                    for (int i = 0; i < 10; i++)
                                                    {
                                                        Thread.Sleep(1000);
                                                        base.Invoke(new MethodInvoker(() =>
                                                                                      this.label1.Text =
                                                                                          string.Concat("Đợi để lấy SSH trên server trong ",
                                                                                                        (10 - i).ToString(), " giây")));
                                                    }
                                                }
                                            }
                                            catch (Exception exception2)
                                            {
                                                break;
                                            }
                                        }
                                    }

Label4:
                                    this.label1.Text = "Nothing in label 4....";
                                }

                                break;
                            }
                            else
                            {
                                try
                                {
                                    sshcommand.closebitvise((int)this.numericUpDown1.Value);
                                    Lumi.closeLuminatio((int)this.numericUpDown1.Value);
                                    if (!this.bitproc.HasExited)
                                    {
                                        this.bitproc.Kill();
                                    }
                                }
                                catch (Exception exception3)
                                {
                                }

                                this.label1.Invoke(new MethodInvoker(() =>
                                                                     this.label1.Text = "Đang đợi Để sử dụng Vip72..."));
                                vip72Chung.waitiotherVIP72();
                                this.label1.Invoke(new MethodInvoker(() => this.label1.Text = "Getting Vip72 IP..."));
                                yellow = this.listvipacc.FirstOrDefault <vipaccount>((vipaccount x) => !x.limited);
                                if (yellow != null)
                                {
                                    int num2 = 0;
                                    this.listView3.Invoke(new MethodInvoker(() =>
                                    {
                                        this.listView3.Items[this.listvipacc.IndexOf(yellow)].BackColor = Color.Yellow;
                                        this.listView3.Refresh();
                                    }));
                                    while (true)
                                    {
                                        if (!(dynamic)(!vip72Chung.vip72login(yellow.username, yellow.password,
                                                                              (int)this.numericUpDown1.Value)))
                                        {
                                            break;
                                        }

                                        num2++;
                                        if (num2 > 0)
                                        {
                                            goto Label5;
                                        }
                                    }

                                    this.listView3.Invoke(new MethodInvoker(() =>
                                    {
                                        this.listView3.Items[this.listvipacc.IndexOf(yellow)].BackColor = Color.Lime;
                                        this.listView3.Refresh();
                                    }));
                                    while (true)
                                    {
                                        string text4 = "";
                                        this.label1.Invoke(new MethodInvoker(() => text4 = this.comboBox5.Text));
                                        if (!vip72Chung.getip(this.listcountrycode
                                                              .FirstOrDefault <countrycode>((countrycode x) => x.country == text4).code))
                                        {
                                            break;
                                        }

                                        this.label1.Invoke(new MethodInvoker(() => { }));
                                        string value = (string)vip72Chung.clickip((int)this.numericUpDown1.Value);
                                        string str5  = value;
                                        if (str5 == "not running")
                                        {
                                            goto Label3;
                                        }
                                        else if (str5 != "no IP")
                                        {
                                            if (str5 != "dead")
                                            {
                                                if (str5 == "limited")
                                                {
                                                    yellow.limited = true;
                                                    this.listView3.Invoke(new MethodInvoker(() =>
                                                    {
                                                        this.listView3.Items[this.listvipacc.IndexOf(yellow)]
                                                        .BackColor = Color.Red;
                                                        this.listView3.Refresh();
                                                    }));
                                                    goto Label3;
                                                }
                                                else if (str5 == "maximum")
                                                {
                                                    vip72Chung.clearip();
                                                }
                                                else if (str5 == "timeout")
                                                {
                                                    goto Label3;
                                                }
                                                else
                                                {
                                                    this.curip = value;
                                                    break;
                                                }
                                            }
                                        }
                                    }

                                    break;
                                }
                                else if (this.listvipacc.Count != 0)
                                {
                                    List <vipaccount> .Enumerator enumerator2 = this.listvipacc.GetEnumerator();
                                    try
                                    {
                                        while (enumerator2.MoveNext())
                                        {
                                            enumerator2.Current.limited = false;
                                        }
                                    }
                                    finally
                                    {
                                        ((IDisposable)enumerator2).Dispose();
                                    }
                                }
                                else
                                {
                                    MessageBox.Show(
                                        "All vip72 are limited or there is no account, Please add other Vip72 account to use",
                                        Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                                    this.label1.Invoke(
                                        new MethodInvoker(() => this.label1.Text = "Vip72 account is out"));
                                    this.button7.Invoke(new MethodInvoker(() =>
                                    {
                                        if (this.button7.Text == "STOP")
                                        {
                                            this.button7_Click(null, null);
                                        }

                                        if (this.button19.Text == "STOP")
                                        {
                                            this.button19_Click(null, null);
                                        }
                                    }));
                                }
                            }
                        }

Label2:
                        this.button2.Invoke(new MethodInvoker(() =>
                        {
                            if (!this.fakedevice.Checked)
                            {
                                this.cmd.changename("orig");
                            }

                            if ((!this.fakedevice.Checked || !this.checkBox11.Checked
                                ? false
                                : File.Exists(this.fileofname.Text)))
                            {
                                string[] strArrays = File.ReadAllLines(this.fileofname.Text);
                                Random random      = new Random();
                                this.cmd.changename(strArrays[random.Next(0, strArrays.Count <string>())]);
                            }

                            if (this.checkBox20.Checked)
                            {
                                this.fakeLocationByIP(this.curip);
                            }

                            if (this.fakelang.Checked)
                            {
                                this.cmd.changelanguage(this.listlanguagecode
                                                        .FirstOrDefault <languagecode>((languagecode x) => x.langname == this.comboBox1.Text)
                                                        .langcode);
                            }

                            if (this.fakeregion.Checked)
                            {
                                this.cmd.changeregion(this.listcountrycodeiOS
                                                      .FirstOrDefault <countrycodeiOS>((countrycodeiOS x) =>
                                                                                       x.countryname == this.comboBox2.Text).countrycode);
                            }

                            if (!this.checkBox5.Checked)
                            {
                                this.cmd.changetimezone("orig");
                            }
                            else
                            {
                                this.cmd.changetimezone(this.ltimezone.Text);
                            }

                            if (!this.checkBox13.Checked)
                            {
                                this.cmd.changecarrier("orig", "orig", "orig", "orig");
                            }
                            else if (!this.checkBox9.Checked)
                            {
                                Random random1  = new Random();
                                Carrier carrier =
                                    this.carrierList.ElementAt <Carrier>(random1.Next(0, this.carrierList.Count));
                                this.cmd.changecarrier(carrier.CarrierName, carrier.mobileCountryCode,
                                                       carrier.mobileCarrierCode, carrier.ISOCountryCode.ToLower());
                            }
                            else
                            {
                                List <Carrier> list = (
                                    from x in this.carrierList
                                    where x.country == this.carrierBox.Text
                                    select x).ToList <Carrier>();
                                Carrier carrier1 = list.ElementAt <Carrier>((new Random()).Next(0, list.Count));
                                this.cmd.changecarrier(carrier1.CarrierName, carrier1.mobileCountryCode,
                                                       carrier1.mobileCarrierCode, carrier1.ISOCountryCode.ToLower());
                            }

                            if (!this.checkBox19.Checked)
                            {
                                this.cmd.fakeGPS(false);
                            }
                            else
                            {
                                this.cmd.fakeGPS(true, (double)((double)this.latitude.Value),
                                                 (double)((double)this.longtitude.Value));
                            }
                        }));
                        this.label1.Invoke(new MethodInvoker(() => this.label1.Text = "Restoring data...."));
                        this.cmdResult.restore = false;
                        this.cmd.restore(_backup.filename);
                        DateTime dateTime = DateTime.Now;
                        this.button2.Invoke(new MethodInvoker(() => this.maxwait = (int)this.numericUpDown10.Value));
                        while (!this.cmdResult.restore)
                        {
                            Thread.Sleep(500);
                            if ((DateTime.Now - dateTime).TotalSeconds <= (double)this.maxwait)
                            {
                                this.cmd.checkrestore();
                            }
                            else
                            {
                                this.button2.Invoke(new MethodInvoker(() =>
                                {
                                    if (this.button2.Text == "Disconnect")
                                    {
                                        this.button2_Click(null, null);
                                    }
                                }));
                                return;
                            }
                        }

                        Thread.Sleep(1000);
                        this.label1.Invoke(new MethodInvoker(() => this.label1.Text = "Opening application...."));
                        dateTime = DateTime.Now;
                        List <string> .Enumerator enumerator3 = _backup.appList.GetEnumerator();
                        try
                        {
                            while (enumerator3.MoveNext())
                            {
                                string current1 = enumerator3.Current;
                                this.cmdResult.openApp = 0;
                                this.cmd.openApp(current1);
                                while (this.cmdResult.openApp != 0)
                                {
                                    Thread.Sleep(1000);
                                    if ((DateTime.Now - dateTime).TotalSeconds > (double)this.maxwait1)
                                    {
                                        this.button2.Invoke(new MethodInvoker(() =>
                                        {
                                            if (this.button2.Text == "Disconnect")
                                            {
                                                this.button2_Click(null, null);
                                            }
                                        }));
                                        return;
                                    }
                                }

                                int value1 = 20;
                                this.rsswaitnum.Invoke(new MethodInvoker(() => value1 = (int)this.rsswaitnum.Value));
                                for (int j = 0; j < value1; j++)
                                {
                                    Thread.Sleep(1000);
                                    this.label1.Invoke(new MethodInvoker(() =>
                                                                         this.label1.Text = string.Concat("Application will be closed in ",
                                                                                                          (value1 - j - 1).ToString(), " seconds")));
                                }

                                AutoLead.Script script = new AutoLead.Script();
                                this.label1.Invoke(new MethodInvoker(() =>
                                {
                                    if ((!this.checkBox6.Checked ? false : this.comboBox3.SelectedIndex != -1))
                                    {
                                        if (!this.checkBox7.Checked)
                                        {
                                            script = this.listscript.ElementAt <AutoLead.Script>(this.comboBox3
                                                                                                 .SelectedIndex);
                                        }
                                        else
                                        {
                                            List <AutoLead.Script> list = (
                                                from x in this.listscript
                                                where (x.slot == this.comboBox3.SelectedIndex
                                                    ? true
                                                    : this.comboBox3.SelectedIndex == 0)
                                                select x).ToList <AutoLead.Script>();
                                            script = list.ElementAt <AutoLead.Script>(
                                                (new Random()).Next(0, list.Count));
                                        }

                                        this.label1.Text = string.Concat("Running script ", script.scriptname);
                                    }
                                }));
                                this.excuteScript(script.script);
                            }
                        }
                        finally
                        {
                            ((IDisposable)enumerator3).Dispose();
                        }

                        base.Invoke(new MethodInvoker(() =>
                        {
                            this.listView4.SelectedIndices.Clear();
                            //this.currentlistview.Selected = true;
                        }));
                        this.saverrsthread(listViewItem);
                        this.listView4.Invoke(new MethodInvoker(() =>
                        {
                            //this.currentlistview.BackColor = Color.Lime;
                            //this.currentlistview.Checked = false;
                            this.listView4.Refresh();
                        }));
                    }
                }

                this.label1.Invoke(new MethodInvoker(() =>
                {
                    this.label1.Text   = "RRS done.";
                    this.button19.Text = "START";
                    this.button19.Refresh();
                    this.rssenableall();
                    this.enableAll();
                }));
                return;
            }
            finally
            {
                ((IDisposable)enumerator).Dispose();
            }

            return;

Label5:
            yellow.limited = true;
            this.listView3.Invoke(new MethodInvoker(() =>
            {
                this.listView3.Items[this.listvipacc.IndexOf(this.vipacc)].BackColor = Color.Red;
                this.listView3.Refresh();
            }));
            //goto Label3;
            MessageBox.Show("No Lable3 to goto line 2974!", Application.ProductName, MessageBoxButtons.OK,
                            MessageBoxIcon.Hand);

Label6:
            if (@checked)
            {
                this.label1.Invoke(new MethodInvoker(() => this.button24_Click(null, null)));
            }
            else
            {
                MessageBox.Show("All SSH are used or dead, please update new SSH list!", Application.ProductName,
                                MessageBoxButtons.OK, MessageBoxIcon.Hand);
                this.label1.Invoke(new MethodInvoker(() => this.button7_Click(null, null)));
            }

            //goto Label3;
            MessageBox.Show("No Lable3 to goto line 2987!", Application.ProductName, MessageBoxButtons.OK,
                            MessageBoxIcon.Hand);
        }
Ejemplo n.º 30
0
        public static void ControlDoubleClick(IntPtr hwnd)
        {
            int num = 0;

            Vip72.SendMessageTimeout(hwnd, 515, IntPtr.Zero, IntPtr.Zero, 2, 5000, out num);
        }