Skip to content

Commit

Permalink
Don't overwrite john files in --crack output.
Browse files Browse the repository at this point in the history
For pull request #117
  • Loading branch information
derv82 committed Aug 16, 2018
1 parent f76c339 commit ba84744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wifite/util/crack.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def print_john(self, cap_file):
Color.pl(" {O}# Generate hccap file:")
Color.pl(" {G}aircrack-ng {W}-J hccap {C}%s{W}" % cap_file)
Color.pl(" {O}# Convert hccap file to john file:")
Color.pl(" {G}hccap2john {C}hccap.hccap {W}> {C}hccap.john{W}")
Color.pl(" {G}hccap2john {C}hccap.hccap {W}> {C}%s.john{W}" % cap_file)
Color.pl(" {O}# Crack john file:")
Color.pl(" {G}john {W}--wordlist {C}\"%s\" {W}--format=wpapsk {C}\"hccap.john\"{W}" % (self.wordlist))
Color.pl(" {G}john {W}--wordlist {C}\"%s\" {W}--format=wpapsk {C}\"%s.john\"{W}" % (self.wordlist, cap_file))

def print_oclhashcat(self, cap_file):
Color.pl("")
Expand Down

0 comments on commit ba84744

Please sign in to comment.