Exemplo n.º 1
0
def airodump(ch, interface):
    return airodump_ng('-c',
                       ch,
                       '-w',
                       'data/inj',
                       interface.dev,
                       _err=lambda l: 0)
Exemplo n.º 2
0
def select_target_network(interface, exclude=set()):
    networks = None
    while networks is None:
        try:
            airodump_process = airodump_ng('--encrypt', 'wep', '-w', 'data/scan', interface.dev, _err=lambda l: 0)
            time.sleep(settings.AIRODUMP_SCAN_WAIT)
            airodump_process.terminate()
            networks = Reader('data/scan-01.csv').get_sorted_networks()
        except UnicodeDecodeError, e:
            logger.warning('Decoding the output of airodump failed, trying again from scratch (Error: %s)', e)
Exemplo n.º 3
0
def select_target_network(interface, exclude=set()):
    networks = None
    while networks is None:
        try:
            airodump_process = airodump_ng('--encrypt',
                                           'wep',
                                           '-w',
                                           'data/scan',
                                           interface.dev,
                                           _err=lambda l: 0)
            time.sleep(settings.AIRODUMP_SCAN_WAIT)
            airodump_process.terminate()
            networks = Reader('data/scan-01.csv').get_sorted_networks()
        except UnicodeDecodeError, e:
            logger.warning(
                'Decoding the output of airodump failed, trying again from scratch (Error: %s)',
                e)
Exemplo n.º 4
0
def airodump(ch, interface):
    return airodump_ng('-c', ch, '-w', 'data/inj', interface.dev, _err=lambda l: 0)