0

Need Help With Wifi Script Python

i am trying to create a script that scans wifi networks near me and lists them. So far i am getting it to work pretty well but it only lists the ssid of the network. I want it to list the bssid and the channel and everything. My code: import wifi from wifi import Cell, Scheme networks = Cell.all('wlan0') print('Found %d Networks' % len(networks)) for network in networks: print('%s' % (network.ssid))

18th Nov 2018, 11:25 PM
Someone Else
Someone Else - avatar
2 Answers
+ 2
Does it _have_ to be Python? "iwlist <device> scan" works quite well IIRC. You can grep results if needed.
18th Nov 2018, 11:46 PM
non
0
yeah I really wanna make it in python. Thanks for the reply though
19th Nov 2018, 12:46 AM
Someone Else
Someone Else - avatar