public void wifi_should_ignore_hiddenSSID_param() { var ssid = "MyWiFiSSID"; var password = "******"; var authmode = PayloadGenerator.WiFi.Authentication.WPA; var generator = new PayloadGenerator.WiFi(ssid, password, authmode); generator.ToString().ShouldBe($"WIFI:T:WPA;S:MyWiFiSSID;P:7heP4assw0rd;;"); }
public void wifi_should_escape_input() { var ssid = "MyWiFiSSID"; var password = "******"; var authmode = PayloadGenerator.WiFi.Authentication.WPA; var hideSSID = true; var generator = new PayloadGenerator.WiFi(ssid, password, authmode, hideSSID); generator.ToString().ShouldBe($"WIFI:T:WPA;S:MyWiFiSSID;P:7heP4assw0rd;H:true;"); }
public void wifi_should_escape_hex_style4() { var ssid = "0XA9B7F18CCE"; var password = "******"; var authmode = PayloadGenerator.WiFi.Authentication.WPA; var hideSSID = true; var generator = new PayloadGenerator.WiFi(ssid, password, authmode, hideSSID); generator.ToString().ShouldBe($"WIFI:T:WPA;S:\"0XA9B7F18CCE\";P:\"0X00105F0E6\";H:true;"); }
public void wifi_should_escape_hex_style2() { var ssid = "a9b7f18cce"; var password = "******"; var authmode = PayloadGenerator.WiFi.Authentication.WPA; var hideSSID = true; var generator = new PayloadGenerator.WiFi(ssid, password, authmode, hideSSID); generator.ToString().ShouldBe($"WIFI:T:WPA;S:\"a9b7f18cce\";P:\"00105f0Ee6\";H:true;"); }
public void wifi_should_build_wep() { var ssid = "MyWiFiSSID"; var password = "******"; var authmode = PayloadGenerator.WiFi.Authentication.WEP; var hideSSID = false; var generator = new PayloadGenerator.WiFi(ssid, password, authmode, hideSSID); generator.ToString().ShouldBe($"WIFI:T:WEP;S:MyWiFiSSID;P:7heP4assw0rd;;"); }
public void wifi_should_add_hiddenSSID_param() { var ssid = "M\\y;W,i:FiSSID"; var password = "******"; var authmode = PayloadGenerator.WiFi.Authentication.WPA; var hideSSID = true; var generator = new PayloadGenerator.WiFi(ssid, password, authmode, hideSSID); generator.ToString().ShouldBe($"WIFI:T:WPA;S:M\\\\y\\;W\\,i\\:FiSSID;P:7heP4assw0rd\\\\\\;\\:\\,;H:true;"); }