Update public source
This commit is contained in:
@@ -1287,4 +1287,4 @@ tbody tr:hover {
|
|||||||
grid-template-columns: minmax(0, 1fr);
|
grid-template-columns: minmax(0, 1fr);
|
||||||
gap: 24px;
|
gap: 24px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,6 +99,7 @@ def load_access_points(conn):
|
|||||||
ap.bssid,
|
ap.bssid,
|
||||||
ap.essid,
|
ap.essid,
|
||||||
ap.vendor,
|
ap.vendor,
|
||||||
|
ap.encryption,
|
||||||
ap.has_handshake,
|
ap.has_handshake,
|
||||||
ap.has_pmkid,
|
ap.has_pmkid,
|
||||||
ap.is_cracked,
|
ap.is_cracked,
|
||||||
@@ -135,6 +136,7 @@ def build_marker_js(observations):
|
|||||||
handshake_features = []
|
handshake_features = []
|
||||||
pmkid_features = []
|
pmkid_features = []
|
||||||
password_features = []
|
password_features = []
|
||||||
|
open_features = []
|
||||||
|
|
||||||
for row in observations:
|
for row in observations:
|
||||||
|
|
||||||
@@ -224,6 +226,14 @@ def build_marker_js(observations):
|
|||||||
feature
|
feature
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (
|
||||||
|
str(row["encryption"] or "").strip().upper()
|
||||||
|
== "OPEN"
|
||||||
|
):
|
||||||
|
open_features.append(
|
||||||
|
feature
|
||||||
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
"const apFeatures = "
|
"const apFeatures = "
|
||||||
+ json.dumps(
|
+ json.dumps(
|
||||||
@@ -249,6 +259,13 @@ def build_marker_js(observations):
|
|||||||
ensure_ascii=False,
|
ensure_ascii=False,
|
||||||
)
|
)
|
||||||
+ ";\n"
|
+ ";\n"
|
||||||
|
|
||||||
|
+ "const openFeatures = "
|
||||||
|
+ json.dumps(
|
||||||
|
open_features,
|
||||||
|
ensure_ascii=False,
|
||||||
|
)
|
||||||
|
+ ";\n"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -338,6 +355,7 @@ const layerState = {
|
|||||||
|
|
||||||
handshake: true,
|
handshake: true,
|
||||||
password: true,
|
password: true,
|
||||||
|
open: true,
|
||||||
all: false
|
all: false
|
||||||
|
|
||||||
};
|
};
|
||||||
@@ -408,6 +426,10 @@ map.on(
|
|||||||
passwordFeatures
|
passwordFeatures
|
||||||
);
|
);
|
||||||
|
|
||||||
|
createSource(
|
||||||
|
"open-aps",
|
||||||
|
openFeatures
|
||||||
|
);
|
||||||
|
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// All AP clusters
|
// 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
|
// Popups
|
||||||
@@ -661,6 +715,8 @@ map.on(
|
|||||||
|
|
||||||
"password-points"
|
"password-points"
|
||||||
|
|
||||||
|
"open-ap-points"
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
@@ -915,6 +971,15 @@ map.on(
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(layer === "open")
|
||||||
|
{
|
||||||
|
setLayerVisibility(
|
||||||
|
[
|
||||||
|
"open-ap-points"
|
||||||
|
],
|
||||||
|
input.checked
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if(layer === "all")
|
if(layer === "all")
|
||||||
{
|
{
|
||||||
@@ -1091,6 +1156,18 @@ Time interval:
|
|||||||
Password
|
Password
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
<label>
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
data-layer="open"
|
||||||
|
checked
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
class="map-layer-dot map-layer-dot-open"
|
||||||
|
></span>
|
||||||
|
Open AP
|
||||||
|
</label>
|
||||||
|
|
||||||
<label>
|
<label>
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
|
|||||||
Reference in New Issue
Block a user