Skip to content

Commit c380c42

Browse files
authored
Merge pull request #44 from hashtopolis/bug/1012
Fixes detecting hashcat64.bin correctly
2 parents a2373d9 + ced5593 commit c380c42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

htpclient/hashcat_cracker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ def __init__(self, cracker_id, binary_download):
2929
self.executable_name = self.executable_name[:k] + "." + self.executable_name[k + 1:]
3030
self.cracker_path = Path(self.config.get_value('crackers-path'), str(cracker_id))
3131

32-
self.executable_path = Path(self.cracker_path, self.executable_name)
33-
if not os.path.isfile(self.executable_path): # in case it's not the new hashcat filename, try the old one (hashcat<bit>.<ext>)
32+
if not os.path.isfile(Path(self.cracker_path, self.executable_name)): # in case it's not the new hashcat filename, try the old one (hashcat<bit>.<ext>)
3433
self.executable_name = binary_download.get_version()['executable']
3534
k = self.executable_name.rfind(".")
3635
self.executable_name = self.executable_name[:k] + get_bit() + "." + self.executable_name[k + 1:]
36+
self.executable_path = Path(self.cracker_path, self.executable_name)
3737

3838
if Initialize.get_os() == 1:
3939
# Windows

0 commit comments

Comments
 (0)