Fix order of hashcat arguments (hccapx <-> wordlist)

For #15
This commit is contained in:
derv82
2017-05-16 14:24:38 -04:00
parent c23e228d3c
commit a8337a47a7

View File

@@ -48,10 +48,13 @@ class CrackHandshake(object):
def print_oclhashcat(self, cap_file): def print_oclhashcat(self, cap_file):
if not Process.exists("hashcat"): return if not Process.exists("hashcat"): return
Color.pl("\n {O}# OCLHASHCAT: GPU-based cracking. Fast.") Color.pl("\n {O}# OCLHASHCAT: GPU-based cracking. Fast.")
# TODO: Generate hccapx automatically hccapx_file = "generated.hccapx"
hccapx_file = "generated.hccapx" #cap_file if Process.exists("cap2hccapx"):
Color.pl(" {O}# Visit https://hashcat.net/cap2hccapx to generate a .hccapx file{W}") Color.pl(" {G}cap2hccapx {C}%s %s{W}" % (cap_file, hccapx_file))
Color.pl(" {G}hashcat {W}-m 2500 {C}%s %s{W}" % (self.wordlist, hccapx_file)) else:
Color.pl(" {O}# Visit https://hashcat.net/cap2hccapx to generate a .hccapx file{W}")
Color.pl(" {O}# Browse -> %s -> Convert" % cap_file)
Color.pl(" {G}hashcat {W}-m 2500 {C}%s %s{W}" % (hccapx_file, self.wordlist))
def choose_handshake(self): def choose_handshake(self):
Color.pl("\n{+} Listing captured handshakes...\n") Color.pl("\n{+} Listing captured handshakes...\n")