(prefix)
Removes airodump output files for whatever file prefix ('wpa', 'wep', etc)
        Used by wpa_get_handshake() and attack_wep()
Removes airodump output files for whatever file prefix ('wpa', 'wep', etc)
        Used by wpa_get_handshake() and attack_wep()
Removes airodump output files for whatever file prefix ( wpa wep etc ) Used by wpa_get_handshake () and attack_wep ()
def remove_airodump_files(prefix):
    """
        Removes airodump output files for whatever file prefix ('wpa', 'wep', etc)
        Used by wpa_get_handshake() and attack_wep()
    """
    global RUN_CONFIG
    remove_file(prefix + '-01.cap')
    remove_file(prefix + '-01.csv')
    remove_file(prefix + '-01.kismet.csv')
    remove_file(prefix + '-01.kismet.netxml')
    for filename in os.listdir(RUN_CONFIG.temp):
        if filename.lower().endswith('.xor'): remove_file(RUN_CONFIG.temp + filename)
    for filename in os.listdir('.'):
        if filename.startswith('replay_') and filename.endswith('.cap'):
            remove_file(filename)
        if filename.endswith('.xor'): remove_file(filename)
    # Remove .cap's from previous attack sessions
    """i = 2
    while os.path.exists(temp + 'wep-' + str(i) + '.cap'):
        os.remove(temp + 'wep-' + str(i) + '.cap')
        i += 1
    """
def remove_airodump_files ( prefix ) : global RUN_CONFIG remove_file ( prefix + '-01.cap' ) remove_file ( prefix + '-01.csv' ) remove_file ( prefix + '-01.kismet.csv' ) remove_file ( prefix + '-01.kismet.netxml' ) for filename in os . listdir ( RUN_CONFIG . temp ) : if filename . lower ( ) . endswith ( '.xor' ) : remove_file ( RUN_CONFIG . temp + filename ) for filename in os . listdir ( '.' ) : if filename . startswith ( 'replay_' ) and filename . endswith ( '.cap' ) : remove_file ( filename ) if filename . endswith ( '.xor' ) : remove_file ( filename ) # Remove .cap's from previous attack sessions """i = 2
    while os.path.exists(temp + 'wep-' + str(i) + '.cap'):
        os.remove(temp + 'wep-' + str(i) + '.cap')
        i += 1
    """