Exemple #1
0
        public static void ControlClick(IntPtr hwnd)
        {
            int num = 0;

            Vip72Chung.SendMessageTimeout(hwnd, 513, IntPtr.Zero, IntPtr.Zero, 2, 5000, out num);
            Vip72Chung.SendMessageTimeout(hwnd, 514, IntPtr.Zero, IntPtr.Zero, 2, 5000, out num);
        }
Exemple #2
0
        private static bool ControlGetState(IntPtr controlhandle, int state)
        {
            bool flag;

            flag = (((int)Vip72Chung.GetWindowLong(controlhandle, -16) & state) == 0 ? false : true);
            return(flag);
        }
Exemple #3
0
        public static IntPtr ControlGetHandle(string _text, string _class, string _controlClass, int ID)
        {
            IntPtr zero;
            IntPtr intPtr = Vip72Chung.FindWindow(_class, _text);

            if (intPtr != IntPtr.Zero)
            {
                IntPtr zero1      = IntPtr.Zero;
                IntPtr intPtr1    = IntPtr.Zero;
                int    windowLong = -1;
                while (windowLong != ID)
                {
                    intPtr1    = Vip72Chung.FindWindowEx(intPtr, zero1, _controlClass, null);
                    windowLong = (int)Vip72Chung.GetWindowLong(intPtr1, -12);
                    zero1      = intPtr1;
                    if (intPtr1 == IntPtr.Zero)
                    {
                        zero = IntPtr.Zero;
                        return(zero);
                    }
                }
                zero = zero1;
            }
            else
            {
                zero = IntPtr.Zero;
            }
            return(zero);
        }
Exemple #4
0
        // Token: 0x060005D3 RID: 1491 RVA: 0x00034BBC File Offset: 0x00032DBC
        public void clearIpWithPort(int port)
        {
            Process[] processByName = this.GetProcessByName("vip72socks");
            bool      flag          = processByName.Count <Process>() == 0;

            if (!flag)
            {
                uint   id           = (uint)processByName[0].Id;
                IntPtr parentHandle = Vip72Chung.FindWindowInProcess(processByName[0], (string s) => s.StartsWith("VIP72 Socks Client"));
                IntPtr intPtr       = Vip72Chung.ControlGetHandle(parentHandle, "SysListView32", 117);
                int    num          = 0;
                while (ListViewItem1.GetListViewItem(intPtr, id, num, 4) != "")
                {
                    string listViewItem = ListViewItem1.GetListViewItem(intPtr, id, num, 4);
                    bool   flag2        = listViewItem.Contains(port.ToString()) || listViewItem.Contains("main stream");
                    if (flag2)
                    {
                        ListViewItem1.SelectListViewItem(intPtr, id, num);
                        int num2 = 0;
                        Vip72Chung.SendMessageTimeout(intPtr, 256, (IntPtr)46, IntPtr.Zero, 2, 5000, out num2);
                        num--;
                    }
                    num++;
                }
            }
        }
Exemple #5
0
        // Token: 0x060005CA RID: 1482 RVA: 0x00034498 File Offset: 0x00032698
        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 = Vip72Chung.FindWindowEx(parentHandle, intPtr, _controlClass, null);
                    num     = (int)Vip72Chung.GetWindowLong(intPtr2, -16);
                    intPtr  = intPtr2;
                    bool flag2 = intPtr2 == IntPtr.Zero;
                    if (flag2)
                    {
                        return(IntPtr.Zero);
                    }
                }
                result = intPtr;
            }
            return(result);
        }
Exemple #6
0
 // Token: 0x060005D0 RID: 1488 RVA: 0x000346DC File Offset: 0x000328DC
 public void waitiotherVIP72()
 {
     Process[] processesByName = Process.GetProcessesByName("AutoLead");
     for (;;)
     {
         bool flag = true;
         foreach (Process process in processesByName)
         {
             bool flag2 = Process.GetCurrentProcess().Id != process.Id;
             if (flag2)
             {
                 IntPtr parentHandle = Vip72Chung.FindWindowInProcess(process, (string x) => x.StartsWith(""));
                 IntPtr hwnd         = Vip72Chung.ControlGetHandle(parentHandle, "WindowsForms10.STATIC.app.0.141b42a_r12_ad1", 1442840576, true);
                 bool   flag3        = Vip72Chung.ControlGetText(hwnd) == "Getting Vip72 IP...";
                 if (flag3)
                 {
                     flag = false;
                 }
             }
         }
         bool flag4 = flag;
         if (flag4)
         {
             break;
         }
         Thread.Sleep(500);
     }
 }
Exemple #7
0
        // Token: 0x060005CB RID: 1483 RVA: 0x0003451C File Offset: 0x0003271C
        public static IntPtr ControlGetHandle(string _text, string _class, string _controlClass, int ID)
        {
            IntPtr intPtr = Vip72Chung.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 = Vip72Chung.FindWindowEx(intPtr, intPtr2, _controlClass, null);
                    num     = (int)Vip72Chung.GetWindowLong(intPtr3, -12);
                    intPtr2 = intPtr3;
                    bool flag2 = intPtr3 == IntPtr.Zero;
                    if (flag2)
                    {
                        return(IntPtr.Zero);
                    }
                }
                result = intPtr2;
            }
            return(result);
        }
