def startSurvey(self): """scans for networks, must call getNetworks to see result""" if not self.__isSurveying: if not aircrack.setMonitorMode(self.inject_device, self.monitor_device): return False self.__attack_props.clearActive() self.__surveyingThread = Thread(target=self.__survey_loop) self.__isSurveying = True self.__surveyingThread.start() self.__stage = "Surveying" return True
def main(): monitor_device = aircrack.NetworkInterface("mon0") inject_device = aircrack.NetworkInterface("wlan0") if not aircrack.setMonitorMode(inject_device, monitor_device): sys.exit(1) if inject_device.getMac().count(":") != 5: print "\tinvalid mac for injector device: %s" % inject_device.getMac() sys.exit(1) if monitor_device.getMac().count(":") != 5: print "\tinvalid mac for monitor device: %s" % monitor_device.getMac() sys.exit(1) attack_props = aircrack.AttackProperties(monitor_device, inject_device, "/caps") # run for ever getConnected(attack_props)
def main(): monitor_device = aircrack.NetworkInterface("mon0") inject_device = aircrack.NetworkInterface("wlan0") if not aircrack.setMonitorMode(inject_device, monitor_device): sys.exit(1) if inject_device.getMac().count(':') != 5: print "\tinvalid mac for injector device: %s" % inject_device.getMac() sys.exit(1) if monitor_device.getMac().count(':') != 5: print "\tinvalid mac for monitor device: %s" % monitor_device.getMac() sys.exit(1) attack_props = aircrack.AttackProperties(monitor_device, inject_device, "/caps") # run for ever getConnected(attack_props)