
GTK4 / Libadwaita Wi-Fi analyzer for Linux featuring live 2.4 & 5 GHz scanning, channel overlap & signal history graphs, QBSS load, OUI lookup, distance estimation, and CSV logging.
wapscan is a modern wireless access point scanner for Linux featuring a native GTK 4.0 GUI. Developed as a modern reimplementation of the original terminal-based tool (2017–2024), it retains the same proven scanning approach under the hood while presenting all essential network details clearly at a glance. This repository is the official successor to the original tool wapscan.
Developing my tools always takes priority over documentation.
I wanted to test whether the logic of my original Bash-based tool could be transformed into a modern, native desktop application using GTK 4.0. wapscan in its GUI version is the proof of concept that this works cleanly in practice. I also wanted to see how much information I could present in a GUI – and how effectively I could do so – by moving away from the terminal-based approach.
In 2017, I occasionally needed a wireless access point scanner. The applications I found – namely WiFi Radar, LinSSID, and the terminal-based wavemon – weren’t quite what I needed. LinSSID was cumbersome to install and focused heavily on charts rather than straightforward handling, WiFi Radar struggled with multiple adapters, felt clunky in its GUI, and didn’t present the technical details clearly, while wavemon proved too impractical for quick, at-a-glance environment scans.
Between 2017 and 2024, I therefore developed wapscan, a Bash-based terminal tool that let me choose from several Wi-Fi adapters at start-up and, once running, displayed all the essential information in a compact format at a glance. Originally, the script relied on iwlist internally, which is now obsolete and has since been replaced by iw.
To ensure the tool was always readily available, I set up a repository on Launchpad so it could be installed directly via the command line on the distributions current at the time. Although those Ubuntu and Linux Mint releases have since reached End-of-Life (EOL) and the PPA is no longer actively maintained, the package can still be installed and remains fully functional on them.
As porting and maintaining the old Bash version for modern distributions is simply too much effort, it remains available strictly as a legacy version. This is where this repository comes in, taking the concept forward through active and purposeful development.
The concept of a modern wireless access point scanner was implemented in Python using the GTK 4.0 toolkit. The underlying logic for retrieving Wi-Fi data from the original Bash script has been fully integrated into the Python codebase, making this modern version a completely standalone application. All wireless scan data is gathered directly via iw, replacing the obsolete iwlist utility.
| Live Scan (5 GHz & 2.4 GHz) | Live Scan (5 GHz) & Hamburger Menu |
|---|---|
|
|
⚙️ Analysis for:
wapscan-gtk.py
| Module Name | Version / Type |
|---|---|
| 📦 base64 | 🌐 Built-in / Standard Library |
| 📦 collections | 🌐 Built-in / Standard Library |
| 📦 csv | 🌐 Built-in / Standard Library |
| 📦 datetime | 🌐 Built-in / Standard Library |
| 🌐 Built-in / Standard Library | |
| 📦 enum | 🌐 Built-in / Standard Library |
| 📦 json | 🌐 Built-in / Standard Library |
| 📦 math | 🌐 Built-in / Standard Library |
| 📦 os | 🌐 Built-in / Standard Library |
| 📦 pathlib | 🌐 Built-in / Standard Library |
| 📦 pwd | 🌐 Built-in / Standard Library |
| 📦 random | 🌐 Built-in / Standard Library |
| 📦 re | 🌐 Built-in / Standard Library |
| 📦 shutil | 🌐 Built-in / Standard Library |
| 📦 signal | 🌐 Built-in / Standard Library |
| 📦 subprocess | 🌐 Built-in / Standard Library |
| 📦 sys | 🌐 Built-in / Standard Library |
| 📦 threading | 🌐 Built-in / Standard Library |
| 📦 time | 🌐 Built-in / Standard Library |
| 📦 urllib | 🌐 Built-in / Standard Library |
| 📦 warnings | 🌐 Built-in / Standard Library |
| Module Name | Version / Type |
|---|---|
| (None) |
This external package must be available in your system environment (e.g., via your system package manager or appropriate system libraries).
| Module Name | Minimum / Analyzed Version |
|---|---|
| 🛠️ gi | 🏷️ 3.48.2 |
================================================================================
STRUCTURAL ANALYSIS FOR: wapscan-gtk.py
================================================================================
└── 📦 wapscan-gtk.py
├── 🌐 Shebang: #!/usr/bin/python
├── 📥 Imports (23 items)
├── 🔢 Global Variables (9 items)
├── ⚙️ Code Blocks (14 abstract module-level expressions)
├── ⚡ Functions
│ ├── 🛠️ def _glib_structured_writer()
│ └── 🛠️ def _resolve_user_home()
├── ⚡ Functions
├── 🏛️ Classes
│ ├── 🏢 class SignalHistoryWindow
│ ├── 🏢 class PropagationScenario
│ ├── 🏢 class DistanceEstimationWindow
│ ├── 🏢 class ChannelOverlapWindow
│ ├── 🏢 class OUIDatabase
│ ├── 🏢 class WapScanBackend
│ ├── 🏢 class AccessPoint
│ ├── 🏢 class WapScanWindow
│ └── 🏢 class WapScanApp
├── 🏛️ Classes
├── 🚀 Main Function: def main()
└── 🔌 Entry Point: if __name__ == '__main__'
--------------------------------------------------------------------------------
1. SHEBANG:
#!/usr/bin/python
2. IMPORTS:
- import os
- import base64
- import csv
- import json
- import math
- import pwd
- import random
- import re
- import shutil
- import signal
- import subprocess
- import sys
- import threading
- import time
- import urllib.request
- import warnings
- from collections import deque
- from datetime import datetime, timezone
- from email.utils import parsedate_to_datetime
- from enum import Enum
- from pathlib import Path
- import gi
- from gi.repository import Adw, Gdk, GdkPixbuf, Gio, GLib, GObject, Gtk, Pango
3. VARIABLES (Global):
- __version__
- __author__
- __username__
- __copyright__
- __license__
- __repository__
- __description__
- __wiki__
- LOGO_BASE64