Exemple #8
0
        public void waitiotherVIP72()
        {
            bool flag = true;

            Process[] processesByName = Process.GetProcessesByName("AutoLead");
            while (true)
            {
                flag = true;
                Process[] processArray = processesByName;
                for (int i = 0; i < (int)processArray.Length; i++)
                {
                    Process process = processArray[i];
                    if (Process.GetCurrentProcess().Id != process.Id)
                    {
                        if (Vip72Chung.ControlGetText(Vip72Chung.ControlGetHandle(Vip72Chung.FindWindowInProcess(process, (string x) => x.StartsWith("")), "WindowsForms10.STATIC.app.0.141b42a_r12_ad1", 1442840576, true)) == "Getting Vip72 IP...")
                        {
                            flag = false;
                        }
                    }
                }
                if (flag)
                {
                    break;
                }
                Thread.Sleep(500);
            }
        }
Exemple #9
0
        // Token: 0x06000479 RID: 1145 RVA: 0x00029C50 File Offset: 0x00027E50
        public void clearIpWithPort(int port)
        {
            Process[] processByName = this.GetProcessByName("vip72socks");
            bool      flag          = processByName.Count <Process>() == 0;

            if (!flag)
            {
                uint                id       = (uint)processByName[0].Id;
                Process             arg_4D_0 = processByName[0];
                Func <string, bool> arg_4D_1;
                if ((arg_4D_1 = Vip72Chung.< > c.< > 9__34_0) == null)
                {
                    arg_4D_1 = (Vip72Chung.< > c.< > 9__34_0 = new Func <string, bool>(Vip72Chung.< > c.< > 9. < clearIpWithPort > b__34_0));
                }
                IntPtr parentHandle = Vip72Chung.FindWindowInProcess(arg_4D_0, arg_4D_1);
                IntPtr intPtr       = Vip72Chung.ControlGetHandle(parentHandle, "SysListView32", 117);
                int    num          = 0;
                while (ListViewItem1.GetListViewItem(intPtr, id, num, 4) != "")
                {
                    string listViewItem = ListViewItem1.GetListViewItem(intPtr, id, num, 4);
                    bool   flag2        = listViewItem.Contains(port.ToString()) || listViewItem.Contains("main stream");
                    if (flag2)
                    {
                        ListViewItem1.SelectListViewItem(intPtr, id, num);
                        int num2 = 0;
                        Vip72Chung.SendMessageTimeout(intPtr, 256, (IntPtr)46, IntPtr.Zero, 2, 5000, out num2);
                        num--;
                    }
                    num++;
                }
            }
        }
Exemple #10
0
        // Token: 0x06000478 RID: 1144 RVA: 0x00029B7C File Offset: 0x00027D7C
        public void clearip()
        {
            Process[] processByName = this.GetProcessByName("vip72socks");
            bool      flag          = processByName.Count <Process>() > 0;

            if (flag)
            {
                Process             arg_40_0 = processByName[0];
                Func <string, bool> arg_40_1;
                if ((arg_40_1 = Vip72Chung.< > c.< > 9__33_0) == null)
                {
                    arg_40_1 = (Vip72Chung.< > c.< > 9__33_0 = new Func <string, bool>(Vip72Chung.< > c.< > 9. < clearip > b__33_0));
                }
                IntPtr parentHandle = Vip72Chung.FindWindowInProcess(arg_40_0, arg_40_1);
                IntPtr intPtr       = Vip72Chung.OpenProcess(2035711, false, processByName[0].Id);
                byte[] array        = new byte[]
                {
                    144,
                    144
                };
                IntPtr hWnd = Vip72Chung.ControlGetHandle(parentHandle, "SysListView32", 117);
                for (int i = 0; i < 30; i++)
                {
                    int num = 0;
                    Vip72Chung.SendMessageTimeout(hWnd, 256, (IntPtr)46, IntPtr.Zero, 2, 5000, out num);
                }
            }
        }
Exemple #11
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      = Vip72Chung.FindWindowEx(parentHandle, intPtr, _controlClass, null);
                    windowLong = (int)Vip72Chung.GetWindowLong(zero1, -16);
                    intPtr     = zero1;
                    if (zero1 == IntPtr.Zero)
                    {
                        zero = IntPtr.Zero;
                        return(zero);
                    }
                }
                zero = intPtr;
            }
            else
            {
                zero = IntPtr.Zero;
            }
            return(zero);
        }
Exemple #12
0
        private static bool ControlGetCheck(IntPtr controlhand)
        {
            int num;

            Vip72Chung.SendMessageTimeout(controlhand, 240, IntPtr.Zero, IntPtr.Zero, 2, 5000, out num);
            return(num == 1);
        }
Exemple #13
0
        public static string ControlGetText(IntPtr hwnd)
        {
            StringBuilder stringBuilder = new StringBuilder(255);
            int           num           = 0;

            Vip72Chung.SendMessageTimeout(hwnd, 13, stringBuilder.Capacity, stringBuilder, 2, 5000, out num);
            return(stringBuilder.ToString());
        }
