Update public source
This commit is contained in:
@@ -360,6 +360,12 @@ def get_category(
|
||||
):
|
||||
return "handshake"
|
||||
|
||||
if (
|
||||
str(access_point["encryption"] or "").strip().upper()
|
||||
== "OPEN"
|
||||
):
|
||||
return "open"
|
||||
|
||||
return "other"
|
||||
|
||||
|
||||
@@ -1264,6 +1270,18 @@ def render_search_page(
|
||||
Handshake / PMKID
|
||||
</label>
|
||||
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
data-category="open"
|
||||
checked
|
||||
>
|
||||
<span
|
||||
class="map-layer-dot map-layer-dot-open"
|
||||
></span>
|
||||
Open AP
|
||||
</label>
|
||||
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
@@ -1351,6 +1369,8 @@ def render_search_page(
|
||||
"search-password",
|
||||
handshake:
|
||||
"search-handshake",
|
||||
open:
|
||||
"search-open",
|
||||
other:
|
||||
"search-other"
|
||||
};
|
||||
@@ -1522,6 +1542,37 @@ def render_search_page(
|
||||
}
|
||||
);
|
||||
|
||||
map.addLayer(
|
||||
{
|
||||
id:
|
||||
"search-open",
|
||||
|
||||
type:
|
||||
"circle",
|
||||
|
||||
source:
|
||||
"search-aps",
|
||||
|
||||
filter: [
|
||||
"==",
|
||||
[
|
||||
"get",
|
||||
"category"
|
||||
],
|
||||
"open"
|
||||
],
|
||||
|
||||
paint: {
|
||||
"circle-radius": 7,
|
||||
"circle-stroke-width": 2,
|
||||
"circle-color":
|
||||
"#AB47BC",
|
||||
"circle-stroke-color":
|
||||
"#0f141a"
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
map.addLayer(
|
||||
{
|
||||
id:
|
||||
@@ -1569,6 +1620,7 @@ def render_search_page(
|
||||
[
|
||||
"search-password",
|
||||
"search-handshake",
|
||||
"search-open",
|
||||
"search-other"
|
||||
].forEach(
|
||||
(layerId) => {
|
||||
|
||||
+54
-1
@@ -1324,6 +1324,7 @@ map.on(
|
||||
const handshakeFeatures = [];
|
||||
const pmkidFeatures = [];
|
||||
const passwordFeatures = [];
|
||||
const openFeatures = [];
|
||||
|
||||
|
||||
markers.forEach(
|
||||
@@ -1342,7 +1343,8 @@ map.on(
|
||||
popup:ap.popup || "",
|
||||
handshake:ap.handshake,
|
||||
pmkid:ap.pmkid,
|
||||
cracked:ap.cracked
|
||||
cracked:ap.cracked,
|
||||
encryption:ap.encryption
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1375,6 +1377,17 @@ map.on(
|
||||
feature
|
||||
);
|
||||
}
|
||||
|
||||
else if(
|
||||
String(ap.encryption || "")
|
||||
.trim()
|
||||
.toUpperCase() === "OPEN"
|
||||
)
|
||||
{
|
||||
openFeatures.push(
|
||||
feature
|
||||
);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
@@ -1454,6 +1467,13 @@ map.on(
|
||||
|
||||
);
|
||||
|
||||
createSource(
|
||||
|
||||
"open-aps",
|
||||
|
||||
openFeatures
|
||||
|
||||
);
|
||||
|
||||
// ==================================================
|
||||
// AP clusters
|
||||
@@ -1670,6 +1690,16 @@ paint:{
|
||||
|
||||
);
|
||||
|
||||
addPointLayer(
|
||||
|
||||
"open-ap-points",
|
||||
|
||||
"open-aps",
|
||||
|
||||
"#AB47BC"
|
||||
|
||||
);
|
||||
|
||||
|
||||
// ==================================================
|
||||
// Popups
|
||||
@@ -1685,6 +1715,8 @@ paint:{
|
||||
|
||||
"password-points"
|
||||
|
||||
"open-ap-points"
|
||||
|
||||
];
|
||||
|
||||
|
||||
@@ -1941,6 +1973,15 @@ paint:{
|
||||
);
|
||||
}
|
||||
|
||||
if(layer === "open")
|
||||
{
|
||||
setLayerVisibility(
|
||||
[
|
||||
"open-ap-points"
|
||||
],
|
||||
input.checked
|
||||
);
|
||||
}
|
||||
|
||||
if(layer === "all")
|
||||
{
|
||||
@@ -2054,6 +2095,18 @@ window.setTimeout(
|
||||
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