Skip to content

Commit

Permalink
some cleanup after rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
mendelgusmao committed Oct 21, 2024
1 parent 203a789 commit 1ec5fe6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions wifite/model/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ def save(self):
self.essid, Configuration.cracked_file))
return

Color.pl('{+} {C}%s{O} is now ignored in {G}%s{O}.' % (
self.essid, Configuration.cracked_file))

saved_results.append(self.to_dict())
with open(name, 'w') as fid:
fid.write(dumps(saved_results, indent=2))
Expand All @@ -90,8 +87,8 @@ def display(cls, result_type):
Color.pl('{!} {R}no results found in {O}%s{W}' % name)
return

Color.pl('\n{+} Displaying {G}%d{W} cracked or ignored target(s) from {C}%s{W}\n' % (
len(targets), cls.cracked_file))
Color.pl('\n{+} Displaying {G}%d{W} %s target(s) from {C}%s{W}\n' % (
len(targets), result_type, cls.cracked_file))

results = sorted([cls.load(item) for item in targets], key=lambda x: x.date, reverse=True)
longest_essid = max(len(result.essid or 'ESSID') for result in results)
Expand Down

0 comments on commit 1ec5fe6

Please sign in to comment.