_wifiutil_linux.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:pywifi 作者: awkman 项目源码 文件源码
def interfaces(self):
        """Get the wifi interface lists."""

        ifaces = []
        for f in os.listdir(CTRL_IFACE_DIR):
            sock_file = '/'.join([CTRL_IFACE_DIR, f])
            mode = os.stat(sock_file).st_mode
            if stat.S_ISSOCK(mode):
                iface = {}
                iface['name'] = f
                ifaces.append(iface)
                self._connect_to_wpa_s(f)

        return ifaces
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号