Skip to content

Commit ba84744

Browse files
committed
Don't overwrite john files in --crack output.
For pull request #117
1 parent f76c339 commit ba84744

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wifite/util/crack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ def print_john(self, cap_file):
6060
Color.pl(" {O}# Generate hccap file:")
6161
Color.pl(" {G}aircrack-ng {W}-J hccap {C}%s{W}" % cap_file)
6262
Color.pl(" {O}# Convert hccap file to john file:")
63-
Color.pl(" {G}hccap2john {C}hccap.hccap {W}> {C}hccap.john{W}")
63+
Color.pl(" {G}hccap2john {C}hccap.hccap {W}> {C}%s.john{W}" % cap_file)
6464
Color.pl(" {O}# Crack john file:")
65-
Color.pl(" {G}john {W}--wordlist {C}\"%s\" {W}--format=wpapsk {C}\"hccap.john\"{W}" % (self.wordlist))
65+
Color.pl(" {G}john {W}--wordlist {C}\"%s\" {W}--format=wpapsk {C}\"%s.john\"{W}" % (self.wordlist, cap_file))
6666

6767
def print_oclhashcat(self, cap_file):
6868
Color.pl("")

0 commit comments

Comments
 (0)