Various UI improvements, definitely works now

This commit is contained in:
derv82
2015-05-31 15:03:20 -07:00
parent 1d6d0aedb3
commit 50538168e2
5 changed files with 48 additions and 14 deletions

View File

@@ -95,10 +95,21 @@ class Airodump(object):
return result
def delete_airodump_temp_files(self):
''' Deletes airodump* files in the temp directory '''
'''
Deletes airodump* files in the temp directory.
Also deletes replay_*.cap and *.xor files in pwd.
'''
# Remove all temp files
for fil in self.find_files():
os.remove(fil)
# Remove .cap and .xor files from pwd
for fil in os.listdir('.'):
if fil.startswith('replay_') and fil.endswith('.cap'):
os.remove(fil)
if fil.endswith('.xor'):
os.remove(fil)
def get_targets(self):
''' Parses airodump's CSV file, returns list of Targets '''
# Find the .CSV file