mirror of
https://github.com/trustedsec/hate_crack.git
synced 2025-12-12 15:49:19 -08:00
Add Pipal menu
This commit is contained in:
@@ -35,7 +35,12 @@ hcatBin = config_parser['hcatBin']
|
||||
hcatTuning = config_parser['hcatTuning']
|
||||
hcatWordlists = config_parser['hcatWordlists']
|
||||
hcatOptimizedWordlists = config_parser['hcatOptimizedWordlists']
|
||||
pipalPath = config_parser['pipalPath']
|
||||
|
||||
try:
|
||||
pipalPath = config_parser['pipalPath']
|
||||
except KeyError as e:
|
||||
print('{0} is not defined in config.json using defaults from config.json.example'.format(e))
|
||||
pipalPath = default_config['pipalPath']
|
||||
|
||||
try:
|
||||
hcatRules = config_parser['hcatRules']
|
||||
@@ -1043,8 +1048,8 @@ def pipal():
|
||||
pipalFile = open(hcatHashFile + ".pipal", 'w')
|
||||
with open(hcatHashFile + ".out") as hcatOutput:
|
||||
for cracked_hash in hcatOutput:
|
||||
password = cracked_hash.split(':')
|
||||
pipalFile.write(password[6])
|
||||
password = cracked_hash.rsplit(':',1)
|
||||
pipalFile.write(password[0])
|
||||
print pipalFile
|
||||
pipalProcess = subprocess.Popen(
|
||||
"{pipal_path} {pipal_file} --output {pipal_out} ".format(
|
||||
|
||||
Reference in New Issue
Block a user