Beispiel #1
0
        private void brute_snmac_button_Click(object sender, EventArgs e)
        {
            bool quick = brute_snmac_quick.Checked;

            brute_snmac_button.Text    = ". . .";
            output.Text                = "finding serial for " + brute_snmac_essid_input.Text + "...";
            brute_snmac_button.Enabled = false;
            string ret = AGPF_Brute.bruteSNMAC(brute_snmac_essid_input.Text, brute_snmac_psk_input.Text, brute_snmac_threads.Value.ToString(), quick);

            brute_snmac_button.Enabled = true;
            brute_snmac_button.Text    = "brute";

            if (!ret.Contains("nothing found"))
            {
                using (TextWriter config2 = new StreamWriter(@"list.txt", true))
                {
                    try
                    {
                        config2.WriteLine(ret.Substring(0, 14) + " " + ret.Substring(25, 13));
                        config2.Close();
                        U.sortUniq("list.txt");
                    }
                    catch (Exception ex)
                    {
                        output.Text = ex.Message;
                    }
                }
            }

            output.Text = ret + "\r\nadded to list.txt";

            return;
        }
Beispiel #2
0
        private void brute_psk_button_Click(object sender, EventArgs e)
        {
            bool quick = brute_psk_quick.Checked;

            brute_psk_button.Text    = ". . .";
            output.Text              = "creating a rainbow table for " + brute_psk_essid_input.Text + "...";
            brute_psk_button.Enabled = false;
            output.Text              = AGPF_Brute.brutePSK(brute_psk_essid_input.Text, brute_psk_threads.Value.ToString(), quick);
            output.SelectionStart    = output.TextLength;
            output.ScrollToCaret();
            output.Refresh();
            brute_psk_button.Enabled = true;
            brute_psk_button.Text    = "brute";
            return;
        }