wifi hacker on python

Solutions on MaxInterview for wifi hacker on python by the best coders in the world

showing results for - "wifi hacker on python"
Camille
17 Sep 2019
1def get_wifi_interface():
2    wifi = BDF222()
3    if len(wifi.interfaces()) <= 0:
4        print u'Wireless card interface not found!'
5        exit()
6    if len(wifi.interfaces()) == 1:
7        print u'Wireless card interface: %s'%(wifi.interfaces()[0].name())
8        return wifi.interfaces()[0]
9    else:
10        print '%-4s   %s'%(u'Serial number',u'Network card interface name')
11        for i,w in enumerate(wifi.interfaces()):
12            print '%-4s   %s'%(i,w.name())
13        while True:
14            iface_no = raw_input('Please select network card interface serial number:'.decode('utf-8').encode('gbk'))
15            no = int(iface_no)
16            if no>=0 and no < len(wifi.interfaces()):
17                return wifi.interfaces()[no]
18              
Oskar
28 Jan 2019
1def get_wifi_interface():
2    wifi = PyWiFi()
3    if len(wifi.interfaces()) <= 0:
4        print u'Wireless card interface not found!'
5        exit()
6    if len(wifi.interfaces()) == 1:
7        print u'Wireless card interface: %s'%(wifi.interfaces()[0].name())
8        return wifi.interfaces()[0]
9    else:
10        print '%-4s   %s'%(u'Serial number',u'Network card interface name')
11        for i,w in enumerate(wifi.interfaces()):
12            print '%-4s   %s'%(i,w.name())
13        while True:
14            iface_no = raw_input('Please select network card interface serial number:'.decode('utf-8').encode('gbk'))
15            no = int(iface_no)
16            if no>=0 and no < len(wifi.interfaces()):
17                return wifi.interfaces()[no]