Exemple #14
0
        public static IntPtr FindWindowInProcess(Process process, Func <string, bool> compareTitle)
        {
            IntPtr zero = IntPtr.Zero;

            foreach (ProcessThread thread in process.Threads)
            {
                zero = Vip72Chung.FindWindowInThread(thread.Id, compareTitle);
                if (zero != IntPtr.Zero)
                {
                    break;
                }
            }
            return(zero);
        }
Exemple #15
0
        // Token: 0x06000474 RID: 1140 RVA: 0x000296A0 File Offset: 0x000278A0
        public static IntPtr FindWindowInProcess(Process process, Func <string, bool> compareTitle)
        {
            IntPtr intPtr = IntPtr.Zero;

            foreach (ProcessThread processThread in process.Threads)
            {
                intPtr = Vip72Chung.FindWindowInThread(processThread.Id, compareTitle);
                bool flag = intPtr != IntPtr.Zero;
                if (flag)
                {
                    break;
                }
            }
            return(intPtr);
        }
Exemple #16
0
 public void clearip()
 {
     Process[] processByName = this.GetProcessByName("vip72socks");
     if (processByName.Count <Process>() > 0)
     {
         IntPtr intPtr = Vip72Chung.FindWindowInProcess(processByName[0], (string s) => s.StartsWith("VIP72 Socks Client"));
         Vip72Chung.OpenProcess(2035711, false, processByName[0].Id);
         byte[] numArray = new byte[] { 144, 144 };
         IntPtr intPtr1  = Vip72Chung.ControlGetHandle(intPtr, "SysListView32", 117);
         for (int i = 0; i < 30; i++)
         {
             int num = 0;
             Vip72Chung.SendMessageTimeout(intPtr1, 256, (IntPtr)46, IntPtr.Zero, 2, 5000, out num);
         }
     }
 }
        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);
        }
Exemple #18
0
 public void clearIpWithPort(int port)
 {
     Process[] processByName = this.GetProcessByName("vip72socks");
     if (processByName.Count <Process>() != 0)
     {
         uint   id      = (uint)processByName[0].Id;
         IntPtr intPtr  = Vip72Chung.FindWindowInProcess(processByName[0], (string s) => s.StartsWith("VIP72 Socks Client"));
         IntPtr intPtr1 = Vip72Chung.ControlGetHandle(intPtr, "SysListView32", 117);
         for (int i = 0; ListViewItem1.GetListViewItem(intPtr1, id, i, 4) != ""; i++)
         {
             string listViewItem = ListViewItem1.GetListViewItem(intPtr1, id, i, 4);
             if ((listViewItem.Contains(port.ToString()) ? true : listViewItem.Contains("main stream")))
             {
                 ListViewItem1.SelectListViewItem(intPtr1, id, i);
                 int num = 0;
                 Vip72Chung.SendMessageTimeout(intPtr1, 256, (IntPtr)46, IntPtr.Zero, 2, 5000, out num);
                 i--;
             }
         }
     }
 }
Exemple #19
0
        private static IntPtr FindWindowInThread(int threadId, Func <string, bool> compareTitle)
        {
            IntPtr zero = IntPtr.Zero;

            Vip72Chung.EnumThreadWindows(threadId, (IntPtr hWnd, IntPtr lParam) => {
                bool flag;
                StringBuilder stringBuilder = new StringBuilder(200);
                Vip72Chung.GetWindowText(hWnd, stringBuilder, 200);
                if (!compareTitle(stringBuilder.ToString()))
                {
                    flag = true;
                }
                else
                {
                    zero = hWnd;
                    flag = false;
                }
                return(flag);
            }, IntPtr.Zero);
            return(zero);
        }
Exemple #20
0
        // Token: 0x060005CF RID: 1487 RVA: 0x00034694 File Offset: 0x00032894
        private static IntPtr FindWindowInThread(int threadId, Func <string, bool> compareTitle)
        {
            IntPtr windowHandle = IntPtr.Zero;

            Vip72Chung.EnumThreadWindows(threadId, delegate(IntPtr hWnd, IntPtr lParam)
            {
                StringBuilder stringBuilder = new StringBuilder(200);
                Vip72Chung.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);
        }
Exemple #21
0
 // Token: 0x06000476 RID: 1142 RVA: 0x00029770 File Offset: 0x00027970
 public void waitiotherVIP72()
 {
     Process[] processesByName = Process.GetProcessesByName("AutoLead");
     while (true)
     {
         bool      flag  = true;
         Process[] array = processesByName;
         for (int i = 0; i < array.Length; i++)
         {
             Process process = array[i];
             bool    flag2   = Process.GetCurrentProcess().Id != process.Id;
             if (flag2)
             {
                 Process             arg_61_0 = process;
                 Func <string, bool> arg_61_1;
                 if ((arg_61_1 = Vip72Chung.< > c.< > 9__31_0) == null)
                 {
                     arg_61_1 = (Vip72Chung.< > c.< > 9__31_0 = new Func <string, bool>(Vip72Chung.< > c.< > 9. < waitiotherVIP72 > b__31_0));
                 }
                 IntPtr parentHandle = Vip72Chung.FindWindowInProcess(arg_61_0, arg_61_1);
                 IntPtr hwnd         = Vip72Chung.ControlGetHandle(parentHandle, "WindowsForms10.STATIC.app.0.141b42a_r12_ad1", 1442840576, true);
                 bool   flag3        = Vip72Chung.ControlGetText(hwnd) == "Getting Vip72 IP...";
                 if (flag3)
                 {
                     flag = false;
                 }
             }
         }
         bool flag4 = flag;
         if (flag4)
         {
             break;
         }
         Thread.Sleep(500);
     }
 }
Exemple #22
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);
        }
        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);
        }
