Update public source
This commit is contained in:
@@ -1109,6 +1109,7 @@ def render_access_points_page(
|
|||||||
"📡 Access Points",
|
"📡 Access Points",
|
||||||
active="access_points",
|
active="access_points",
|
||||||
context=context,
|
context=context,
|
||||||
|
section_title="Reports",
|
||||||
)
|
)
|
||||||
|
|
||||||
html += f"""
|
html += f"""
|
||||||
|
|||||||
@@ -1159,14 +1159,11 @@ def render_access_point_page(
|
|||||||
|
|
||||||
if not ap:
|
if not ap:
|
||||||
page = page_begin(
|
page = page_begin(
|
||||||
"Access Point",
|
|
||||||
active="access_points",
|
|
||||||
context=context,
|
|
||||||
)
|
|
||||||
|
|
||||||
page += page_header(
|
|
||||||
"Точка доступа не найдена",
|
"Точка доступа не найдена",
|
||||||
"BSSID: " + esc(bssid),
|
"BSSID: " + esc(bssid),
|
||||||
|
active="access_points",
|
||||||
|
context=context,
|
||||||
|
section_title="Reports",
|
||||||
)
|
)
|
||||||
|
|
||||||
page += card(
|
page += card(
|
||||||
@@ -1214,14 +1211,11 @@ def render_access_point_page(
|
|||||||
)
|
)
|
||||||
|
|
||||||
page = page_begin(
|
page = page_begin(
|
||||||
f"AP {ap['bssid']}",
|
|
||||||
active="access_points",
|
|
||||||
context=context,
|
|
||||||
)
|
|
||||||
|
|
||||||
page += page_header(
|
|
||||||
f"📡 {esc(ap['essid'] or 'Access Point')}",
|
f"📡 {esc(ap['essid'] or 'Access Point')}",
|
||||||
f"BSSID: {esc(ap['bssid'])}",
|
f"BSSID: {esc(ap['bssid'])}",
|
||||||
|
active="access_points",
|
||||||
|
context=context,
|
||||||
|
section_title="Reports",
|
||||||
)
|
)
|
||||||
|
|
||||||
page += f"""
|
page += f"""
|
||||||
|
|||||||
+13
-16
@@ -705,16 +705,19 @@ def generate_dashboard(
|
|||||||
|
|
||||||
html = page_begin(
|
html = page_begin(
|
||||||
|
|
||||||
title="WiFi GPS Mapper",
|
title="Dashboard",
|
||||||
|
|
||||||
description=(
|
description=(
|
||||||
"Database overview"
|
"Overview of collected Wi-Fi data, access points, "
|
||||||
|
"capture sessions, and vendors."
|
||||||
),
|
),
|
||||||
|
|
||||||
active="dashboard",
|
active="dashboard",
|
||||||
|
|
||||||
context=context,
|
context=context,
|
||||||
|
|
||||||
|
section_title="Reports",
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# --------------------------------------------------------
|
# --------------------------------------------------------
|
||||||
@@ -813,28 +816,22 @@ def generate_capture_sessions(
|
|||||||
|
|
||||||
html = page_begin(
|
html = page_begin(
|
||||||
|
|
||||||
title="Capture Sessions",
|
title="🚗 Capture Sessions",
|
||||||
|
|
||||||
description="All capture sessions",
|
description=f"""
|
||||||
|
All capture sessions
|
||||||
|
<br>
|
||||||
|
Total sessions: <b>{len(sessions)}</b>
|
||||||
|
""",
|
||||||
|
|
||||||
active="capture_sessions",
|
active="capture_sessions",
|
||||||
|
|
||||||
context=context,
|
context=context,
|
||||||
|
|
||||||
|
section_title="Reports",
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
html += page_header(
|
|
||||||
|
|
||||||
"🚗 Capture Sessions",
|
|
||||||
|
|
||||||
f"""
|
|
||||||
|
|
||||||
Total sessions:
|
|
||||||
|
|
||||||
<b>{len(sessions)}</b>
|
|
||||||
|
|
||||||
"""
|
|
||||||
)
|
|
||||||
|
|
||||||
cards = []
|
cards = []
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,8 @@ def render_hashcat_page(
|
|||||||
"hashcat --show."
|
"hashcat --show."
|
||||||
),
|
),
|
||||||
"hashcat",
|
"hashcat",
|
||||||
context
|
context,
|
||||||
|
section_title="Reports",
|
||||||
)
|
)
|
||||||
|
|
||||||
if message:
|
if message:
|
||||||
|
|||||||
+2
-1
@@ -1124,7 +1124,8 @@ def render_search_page(
|
|||||||
"Search",
|
"Search",
|
||||||
"Search access points in the WiFi GPS Mapper database.",
|
"Search access points in the WiFi GPS Mapper database.",
|
||||||
"search",
|
"search",
|
||||||
context
|
context,
|
||||||
|
section_title="Reports",
|
||||||
)
|
)
|
||||||
|
|
||||||
html += """
|
html += """
|
||||||
|
|||||||
+7
-12
@@ -2607,20 +2607,9 @@ def render_session_page(
|
|||||||
|
|
||||||
html = page_begin(
|
html = page_begin(
|
||||||
|
|
||||||
f"Session {format_session_folder(Path(session['capture_file']).parent.name) if session.get('origin') == 'Local capture' else '-'}",
|
|
||||||
|
|
||||||
active="capture_sessions",
|
|
||||||
|
|
||||||
context=context,
|
|
||||||
|
|
||||||
)
|
|
||||||
|
|
||||||
html += page_header(
|
|
||||||
|
|
||||||
f"🚗 Session {format_datetime(session.get('trip_start'))}",
|
f"🚗 Session {format_datetime(session.get('trip_start'))}",
|
||||||
|
|
||||||
f"""
|
f"""
|
||||||
|
|
||||||
Trip start:
|
Trip start:
|
||||||
|
|
||||||
{esc(format_datetime(session.get("trip_start")))}
|
{esc(format_datetime(session.get("trip_start")))}
|
||||||
@@ -2655,7 +2644,13 @@ Session folder:
|
|||||||
|
|
||||||
{esc(Path(session["capture_file"]).parent.name if session.get("origin") == "Local capture" else "-")}
|
{esc(Path(session["capture_file"]).parent.name if session.get("origin") == "Local capture" else "-")}
|
||||||
|
|
||||||
"""
|
""",
|
||||||
|
|
||||||
|
active="capture_sessions",
|
||||||
|
|
||||||
|
context=context,
|
||||||
|
|
||||||
|
section_title="Reports",
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -249,6 +249,7 @@ def render_trips_page(
|
|||||||
),
|
),
|
||||||
"trips",
|
"trips",
|
||||||
context,
|
context,
|
||||||
|
section_title="Reports",
|
||||||
)
|
)
|
||||||
|
|
||||||
html += _message(
|
html += _message(
|
||||||
|
|||||||
@@ -855,6 +855,7 @@ def render_vendors_page(
|
|||||||
),
|
),
|
||||||
active="vendors",
|
active="vendors",
|
||||||
context=context,
|
context=context,
|
||||||
|
section_title="Reports",
|
||||||
)
|
)
|
||||||
|
|
||||||
if message:
|
if message:
|
||||||
|
|||||||
Reference in New Issue
Block a user