Esempio n. 1
0
 def search_strength_of_target(self):
     mac_list = antenna.get_mac_strength_not_connected(self.strInterfaceName)
     for i in range(0,len(mac_list)):
         if self.strTargetBSSID == mac_list[i][0]:
             return mac_list[i][1]
         time.sleep(0.05)
     return (9000)
Esempio n. 2
0
    def select_target(self):
        mac_strength_list = antenna.get_mac_strength_not_connected(self.strInterfaceName)
        for i in range(len(mac_strength_list)):
            print("index:%d BSSID %s: %d db" %(i,mac_strength_list[i][0],\
                    mac_strength_list[i][1]))

        target = input("Please enter the index of the target: ")
        self.strTargetBSSID = mac_strength_list[int(target)][0]
        print(self.strTargetBSSID)
        return