Exemple #24
0
        public string clickip(int port)
        {
            string listViewItem;
            int    num  = 4328465;
            int    num1 = 4324611;
            int    num2 = 4324304;
            int    num3 = 4253085;

            Process[] processByName = this.GetProcessByName("vip72socks");
            if (processByName.Count <Process>() != 0)
            {
                IntPtr intPtr  = Vip72Chung.FindWindowInProcess(processByName[0], (string s) => s.StartsWith("VIP72 Socks Client"));
                IntPtr intPtr1 = Vip72Chung.ControlGetHandle(intPtr, "Button", 7817);
                if (Vip72Chung.ControlGetCheck(intPtr1))
                {
                    Vip72Chung.ControlClick(intPtr1);
                }
                IntPtr intPtr2 = Vip72Chung.OpenProcess(2035711, false, processByName[0].Id);
                int    num4    = 0;
                IntPtr zero    = IntPtr.Zero;
                zero = Marshal.AllocHGlobal(4);
                Vip72Chung.ReadProcessMemory(intPtr2, (IntPtr)num, zero, 4, out num4);
                Random random  = new Random();
                uint   id      = (uint)processByName[0].Id;
                IntPtr intPtr3 = Vip72Chung.ControlGetHandle(intPtr, "SysListView32", 117);
                int    num5    = 0;
                while (ListViewItem1.GetListViewItem(intPtr3, id, num5, 4) != "")
                {
                    string str = ListViewItem1.GetListViewItem(intPtr3, id, num5, 4);
                    if ((str.Contains(port.ToString()) ? false : !str.Contains("main stream")))
                    {
                        num5++;
                    }
                    else
                    {
                        ListViewItem1.SelectListViewItem(intPtr3, id, num5);
                        int num6 = 0;
                        Vip72Chung.SendMessageTimeout(intPtr3, 256, (IntPtr)46, IntPtr.Zero, 2, 5000, out num6);
                    }
                }
                int    num7    = -1;
                IntPtr intPtr4 = Vip72Chung.ControlGetHandle(intPtr, "SysListView32", 116);
                while (ListViewItem1.GetListViewItem(intPtr4, id, num5, 0) != "")
                {
                    num5++;
                }
                int num8 = num5;
                if (num8 != 0)
                {
                    num5 = 0;
                    num7 = -1;
                    while (ListViewItem1.GetListViewItem(intPtr4, id, num5, 0) != "")
                    {
                        if (!ListViewItem1.GetListViewItem(intPtr4, id, num5, 0).Contains(".**"))
                        {
                            num5++;
                        }
                        else
                        {
                            num7 = random.Next(0, num8);
                            while (!ListViewItem1.GetListViewItem(intPtr4, id, num7, 0).Contains(".**"))
                            {
                                num7 = random.Next(0, num8);
                            }
                            break;
                        }
                    }
                    if (num7 != -1)
                    {
                        int[] numArray  = new int[] { 472809 };
                        int[] numArray1 = new int[] { port };
                        int[] numArray2 = new int[] { num7 };
                        int   num9      = 0;
                        Vip72Chung.WriteProcessMemory((int)intPtr2, num1, numArray1, 4, ref num9);
                        Vip72Chung.WriteProcessMemory((int)intPtr2, num3, numArray, 4, ref num9);
                        Vip72Chung.WriteProcessMemory((int)intPtr2, num2, numArray2, 4, ref num9);
                        ListViewItem1.SelectListViewItem(intPtr4, id, num7);
                        Vip72Chung.ControlDoubleClick(intPtr4);
                        Thread.Sleep(500);
                        numArray[0] = 21529871;
                        Vip72Chung.WriteProcessMemory((int)intPtr2, num3, numArray, 4, ref num9);
                        IntPtr   intPtr5 = Vip72Chung.ControlGetHandle(intPtr, "Button", 7303);
                        IntPtr   intPtr6 = Vip72Chung.ControlGetHandle(intPtr, "Edit", 131);
                        DateTime now     = DateTime.Now;
                        while (!Vip72Chung.ControlGetCheck(intPtr5))
                        {
                            if (Vip72Chung.ControlGetText(intPtr6).Contains("ffline"))
                            {
                                listViewItem = "dead";
                                return(listViewItem);
                            }
                            else if (Vip72Chung.ControlGetText(intPtr6).Contains("limit"))
                            {
                                try
                                {
                                    if (!processByName[0].HasExited)
                                    {
                                        processByName[0].Kill();
                                    }
                                }
                                catch (Exception exception)
                                {
                                }
                                listViewItem = "limited";
                                return(listViewItem);
                            }
                            else if (Vip72Chung.ControlGetText(intPtr6).Contains("can't"))
                            {
                                listViewItem = "dead";
                                return(listViewItem);
                            }
                            else if (Vip72Chung.ControlGetText(intPtr6).Contains("disconnect"))
                            {
                                listViewItem = "dead";
                                return(listViewItem);
                            }
                            else if (Vip72Chung.ControlGetText(intPtr6).Contains("aximum"))
                            {
                                listViewItem = "maximum";
                                return(listViewItem);
                            }
                            else if ((DateTime.Now - now).TotalSeconds > 15)
                            {
                                listViewItem = "timeout";
                                return(listViewItem);
                            }
                        }
                        Thread.Sleep(500);
                        intPtr3 = Vip72Chung.ControlGetHandle(intPtr, "SysListView32", 117);
                        num5    = 0;
                        while (ListViewItem1.GetListViewItem(intPtr3, id, num5, 4) != "")
                        {
                            if (!ListViewItem1.GetListViewItem(intPtr3, id, num5, 4).Contains(port.ToString()))
                            {
                                num5++;
                            }
                            else
                            {
                                listViewItem = ListViewItem1.GetListViewItem(intPtr3, id, num5, 0);
                                return(listViewItem);
                            }
                        }
                        listViewItem = "limited";
                    }
                    else
                    {
                        listViewItem = "no IP";
                    }
                }
                else
                {
                    listViewItem = "no IP";
                }
            }
            else
            {
                listViewItem = "not running";
            }
            return(listViewItem);
        }
