Simple wireless interface handler
Project description
wirelesswizard
Description
WirelessWizard allows you to use your wireless interface using python.
Installation
You can install WirelessWizard using pip3
:
$ pip3 install wirelesswizard
Basic Usage
1. Listing your wireless interfaces
import wirelesswizard
# get a list of the currently available wireless interface in your system
interfaces = wirelesswizard.get_wireless_interfaces()
# selecting an interface
interface_0 = interfaces[0]
# showing information of your wireless interface
interface_0.show_info()
# you can use the attributes of the wireless interface too
print(interface_0.name)
2. Scanning networks
import wirelesswizard
# selecting an interface
interfaces = wirelesswizard.get_wireless_interfaces()
interface = interfaces[0]
# scanning networks
interface.scan_networks()
# Getting scan results
scan_result = interface.get_last_scan()
# showing scan result
print(scan_result)
# you can also get the scan result in different formats.
# ["raw","table","html","json"]
scan_result = interface.get_last_scan(format="json")
# the history of network scans
print(interface.scan_history)
# select the last scan history (list of NetworkInfo objects)
interface.scan_history[0]
3. Setting monitor mode
import wirelesswizard
# selecting an interface
interfaces = wirelesswizard.get_wireless_interfaces()
interface = interfaces[0]
# changing interface to monitor mode
interface.change_mode("monitor")
4. Changing state
import wirelesswizard
# selecting an interface
interfaces = wirelesswizard.get_wireless_interfaces()
interface = interfaces[0]
# executing ip link set <iface> down
interface.change_state("down")
# executing ip link set <iface> up
interface.change_state("up")
5. Changing
import wirelesswizard
# selecting an interface
interfaces = wirelesswizard.get_wireless_interfaces()
interface = interfaces[0]
# changing to channel 11
interface.change_channel(11)
License
This proyect is under GPL v3 license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wirelesswizard-0.1.1a0.tar.gz
(22.3 kB
view details)
Built Distribution
File details
Details for the file wirelesswizard-0.1.1a0.tar.gz
.
File metadata
- Download URL: wirelesswizard-0.1.1a0.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba618305e51c54510ca52ae28b450222570dc982b4fece4f88084e85b39a9cf9 |
|
MD5 | c97b561fbe0ed0a8f3fff3531bd1304f |
|
BLAKE2b-256 | 2840923b8ce4dbddc3556da4638fb1504be495f05cc39782489707fc310b37cd |
File details
Details for the file wirelesswizard-0.1.1a0-py3-none-any.whl
.
File metadata
- Download URL: wirelesswizard-0.1.1a0-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4342099e498132c82f667d0cc5a931a364f7e67be497d4fef6f27c8c19ed2f67 |
|
MD5 | 77233bf20a6f5d9429fecd23281a2215 |
|
BLAKE2b-256 | 10d68eae451e07cfd6fcfe1ecc360695a108bcb96f1dd83776e78155e5e81e82 |