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