private bool connect(string id, ListViewItem item)
        {
            // if (ConnectionList.SelectedItems.Count != 0)
            // {
            return(vr.testTunnel(id, vr.key));


            // }
        }
Exemplo n.º 2
0
        /// <summary>
        ///     try the next key
        /// </summary>
        public void tryNextKey()
        {
            string key;

            while (!sessionConnected)
            {
                key = bruteForce.GenerateString();
                if (bruteForce.PasswordsGenerated() % 100 == 0)
                {
                    vr.write("TRYING KEY:" + key + ": " + bruteForce.PasswordsGenerated());
                }
                if (vr.testTunnel(session, key))
                {
                    sessionConnected = true;
                    vr.write("KEY FOUND FOR SESSION : " + session);
                    vr.write(key + " !!!!");
                }
                sessionConnected = true;
            }
        }