automated check for OSX vs Linux

This commit is contained in:
bandrel
2018-05-04 16:59:49 -04:00
parent afce942a00
commit b8b73fdb78
2 changed files with 11 additions and 8 deletions

View File

@@ -3,9 +3,5 @@
"hcatBin": "hashcat",
"hcatTuning": "--force",
"hcatWordlists": "/Passwords/wordlists",
"hcatOptimizedWordlists": "/Passwords/optimized_wordlists",
"_comment": "Change extension to .bin for Linux and .app for OSX",
"hcatExpanderBin": "expander.app",
"hcatCombinatorBin": "combinator.app",
"hcatPrinceBin": "pp64.app"
"hcatOptimizedWordlists": "/Passwords/optimized_wordlists"
}

View File

@@ -30,9 +30,16 @@ with open(hate_path + '/config.json') as config:
hcatTuning = config_parser['hcatTuning']
hcatWordlists = config_parser['hcatWordlists']
hcatOptimizedWordlists = config_parser['hcatOptimizedWordlists']
hcatExpanderBin = config_parser['hcatExpanderBin']
hcatCombinatorBin = config_parser['hcatCombinatorBin']
hcatPrinceBin = config_parser['hcatPrinceBin']
if sys.platform == 'darwin':
hcatExpanderBin = "expander.app"
hcatCombinatorBin = "combinator.app"
hcatPrinceBin = "pp64.app"
else:
hcatExpanderBin = "expander.bin"
hcatCombinatorBin = "combinator.bin"
hcatPrinceBin = "pp64.bin"
# hashcat biniary checks for systems that install hashcat binary in different location than the rest of the hashcat files
if os.path.isfile(hcatBin):