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)
 "i = 2\n    while os.path.exists(temp + 'wep-' + str(i) + '.cap'):\n        os.remove(temp + 'wep-' + str(i) + '.cap')\n        i += 1\n    "

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 ) "i = 2\n    while os.path.exists(temp + 'wep-' + str(i) + '.cap'):\n        os.remove(temp + 'wep-' + str(i) + '.cap')\n        i += 1\n    "
removes airodump output files for whatever file prefix used by wpa_get_handshake() and attack_wep() .