Skip to content

maksha/scanwifi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scanwifi.py

Python License

A simple Python script to scan and display available WiFi networks using PowerShell. This script is designed to run on Windows or Windows Subsystem for Linux (WSL).


Features

  • Scans for available WiFi networks.
  • Displays network details in a formatted table.
  • Visualizes signal strength with a colored bar.
  • Uses PowerShell commands for WiFi scanning.

Prerequisites

Before running the script, ensure you have the following:

  1. Python 3.x: Download and install Python from python.org.
  2. PowerShell: Pre-installed on Windows systems.
  3. Git (optional): For cloning the repository.

Installation

  1. Clone the Repository:

    git clone https://github.com/maksha/scanwifi.git
    cd scanwifi
  2. Setup and activate the Virtual Environment:

    $ python -m .venv .venv
    
    // On WSL
    $ source .venv/bin/activate
    
    // On Windows
    PS> .venv\Scripts\activate
  3. Install dependencies: The script requires the following Python packages:

  • tabulate: For formatting the output table.
  • colorama: For adding colored text to the output.

These dependencies are listed in the requirements.txt file and can be installed using: bash $ pip install -r requirements.txt

Usage

  1. Run the script:

    $ python scanwifi.py
  2. Sample Output:

    scanwifi.py Network Scan Results
    ╒══════════════╤══════════════════════════╤══════════════════════════╤══════════════╕
    │ SSID         │ BSSID                    │ Signal                   │ Auth         │
    ╞══════════════╪══════════════════════════╪══════════════════════════╪══════════════╡
    │ HomeWiFi     │ 00:11:22:33:44:55        │ ||||||||||||||||---- 80% │ WPA2         │
    ├──────────────┼──────────────────────────┼──────────────────────────┼──────────────┤
    │ GuestWiFi    │ 66:77:88:99:AA:BB        │ ||||||||------------ 40% │ Open         │
    ╘══════════════╧══════════════════════════╧══════════════════════════╧══════════════╛

Acknowledgments

Thanks to the Python community for creating amazing tools like tabulate and colorama.

About

A simple Python script to scan and display available WiFi networks using PowerShell.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages