A script that provides detailed WiFi network information
__ __ ______ ________ ______ ______ __ __ ________ ______
| \ _ | \ \ \ \ | \ \ | \ \/ \
| ▓▓ / \ | ▓▓\▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓\▓▓▓▓▓▓ \▓▓▓▓▓▓ ▓▓\ | ▓▓ ▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓
| ▓▓/ ▓\| ▓▓ | ▓▓ | ▓▓__ | ▓▓ | ▓▓ | ▓▓▓\| ▓▓ ▓▓__ | ▓▓ | ▓▓
| ▓▓ ▓▓▓\ ▓▓ | ▓▓ | ▓▓ \ | ▓▓ | ▓▓ | ▓▓▓▓\ ▓▓ ▓▓ \ | ▓▓ | ▓▓
| ▓▓ ▓▓\▓▓\▓▓ | ▓▓ | ▓▓▓▓▓ | ▓▓ | ▓▓ | ▓▓\▓▓ ▓▓ ▓▓▓▓▓ | ▓▓ | ▓▓
| ▓▓▓▓ \▓▓▓▓_| ▓▓_| ▓▓ _| ▓▓_ _| ▓▓_| ▓▓ \▓▓▓▓ ▓▓ | ▓▓__/ ▓▓
| ▓▓▓ \▓▓▓ ▓▓ \ ▓▓ | ▓▓ \ | ▓▓ \ ▓▓ \▓▓▓ ▓▓ \▓▓ ▓▓
\▓▓ \▓▓\▓▓▓▓▓▓\▓▓ \▓▓▓▓▓▓ \▓▓▓▓▓▓\▓▓ \▓▓\▓▓ \▓▓▓▓▓▓👤 Author: suchsoak | 📦 Version: v1.0.5
Note
Don't forget to install requirements.txt
git clone https://github.com/suchsoak/Wifi-Info-PY
cd Wifi-Info-PY
pip install -r requirements.txtOn linux | Ubuntu / Debian / Kali Linux / Linux Mint:
sudo apt update && sudo apt install -y net-toolspython3 wifiinfo.pyShows networks that have already been connected.
Important
Requires network-manager installed on your system for full functionality
wifi_info = nt.device.wifi()
for device in wifi_info:
wifi_mode = device.mode
wifi_bssid = device.bssid
wifi_ssid = device.ssidWithout nmcli, the script runs normally with reduced functionality.
Tests connection to the Tor Project to detect firewall issues:
r = requests.get('https://www.torproject.org/')| Code | Meaning |
|---|---|
| 200 | ✅ OK - Successful request |
| 403 | 🚫 Forbidden - Access denied |
| 404 | ❌ Not Found - Resource unavailable |
| 503 |
Conversion formula: results.upload/1024/1024 (bytes → Mbps)
print("Download:", speed.download / 1024 / 1024, "Mbps")
print("Upload:", speed.upload / 1024 / 1024, "Mbps")Alternative units: Use 1000 for Kbps or 1024/1024 for Gbps.
| Library | Link |
|---|---|
| 📊 Psutil | https://pypi.org/project/psutil/ |
| ⚡ Speedtest | https://github.com/sivel/speedtest-cli/wiki |
| 🔧 Ifcfg | https://pypi.org/project/ifcfg/ |
| 🖥️ nmcli | https://github.com/ushiboy/nmcli |
| 🎨 Colorama | https://pypi.org/project/colorama/ |
| 📖 Platform | https://docs.python.org/3/library/platform.html |
GPL-3.0 license