Exemple #25
0
        public bool vip72login(string username, string password, int mainPort)
        {
            bool flag;

            Thread.Sleep(1000);
            Process[] processByName = this.GetProcessByName("vip72socks");
            if (processByName.Count <Process>() > 0)
            {
                if (!processByName[0].Responding)
                {
                    try
                    {
                        if (!processByName[0].HasExited)
                        {
                            processByName[0].Kill();
                        }
                    }
                    catch (Exception exception)
                    {
                    }
                    flag = this.vip72login(username, password, mainPort);
                    return(flag);
                }
            }
            IntPtr zero = IntPtr.Zero;

            if (processByName.Count <Process>() > 0)
            {
                zero = Vip72Chung.FindWindowInProcess(processByName[0], (string s) => s.StartsWith("VIP72 Socks Client"));
            }
            IntPtr intPtr = Vip72Chung.ControlGetHandle(zero, "Button", 119);

            if (intPtr == IntPtr.Zero)
            {
                processByName = this.GetProcessByName("vip72socks");
                if (processByName.Count <Process>() != 0)
                {
                    try
                    {
                        if (!processByName[0].HasExited)
                        {
                            processByName[0].Kill();
                        }
                    }
                    catch (Exception exception1)
                    {
                    }
                }
                ProcessStartInfo processStartInfo = new ProcessStartInfo()
                {
                    FileName         = "vip72socks.exe",
                    WorkingDirectory = string.Concat(AppDomain.CurrentDomain.BaseDirectory, "vip72")
                };
                Process.Start(processStartInfo);
                Thread.Sleep(500);
                flag = (!this.vip72login(username, password, mainPort) ? false : true);
            }
            else
            {
                if (!Vip72Chung.ControlGetState(intPtr, 134217728))
                {
                    IntPtr intPtr1 = Vip72Chung.ControlGetHandle(zero, "Edit", 303);
                    Vip72Chung.ControlSetText(intPtr1, username);
                    IntPtr intPtr2 = Vip72Chung.ControlGetHandle(zero, "Edit", 301);
                    Vip72Chung.ControlSetText(intPtr2, password);
                    Vip72Chung.ControlClick(intPtr);
                    IntPtr   intPtr3 = Vip72Chung.ControlGetHandle(zero, "Edit", 131);
                    DateTime now     = DateTime.Now;
                    while (Vip72Chung.ControlGetText(intPtr3) != "System ready")
                    {
                        if (processByName.Count <Process>() > 0)
                        {
                            processByName = this.GetProcessByName("vip72socks");
                            if (!processByName[0].Responding)
                            {
                                try
                                {
                                    if (!processByName[0].HasExited)
                                    {
                                        processByName[0].Kill();
                                    }
                                }
                                catch (Exception exception2)
                                {
                                }
                                if (!this.vip72login(username, password, mainPort))
                                {
                                    flag = false;
                                    return(flag);
                                }
                                else
                                {
                                    flag = true;
                                    return(flag);
                                }
                            }
                        }
                        if (processByName.Count <Process>() == 0)
                        {
                            flag = false;
                            return(flag);
                        }
                        else if (Vip72Chung.ControlGetText(intPtr3) == "ERROR!Login and Password is incorrect")
                        {
                            flag = false;
                            return(flag);
                        }
                        else if (Vip72Chung.ControlGetState(intPtr, 134217728))
                        {
                            Thread.Sleep(100);
                            if ((DateTime.Now - now).Seconds > 20)
                            {
                                flag = false;
                                return(flag);
                            }
                        }
                        else
                        {
                            flag = false;
                            return(flag);
                        }
                    }
                    Thread.Sleep(3000);
                }
                flag = true;
            }
            return(flag);
        }
