diff --git a/cracklab/server/web/static/cracklab.css b/cracklab/server/web/static/cracklab.css
index 3f222b0..d821d86 100644
--- a/cracklab/server/web/static/cracklab.css
+++ b/cracklab/server/web/static/cracklab.css
@@ -1287,4 +1287,4 @@ tbody tr:hover {
grid-template-columns: minmax(0, 1fr);
gap: 24px;
}
-}
\ No newline at end of file
+}
diff --git a/reports/access_points.py b/reports/access_points.py
index 21164eb..b7098e1 100644
--- a/reports/access_points.py
+++ b/reports/access_points.py
@@ -99,6 +99,7 @@ def load_access_points(conn):
ap.bssid,
ap.essid,
ap.vendor,
+ ap.encryption,
ap.has_handshake,
ap.has_pmkid,
ap.is_cracked,
@@ -135,6 +136,7 @@ def build_marker_js(observations):
handshake_features = []
pmkid_features = []
password_features = []
+ open_features = []
for row in observations:
@@ -224,6 +226,14 @@ def build_marker_js(observations):
feature
)
+ if (
+ str(row["encryption"] or "").strip().upper()
+ == "OPEN"
+ ):
+ open_features.append(
+ feature
+ )
+
return (
"const apFeatures = "
+ json.dumps(
@@ -249,6 +259,13 @@ def build_marker_js(observations):
ensure_ascii=False,
)
+ ";\n"
+
+ + "const openFeatures = "
+ + json.dumps(
+ open_features,
+ ensure_ascii=False,
+ )
+ + ";\n"
)
@@ -338,6 +355,7 @@ const layerState = {
handshake: true,
password: true,
+ open: true,
all: false
};
@@ -408,6 +426,10 @@ map.on(
passwordFeatures
);
+ createSource(
+ "open-aps",
+ openFeatures
+ );
// ==================================================
// All AP clusters
@@ -646,6 +668,38 @@ map.on(
});
+ // ==================================================
+ // Open AP points
+ // ==================================================
+
+ map.addLayer({
+
+ id: "open-ap-points",
+
+ type: "circle",
+
+ source: "open-aps",
+
+ layout: {
+ visibility:
+ layerState.open
+ ? "visible"
+ : "none"
+ },
+
+ paint: {
+
+ "circle-radius": 7,
+
+ "circle-color": "#AB47BC",
+
+ "circle-stroke-color": "#ffffff",
+
+ "circle-stroke-width": 1.5
+
+ }
+
+ });
// ==================================================
// Popups
@@ -661,6 +715,8 @@ map.on(
"password-points"
+ "open-ap-points"
+
];
@@ -915,6 +971,15 @@ map.on(
}
+ if(layer === "open")
+ {
+ setLayerVisibility(
+ [
+ "open-ap-points"
+ ],
+ input.checked
+ );
+ }
if(layer === "all")
{
@@ -1091,6 +1156,18 @@ Time interval:
Password
+
+