本文主要是介绍Python - WIFI Scan,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
How to find weak wireless APs with SSID:BSSID ?
How to scan SSID:BSSID ?
#!/usr/bin/python
# -*- coding: utf8 -*-from access_points import get_scannerdef parse_apinfo(ap):return (ap['quality'], ap['ssid'], ap['bssid'])def print_apinfo(apinfo):print(u"Quality: {:03} <=> SSID:BSIID: {},{}".format(*apinfo))if __name__ == '__main__':wifi_scanner = get_scanner()wifi_aps = wifi_scanner.get_access_points()wifi_aps = map(parse_apinfo, wifi_aps)wifi_aps.sort()map(print_apinfo, wifi_aps)
->> python access_points/wifi_scan.py
Quality: 022 <=> SSID:BSIID: 303,c8:3a:35:52:d0:70
Quality: 022 <=> SSID:BSIID: and-Business,d2:75:d5:8e:8f:87
Quality: 022 <=> SSID:BSIID: dingding,3c:46:d8:93:e5:e2
Quality: 022 <=> SSID:BSIID: yougenyake501,ec:26:ca:9b:f1:20
Quality: 022 <=> SSID:BSIID: zhang602,d4:83:04:ec:3b:78
Quality: 022 <=> SSID:BSIID: zhangduo,5c:63:bf:db:f8:4e
Quality: 024 <=> SSID:BSIID: 3-2403,d0:c7:c0:bb:e3:12
Quality: 024
这篇关于Python - WIFI Scan的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!