Exemple #26
0
        public bool getip(byte countryindex)
        {
            bool flag;

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

            Process[] processByName = this.GetProcessByName("vip72socks");
            Process   process       = new Process();

            if (processByName.Count <Process>() > 0)
            {
                process = processByName[0];
                IntPtr intPtr  = Vip72Chung.FindWindowInProcess(process, (string s) => s.StartsWith("VIP72 Socks Client"));
                IntPtr intPtr1 = Vip72Chung.OpenProcess(2035711, false, process.Id);
                int    num1    = 0;
                Vip72Chung.WriteProcessMemory((int)intPtr1, num, numArray, 1, ref num1);
                numArray1[0] = 0;
                if (File.Exists(string.Concat(AppDomain.CurrentDomain.BaseDirectory, "citycode\\", countryindex.ToString(), ".dat")))
                {
                    string[] strArrays = File.ReadAllLines(string.Concat(AppDomain.CurrentDomain.BaseDirectory, "citycode\\", countryindex.ToString(), ".dat"));
                    Random   random    = new Random();
                    string   str       = strArrays[random.Next(0, strArrays.Count <string>())];
                    int      num2      = Convert.ToInt32(str.Split(new string[] { "|" }, StringSplitOptions.None)[1]);
                    numArray1[0] = num2;
                }
                Vip72Chung.WriteProcessMemory((int)intPtr1, num + 1, numArray1, 4, ref num1);
                IntPtr intPtr2 = Vip72Chung.ControlGetHandle(intPtr, "Button", 127);
                Vip72Chung.ControlClick(intPtr2);
                Vip72Chung.ControlGetHandle(intPtr, "Edit", 131);
                DateTime now = DateTime.Now;
                while (Vip72Chung.ControlGetState(intPtr2, 134217728))
                {
                    Thread.Sleep(100);
                    Process[] processArray = this.GetProcessByName("vip72socks");
                    if (processArray.Count <Process>() == 0)
                    {
                        flag = false;
                        return(flag);
                    }
                    else if ((!processArray[0].Responding ? true : (DateTime.Now - now).TotalSeconds > 30))
                    {
                        try
                        {
                            if (!processArray[0].HasExited)
                            {
                                processArray[0].Kill();
                            }
                        }
                        catch (Exception exception)
                        {
                        }
                        flag = false;
                        return(flag);
                    }
                }
            }
            flag = true;
            return(flag);
        }
Exemple #27
0
 public static int ControlSetText(IntPtr hwnd, string text)
 {
     return(Vip72Chung.SendMessage(hwnd, 12, text.Length, text));
 }
Exemple #28
0
        // Token: 0x060005D4 RID: 1492 RVA: 0x00034CBC File Offset: 0x00032EBC
        public static void getCountrycode()
        {
            int num = 0;

            Process[] processesByName = Process.GetProcessesByName("vip72socks");
            IntPtr    parentHandle    = Vip72Chung.FindWindowInProcess(processesByName[0], (string s) => s.StartsWith("VIP72 Socks Client"));
            uint      id       = (uint)processesByName[0].Id;
            IntPtr    hwnd     = Vip72Chung.ControlGetHandle(parentHandle, "Static", 7811);
            IntPtr    hwnd2    = Vip72Chung.ControlGetHandle(parentHandle, "Static", 7813);
            IntPtr    intPtr   = Vip72Chung.ControlGetHandle(parentHandle, "SysListView32", 7809);
            IntPtr    intPtr2  = Vip72Chung.ControlGetHandle(parentHandle, "SysListView32", 7813);
            int       value    = 4482683;
            IntPtr    hProcess = Vip72Chung.OpenProcess(2035711, false, processesByName[0].Id);
            int       num2     = 0;
            IntPtr    intPtr3  = IntPtr.Zero;

            intPtr3 = Marshal.AllocHGlobal(4);
            IntPtr intPtr4 = IntPtr.Zero;

            intPtr4 = Marshal.AllocHGlobal(4);
            string text = "";

            for (;;)
            {
                Vip72Chung.ControlClick(hwnd);
                string listViewItem = ListViewItem1.GetListViewItem(intPtr, id, num, 0);
                bool   flag         = listViewItem == "";
                if (flag)
                {
                    break;
                }
                ListViewItem1.SelectListViewItem(intPtr, id, num);
                Vip72Chung.ControlDoubleClick(intPtr);
                Thread.Sleep(100);
                Vip72Chung.ReadProcessMemory(hProcess, (IntPtr)value, intPtr3, 1, out num2);
                text = string.Concat(new string[]
                {
                    text,
                    listViewItem,
                    "|",
                    Marshal.ReadByte(intPtr3).ToString(),
                    "\r\n"
                });
                int num3 = 0;
                for (;;)
                {
                    Vip72Chung.ControlClick(hwnd2);
                    while (Vip72Chung.ControlGetText(hwnd2).Contains("loading data from"))
                    {
                        Thread.Sleep(100);
                    }
                    bool   flag2         = Vip72Chung.ControlGetState(intPtr, 268435456);
                    string listViewItem2 = ListViewItem1.GetListViewItem(intPtr, id, num3, 0);
                    ListViewItem1.SelectListViewItem(intPtr, id, num3);
                    bool flag3 = listViewItem2 == "" || !flag2;
                    if (flag3)
                    {
                        break;
                    }
                    Vip72Chung.ControlDoubleClick(intPtr);
                    Thread.Sleep(100);
                    Vip72Chung.ReadProcessMemory(hProcess, (IntPtr)value + 1, intPtr4, 4, out num2);
                    int num4 = Marshal.ReadInt32(intPtr4);
                    File.AppendAllText(AppDomain.CurrentDomain.BaseDirectory + "citycode\\" + listViewItem + ".dat", listViewItem2 + "|" + num4.ToString() + "\r\n");
                    ListViewItem1.SelectListViewItem(intPtr, id, num3);
                    num3++;
                }
                num++;
            }
            File.WriteAllText(AppDomain.CurrentDomain.BaseDirectory + "countrycode1.dat", text);
        }
