Ejemplo n.º 1
0
        public static void Scan(RunTimeConfiguration rc,
                                APConfigParameter AP1Config24GHz,
                                APConfigParameter AP1Config5GHz,
                                APConfigParameter AP2Config24GHz,
                                APConfigParameter AP2Config5GHz,
                                SCAN_TEST_OPTIONS ScanTestOptions
                                )
        {
            TraceProvider traceProvider = new TraceProvider("ScanDriver");

            using (UsingGroup g = new UsingGroup())
            {
                traceProvider.TraceInformation("Scanning Scenarios Configuration ");

                WhckScanning hckScanning = new WhckScanning(rc,
                                                            AP1Config24GHz,
                                                            AP1Config5GHz,
                                                            AP2Config24GHz,
                                                            AP2Config5GHz,
                                                            ScanTestOptions);

                g.Add(hckScanning);

                hckScanning.Scan();
            }
        }
Ejemplo n.º 2
0
        public void Scan_VariousAuthCipher() // WPA-Personal/TKIP, WPA-Entprise/AES; Open/None/Hidden, WPA2-Personal/AES
        {
            APConfigParameter AP1Config24GHz = new APConfigParameter(0, false);
            APConfigParameter AP1Config5GHz  = new APConfigParameter(0, true);
            APConfigParameter AP2Config24GHz = new APConfigParameter(1, false);
            APConfigParameter AP2Config5GHz  = new APConfigParameter(1, true);

            AP1Config24GHz.Auth    = AuthenticationMethod.WPAPersonal;
            AP1Config24GHz.Cipher  = EncryptionMethod.TKIP;
            AP1Config24GHz.Phy     = PhyType.b;
            AP1Config24GHz.Channel = 5;

            AP1Config5GHz.Auth    = AuthenticationMethod.WPAEnterprise;
            AP1Config5GHz.Cipher  = EncryptionMethod.AES;
            AP1Config5GHz.Phy     = PhyType.a;
            AP1Config5GHz.Channel = 36;

            AP2Config24GHz.Auth     = AuthenticationMethod.Open;
            AP2Config24GHz.Cipher   = EncryptionMethod.None;
            AP2Config24GHz.Phy      = PhyType.g;
            AP2Config24GHz.Channel  = 11;
            AP2Config24GHz.IsHidden = true;   // Hidden

            AP2Config5GHz.Auth    = AuthenticationMethod.WPA2Personal;
            AP2Config5GHz.Cipher  = EncryptionMethod.AES;
            AP2Config5GHz.Phy     = PhyType.n;
            AP2Config5GHz.Channel = 44;

            WhckScanning.Scan(sConfig,
                              AP1Config24GHz,
                              AP1Config5GHz,
                              AP2Config24GHz,
                              AP2Config5GHz,
                              SCAN_TEST_OPTIONS.None);
        }
Ejemplo n.º 3
0
        public void Scan_MultipleBSSID()     // Two Open and WPA2 Enterprise
        {
            APConfigParameter AP1Config24GHz = new APConfigParameter(0, false);
            APConfigParameter AP1Config5GHz  = new APConfigParameter(0, true);
            APConfigParameter AP2Config24GHz = new APConfigParameter(1, false);
            APConfigParameter AP2Config5GHz  = new APConfigParameter(1, true);

            AP1Config24GHz.Auth    = AuthenticationMethod.Open;
            AP1Config24GHz.Cipher  = EncryptionMethod.None;
            AP1Config24GHz.Phy     = PhyType.g;
            AP1Config24GHz.Channel = 1;

            AP1Config5GHz.Auth    = AuthenticationMethod.WPA2Enterprise;
            AP1Config5GHz.Cipher  = EncryptionMethod.AES;
            AP1Config5GHz.Phy     = PhyType.a;
            AP1Config5GHz.Channel = 44;

            AP2Config24GHz.Auth    = AuthenticationMethod.Open;
            AP2Config24GHz.Cipher  = EncryptionMethod.None;
            AP2Config24GHz.Phy     = PhyType.g;
            AP2Config24GHz.Channel = 6;

            AP2Config5GHz.Auth    = AuthenticationMethod.WPA2Enterprise;
            AP2Config5GHz.Cipher  = EncryptionMethod.AES;
            AP2Config5GHz.Phy     = PhyType.n;
            AP2Config5GHz.Channel = 36;

            WhckScanning.Scan(sConfig,
                              AP1Config24GHz,
                              AP1Config5GHz,
                              AP2Config24GHz,
                              AP2Config5GHz,
                              SCAN_TEST_OPTIONS.DuplicateSSIDs);
        }
Ejemplo n.º 4
0
        public void Scan_Custom()     // Custom
        {
            bool bParameterSpecified = true;
            SCAN_TEST_OPTIONS customOptions;

            APConfigParameter AP1Config24GHz = new APConfigParameter(0, false);
            APConfigParameter AP1Config5GHz  = new APConfigParameter(0, true);
            APConfigParameter AP2Config24GHz = new APConfigParameter(1, false);
            APConfigParameter AP2Config5GHz  = new APConfigParameter(1, true);

            bParameterSpecified = AP1Config24GHz.Load(sConfig.TaefTestContext) && bParameterSpecified;
            bParameterSpecified = AP1Config5GHz.Load(sConfig.TaefTestContext) && bParameterSpecified;
            bParameterSpecified = AP2Config24GHz.Load(sConfig.TaefTestContext) && bParameterSpecified;
            bParameterSpecified = AP2Config5GHz.Load(sConfig.TaefTestContext) && bParameterSpecified;

            if (!bParameterSpecified)
            {
                // No parameters specified. Dont run the test
                return;
            }

            customOptions = (SCAN_TEST_OPTIONS)sConfig.WlanTestOptions;
            if (customOptions == 0)
            {
                customOptions = SCAN_TEST_OPTIONS.None;
            }

            WhckScanning.Scan(sConfig,
                              AP1Config24GHz,
                              AP1Config5GHz,
                              AP2Config24GHz,
                              AP2Config5GHz,
                              customOptions);
        }