Update public source
This commit is contained in:
@@ -1287,4 +1287,4 @@ tbody tr:hover {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
</label>
|
||||
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
data-layer="open"
|
||||
checked
|
||||
>
|
||||
<span
|
||||
class="map-layer-dot map-layer-dot-open"
|
||||
></span>
|
||||
Open AP
|
||||
</label>
|
||||
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
|
||||
Reference in New Issue
Block a user