Exemple #29
0
        // Token: 0x060005D5 RID: 1493 RVA: 0x00034F5C File Offset: 0x0003315C
        public string clickip(int port)
        {
            int value          = 4328465;
            int lpBaseAddress  = 4324611;
            int lpBaseAddress2 = 4324304;
            int lpBaseAddress3 = 4253085;

            Process[] processByName = this.GetProcessByName("vip72socks");
            bool      flag          = processByName.Count <Process>() == 0;
            string    result;

            if (flag)
            {
                result = "not running";
            }
            else
            {
                IntPtr parentHandle = Vip72Chung.FindWindowInProcess(processByName[0], (string s) => s.StartsWith("VIP72 Socks Client"));
                IntPtr intPtr       = Vip72Chung.ControlGetHandle(parentHandle, "Button", 7817);
                bool   flag2        = Vip72Chung.ControlGetCheck(intPtr);
                if (flag2)
                {
                    Vip72Chung.ControlClick(intPtr);
                }
                IntPtr intPtr2  = Vip72Chung.OpenProcess(2035711, false, processByName[0].Id);
                int    num      = 0;
                IntPtr lpBuffer = IntPtr.Zero;
                lpBuffer = Marshal.AllocHGlobal(4);
                Vip72Chung.ReadProcessMemory(intPtr2, (IntPtr)value, lpBuffer, 4, out num);
                Random random  = new Random();
                uint   id      = (uint)processByName[0].Id;
                IntPtr intPtr3 = Vip72Chung.ControlGetHandle(parentHandle, "SysListView32", 117);
                int    num2    = 0;
                while (ListViewItem1.GetListViewItem(intPtr3, id, num2, 4) != "")
                {
                    string listViewItem = ListViewItem1.GetListViewItem(intPtr3, id, num2, 4);
                    bool   flag3        = listViewItem.Contains(port.ToString()) || listViewItem.Contains("main stream");
                    if (flag3)
                    {
                        ListViewItem1.SelectListViewItem(intPtr3, id, num2);
                        int num3 = 0;
                        Vip72Chung.SendMessageTimeout(intPtr3, 256, (IntPtr)46, IntPtr.Zero, 2, 5000, out num3);
                    }
                    else
                    {
                        num2++;
                    }
                }
                IntPtr hwnd = Vip72Chung.ControlGetHandle(parentHandle, "SysListView32", 116);
                while (ListViewItem1.GetListViewItem(hwnd, id, num2, 0) != "")
                {
                    num2++;
                }
                int  num4  = num2;
                bool flag4 = num4 == 0;
                if (flag4)
                {
                    result = "no IP";
                }
                else
                {
                    num2 = 0;
                    int num5 = -1;
                    while (ListViewItem1.GetListViewItem(hwnd, id, num2, 0) != "")
                    {
                        string listViewItem2 = ListViewItem1.GetListViewItem(hwnd, id, num2, 0);
                        bool   flag5         = listViewItem2.Contains(".**");
                        if (flag5)
                        {
                            num5 = random.Next(0, num4);
                            while (!ListViewItem1.GetListViewItem(hwnd, id, num5, 0).Contains(".**"))
                            {
                                num5 = random.Next(0, num4);
                            }
                            break;
                        }
                        num2++;
                    }
                    bool flag6 = num5 == -1;
                    if (flag6)
                    {
                        result = "no IP";
                    }
                    else
                    {
                        int[] array = new int[]
                        {
                            472809
                        };
                        int[] lpBuffer2 = new int[]
                        {
                            port
                        };
                        int[] lpBuffer3 = new int[]
                        {
                            num5
                        };
                        int num6 = 0;
                        Vip72Chung.WriteProcessMemory((int)intPtr2, lpBaseAddress, lpBuffer2, 4, ref num6);
                        Vip72Chung.WriteProcessMemory((int)intPtr2, lpBaseAddress3, array, 4, ref num6);
                        Vip72Chung.WriteProcessMemory((int)intPtr2, lpBaseAddress2, lpBuffer3, 4, ref num6);
                        ListViewItem1.SelectListViewItem(hwnd, id, num5);
                        Vip72Chung.ControlDoubleClick(hwnd);
                        Thread.Sleep(500);
                        array[0] = 21529871;
                        Vip72Chung.WriteProcessMemory((int)intPtr2, lpBaseAddress3, array, 4, ref num6);
                        IntPtr   controlhand = Vip72Chung.ControlGetHandle(parentHandle, "Button", 7303);
                        IntPtr   hwnd2       = Vip72Chung.ControlGetHandle(parentHandle, "Edit", 131);
                        DateTime now         = DateTime.Now;
                        while (!Vip72Chung.ControlGetCheck(controlhand))
                        {
                            bool flag7 = Vip72Chung.ControlGetText(hwnd2).Contains("ffline");
                            if (flag7)
                            {
                                return("dead");
                            }
                            bool flag8 = Vip72Chung.ControlGetText(hwnd2).Contains("limit");
                            if (flag8)
                            {
                                try
                                {
                                    bool flag9 = !processByName[0].HasExited;
                                    if (flag9)
                                    {
                                        processByName[0].Kill();
                                    }
                                }
                                catch (Exception)
                                {
                                }
                                return("limited");
                            }
                            bool flag10 = Vip72Chung.ControlGetText(hwnd2).Contains("can't");
                            if (flag10)
                            {
                                return("dead");
                            }
                            bool flag11 = Vip72Chung.ControlGetText(hwnd2).Contains("disconnect");
                            if (flag11)
                            {
                                return("dead");
                            }
                            bool flag12 = Vip72Chung.ControlGetText(hwnd2).Contains("aximum");
                            if (flag12)
                            {
                                return("maximum");
                            }
                            bool flag13 = (DateTime.Now - now).TotalSeconds > 15.0;
                            if (flag13)
                            {
                                return("timeout");
                            }
                        }
                        Thread.Sleep(500);
                        intPtr3 = Vip72Chung.ControlGetHandle(parentHandle, "SysListView32", 117);
                        num2    = 0;
                        while (ListViewItem1.GetListViewItem(intPtr3, id, num2, 4) != "")
                        {
                            string listViewItem3 = ListViewItem1.GetListViewItem(intPtr3, id, num2, 4);
                            bool   flag14        = listViewItem3.Contains(port.ToString());
                            if (flag14)
                            {
                                return(ListViewItem1.GetListViewItem(intPtr3, id, num2, 0));
                            }
                            num2++;
                        }
                        result = "limited";
                    }
                }
            }
            return(result);
        }
