Python上的Wifi扫描仪 [英] Wifi scanner on Python

查看:126
本文介绍了Python上的Wifi扫描仪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

扫描wifi并在python中查看名字的程序



我尝试过的事情:



来自wifi导入Cell,Scheme 
Cell.all('wlan0')
cell = Cell.all('wlan0')[0]
scheme = Scheme.for_cell('wlan0','home',cell,passkey)
scheme.save()
scheme.activate()

scheme = Scheme .find('wlan0','home')
scheme.activate()



bit it does not working

解决方案

一个扫描网络的程序显示它们是用于python的ssid

代码是这个

来自wifi import Cell,Scheme 
Cell.all('wlan0')
cell = Cell.all('wlan0')[0]
scheme = Scheme.for_cell('wlan0','home',cell,passkey )
scheme.save()
scheme.activate()

scheme = Scheme.find('wlan0','home')
scheme.activate()



错误:

回溯(最近一次调用最后一次):
文件C:\\ Users\DashAmir\AppData\Local\Programs\Python\Python37\ex1.py,第2行,在<模块>
Cell.all('wlan0')
文件C:\ Users \DashAmir \ AppData \ Local \Programs \Python \Python37 \lib \ site-packages \\ \\ wifi\scan.py,第39行,所有
stderr = subprocess.STDOUT)
文件C:\ Users \DashAmir \ AppData \ Local \Programs\Python \Python37 \lib \ subprocess.py,第376行,在check_output
** kwargs).stdout
文件C:\ Users \DashAmir \ AppData \ Local \ Programs\Python \Python37 \lib \ subprocess.py,第453行,在运行
时使用Popen(* popenargs,** kwargs)作为进程:
文件C:\Users \ DashAmir \ AppData \ Local \Programs \Python \Python37 \lib\subprocess.py,第756行,在__init__
restore_signals,start_new_session)
文件C:\\ \\ Users\DashAmir \ AppData \ Local \Programs \Python \Python37 \lib \ subprocess.py,第1155行,在_execute_child $中b $ b startupinfo)
FileNotFoundError:[WinError 2]系统找不到指定的文件



也许这是不正确的一些代码这样可以显示网络ssids像无线网络


a program that scan wifi and see the names in python

What I have tried:

from wifi import Cell, Scheme
Cell.all('wlan0')
cell = Cell.all('wlan0')[0]
scheme = Scheme.for_cell('wlan0', 'home', cell, passkey)
scheme.save()
scheme.activate()

scheme = Scheme.find('wlan0', 'home')
scheme.activate()


bit it didnt work

解决方案

a program that scan network show theyre ssid that is for python
that code is this

from wifi import Cell, Scheme
Cell.all('wlan0')
cell = Cell.all('wlan0')[0]
scheme = Scheme.for_cell('wlan0', 'home', cell, passkey)
scheme.save()
scheme.activate()

scheme = Scheme.find('wlan0', 'home')
scheme.activate()


error:

Traceback (most recent call last):
  File "C:\Users\DashAmir\AppData\Local\Programs\Python\Python37\ex1.py", line 2, in <module>
    Cell.all('wlan0')
  File "C:\Users\DashAmir\AppData\Local\Programs\Python\Python37\lib\site-packages\wifi\scan.py", line 39, in all
    stderr=subprocess.STDOUT)
  File "C:\Users\DashAmir\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 376, in check_output
    **kwargs).stdout
  File "C:\Users\DashAmir\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 453, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Users\DashAmir\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 756, in __init__
    restore_signals, start_new_session)
  File "C:\Users\DashAmir\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1155, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified


maybe this is incorrect some code like this can show network ssids like wifi


这篇关于Python上的Wifi扫描仪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