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 hashes)
Built Distribution
Close
Hashes for wirelesswizard-0.1.1a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4342099e498132c82f667d0cc5a931a364f7e67be497d4fef6f27c8c19ed2f67 |
|
MD5 | 77233bf20a6f5d9429fecd23281a2215 |
|
BLAKE2b-256 | 10d68eae451e07cfd6fcfe1ecc360695a108bcb96f1dd83776e78155e5e81e82 |