Exemple #30
0
        // Token: 0x060005D7 RID: 1495 RVA: 0x00035474 File Offset: 0x00033674
        public bool getip(string country)
        {
            byte[] array  = new byte[1];
            int[]  array2 = new int[1];
            byte   code   = RunData.getInstance().listCountryCode.FirstOrDefault((countrycode x) => x.country == country).code;

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

            Process[] processByName = this.GetProcessByName("vip72socks");
            Process   process       = new Process();

            if (processByName.Count <Process>() > 0)
            {
                process = processByName[0];
                IntPtr parentHandle = Vip72Chung.FindWindowInProcess(process, (string s) => s.StartsWith("VIP72 Socks Client"));
                IntPtr value        = Vip72Chung.OpenProcess(2035711, false, process.Id);
                int    num2         = 0;
                Vip72Chung.WriteProcessMemory((int)value, num, array, 1, ref num2);
                array2[0] = 0;
                if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + "citycode\\" + code.ToString() + ".dat"))
                {
                    string[] array3 = File.ReadAllLines(AppDomain.CurrentDomain.BaseDirectory + "citycode\\" + code.ToString() + ".dat");
                    Random   random = new Random();
                    int      num3   = Convert.ToInt32(array3[random.Next(0, array3.Count <string>())].Split(new string[]
                    {
                        "|"
                    }, StringSplitOptions.None)[1]);
                    array2[0] = num3;
                }
                Vip72Chung.WriteProcessMemory((int)value, num + 1, array2, 4, ref num2);
                IntPtr intPtr = Vip72Chung.ControlGetHandle(parentHandle, "Button", 127);
                Vip72Chung.ControlClick(intPtr);
                Vip72Chung.ControlGetHandle(parentHandle, "Edit", 131);
                DateTime now = DateTime.Now;
                while (Vip72Chung.ControlGetState(intPtr, 134217728))
                {
                    Thread.Sleep(100);
                    Process[] processByName2 = this.GetProcessByName("vip72socks");
                    if (processByName2.Count <Process>() == 0)
                    {
                        return(false);
                    }
                    if (!processByName2[0].Responding || (DateTime.Now - now).TotalSeconds > 30.0)
                    {
                        try
                        {
                            if (!processByName2[0].HasExited)
                            {
                                processByName2[0].Kill();
                            }
                        }
                        catch (Exception)
                        {
                        }
                        return(false);
                    }
                }
            }
            return(true);
        }