kivanccakmak / channel_graph

Short script to get histogram of networks in Wi-Fi channel, written in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#channel_graph

This repository is created to observe histogram of active networks in Wi-Fi band. Script is written in python.

##Dependencies

sudo apt-get install python-matplotlib

Usage:

python channel_graph.py <frequency>

Examples:

python channel_graph.py 2GHz
python channel_graph.py 5GHz

In order to observe networks in detail, I used iwlist wlan0 scan command with Python's subprocess library. Then, parsed this information via grep command and remained script in channel_graph.py

cmd = 'iwlist wlan0 scan | grep -w "(Channel"'
proc = subprocess.Popen([cmd], stdout=subprocess.PIPE, shell=True)

Consequently, I used pyplot framework to plot histogram, which uses same syntax with MATLAB.

##Screenshot

About

Short script to get histogram of networks in Wi-Fi channel, written in Python


Languages

Language:Python 100.0%