private bool connect(string id, ListViewItem item) { // if (ConnectionList.SelectedItems.Count != 0) // { return(vr.testTunnel(id, vr.key)); // } }
/// <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; } }