mirror of
https://github.com/trustedsec/hate_crack.git
synced 2025-12-12 15:49:19 -08:00
Merge pull request #35 from discoking/master
Added pipal option to the menu
This commit is contained in:
0
PACK/maskgen.py
Executable file → Normal file
0
PACK/maskgen.py
Executable file → Normal file
0
PACK/policygen.py
Executable file → Normal file
0
PACK/policygen.py
Executable file → Normal file
0
PACK/rulegen.py
Executable file → Normal file
0
PACK/rulegen.py
Executable file → Normal file
0
PACK/statsgen.py
Executable file → Normal file
0
PACK/statsgen.py
Executable file → Normal file
@@ -13,5 +13,6 @@
|
||||
"hcatThoroughBaseList": "rockyou.txt",
|
||||
"hcatGoodMeasureBaseList": "rockyou.txt",
|
||||
"hcatRules": ["best64.rule","d3ad0ne.rule", "T0XlC.rule", "dive.rule"],
|
||||
"hcatPrinceBaseList": "rockyou.txt"
|
||||
"hcatPrinceBaseList": "rockyou.txt",
|
||||
"pipalPath": "/path/to/pipal"
|
||||
}
|
||||
0
hashcat-utils/bin/cleanup-rules.app
Executable file → Normal file
0
hashcat-utils/bin/cleanup-rules.app
Executable file → Normal file
0
hashcat-utils/bin/cleanup-rules.bin
Executable file → Normal file
0
hashcat-utils/bin/cleanup-rules.bin
Executable file → Normal file
0
hashcat-utils/bin/cleanup-rules.exe
Executable file → Normal file
0
hashcat-utils/bin/cleanup-rules.exe
Executable file → Normal file
0
hashcat-utils/bin/combinator.app
Executable file → Normal file
0
hashcat-utils/bin/combinator.app
Executable file → Normal file
0
hashcat-utils/bin/combinator.bin
Executable file → Normal file
0
hashcat-utils/bin/combinator.bin
Executable file → Normal file
0
hashcat-utils/bin/combinator.exe
Executable file → Normal file
0
hashcat-utils/bin/combinator.exe
Executable file → Normal file
0
hashcat-utils/bin/combinator3.app
Executable file → Normal file
0
hashcat-utils/bin/combinator3.app
Executable file → Normal file
0
hashcat-utils/bin/combinator3.bin
Executable file → Normal file
0
hashcat-utils/bin/combinator3.bin
Executable file → Normal file
0
hashcat-utils/bin/combinator3.exe
Executable file → Normal file
0
hashcat-utils/bin/combinator3.exe
Executable file → Normal file
0
hashcat-utils/bin/combipow.app
Executable file → Normal file
0
hashcat-utils/bin/combipow.app
Executable file → Normal file
0
hashcat-utils/bin/combipow.bin
Executable file → Normal file
0
hashcat-utils/bin/combipow.bin
Executable file → Normal file
0
hashcat-utils/bin/combipow.exe
Executable file → Normal file
0
hashcat-utils/bin/combipow.exe
Executable file → Normal file
0
hashcat-utils/bin/cutb.app
Executable file → Normal file
0
hashcat-utils/bin/cutb.app
Executable file → Normal file
0
hashcat-utils/bin/cutb.bin
Executable file → Normal file
0
hashcat-utils/bin/cutb.bin
Executable file → Normal file
0
hashcat-utils/bin/cutb.exe
Executable file → Normal file
0
hashcat-utils/bin/cutb.exe
Executable file → Normal file
0
hashcat-utils/bin/expander.app
Executable file → Normal file
0
hashcat-utils/bin/expander.app
Executable file → Normal file
0
hashcat-utils/bin/expander.bin
Executable file → Normal file
0
hashcat-utils/bin/expander.bin
Executable file → Normal file
0
hashcat-utils/bin/expander.exe
Executable file → Normal file
0
hashcat-utils/bin/expander.exe
Executable file → Normal file
0
hashcat-utils/bin/gate.app
Executable file → Normal file
0
hashcat-utils/bin/gate.app
Executable file → Normal file
0
hashcat-utils/bin/gate.bin
Executable file → Normal file
0
hashcat-utils/bin/gate.bin
Executable file → Normal file
0
hashcat-utils/bin/gate.exe
Executable file → Normal file
0
hashcat-utils/bin/gate.exe
Executable file → Normal file
0
hashcat-utils/bin/generate-rules.app
Executable file → Normal file
0
hashcat-utils/bin/generate-rules.app
Executable file → Normal file
0
hashcat-utils/bin/generate-rules.bin
Executable file → Normal file
0
hashcat-utils/bin/generate-rules.bin
Executable file → Normal file
0
hashcat-utils/bin/generate-rules.exe
Executable file → Normal file
0
hashcat-utils/bin/generate-rules.exe
Executable file → Normal file
0
hashcat-utils/bin/hcstatgen.app
Executable file → Normal file
0
hashcat-utils/bin/hcstatgen.app
Executable file → Normal file
0
hashcat-utils/bin/hcstatgen.bin
Executable file → Normal file
0
hashcat-utils/bin/hcstatgen.bin
Executable file → Normal file
0
hashcat-utils/bin/hcstatgen.exe
Executable file → Normal file
0
hashcat-utils/bin/hcstatgen.exe
Executable file → Normal file
0
hashcat-utils/bin/keyspace.app
Executable file → Normal file
0
hashcat-utils/bin/keyspace.app
Executable file → Normal file
0
hashcat-utils/bin/keyspace.bin
Executable file → Normal file
0
hashcat-utils/bin/keyspace.bin
Executable file → Normal file
0
hashcat-utils/bin/keyspace.exe
Executable file → Normal file
0
hashcat-utils/bin/keyspace.exe
Executable file → Normal file
0
hashcat-utils/bin/len.app
Executable file → Normal file
0
hashcat-utils/bin/len.app
Executable file → Normal file
0
hashcat-utils/bin/len.bin
Executable file → Normal file
0
hashcat-utils/bin/len.bin
Executable file → Normal file
0
hashcat-utils/bin/len.exe
Executable file → Normal file
0
hashcat-utils/bin/len.exe
Executable file → Normal file
0
hashcat-utils/bin/mli2.app
Executable file → Normal file
0
hashcat-utils/bin/mli2.app
Executable file → Normal file
0
hashcat-utils/bin/mli2.bin
Executable file → Normal file
0
hashcat-utils/bin/mli2.bin
Executable file → Normal file
0
hashcat-utils/bin/mli2.exe
Executable file → Normal file
0
hashcat-utils/bin/mli2.exe
Executable file → Normal file
0
hashcat-utils/bin/morph.app
Executable file → Normal file
0
hashcat-utils/bin/morph.app
Executable file → Normal file
0
hashcat-utils/bin/morph.bin
Executable file → Normal file
0
hashcat-utils/bin/morph.bin
Executable file → Normal file
0
hashcat-utils/bin/morph.exe
Executable file → Normal file
0
hashcat-utils/bin/morph.exe
Executable file → Normal file
0
hashcat-utils/bin/permute.app
Executable file → Normal file
0
hashcat-utils/bin/permute.app
Executable file → Normal file
0
hashcat-utils/bin/permute.bin
Executable file → Normal file
0
hashcat-utils/bin/permute.bin
Executable file → Normal file
0
hashcat-utils/bin/permute.exe
Executable file → Normal file
0
hashcat-utils/bin/permute.exe
Executable file → Normal file
0
hashcat-utils/bin/permute_exist.app
Executable file → Normal file
0
hashcat-utils/bin/permute_exist.app
Executable file → Normal file
0
hashcat-utils/bin/permute_exist.bin
Executable file → Normal file
0
hashcat-utils/bin/permute_exist.bin
Executable file → Normal file
0
hashcat-utils/bin/permute_exist.exe
Executable file → Normal file
0
hashcat-utils/bin/permute_exist.exe
Executable file → Normal file
0
hashcat-utils/bin/prepare.app
Executable file → Normal file
0
hashcat-utils/bin/prepare.app
Executable file → Normal file
0
hashcat-utils/bin/prepare.bin
Executable file → Normal file
0
hashcat-utils/bin/prepare.bin
Executable file → Normal file
0
hashcat-utils/bin/prepare.exe
Executable file → Normal file
0
hashcat-utils/bin/prepare.exe
Executable file → Normal file
0
hashcat-utils/bin/req-exclude.app
Executable file → Normal file
0
hashcat-utils/bin/req-exclude.app
Executable file → Normal file
0
hashcat-utils/bin/req-exclude.bin
Executable file → Normal file
0
hashcat-utils/bin/req-exclude.bin
Executable file → Normal file
0
hashcat-utils/bin/req-exclude.exe
Executable file → Normal file
0
hashcat-utils/bin/req-exclude.exe
Executable file → Normal file
0
hashcat-utils/bin/req-include.app
Executable file → Normal file
0
hashcat-utils/bin/req-include.app
Executable file → Normal file
0
hashcat-utils/bin/req-include.bin
Executable file → Normal file
0
hashcat-utils/bin/req-include.bin
Executable file → Normal file
0
hashcat-utils/bin/req-include.exe
Executable file → Normal file
0
hashcat-utils/bin/req-include.exe
Executable file → Normal file
0
hashcat-utils/bin/rli.app
Executable file → Normal file
0
hashcat-utils/bin/rli.app
Executable file → Normal file
0
hashcat-utils/bin/rli.bin
Executable file → Normal file
0
hashcat-utils/bin/rli.bin
Executable file → Normal file
0
hashcat-utils/bin/rli.exe
Executable file → Normal file
0
hashcat-utils/bin/rli.exe
Executable file → Normal file
0
hashcat-utils/bin/rli2.app
Executable file → Normal file
0
hashcat-utils/bin/rli2.app
Executable file → Normal file
0
hashcat-utils/bin/rli2.bin
Executable file → Normal file
0
hashcat-utils/bin/rli2.bin
Executable file → Normal file
0
hashcat-utils/bin/rli2.exe
Executable file → Normal file
0
hashcat-utils/bin/rli2.exe
Executable file → Normal file
0
hashcat-utils/bin/seprule.pl
Executable file → Normal file
0
hashcat-utils/bin/seprule.pl
Executable file → Normal file
0
hashcat-utils/bin/splitlen.app
Executable file → Normal file
0
hashcat-utils/bin/splitlen.app
Executable file → Normal file
0
hashcat-utils/bin/splitlen.bin
Executable file → Normal file
0
hashcat-utils/bin/splitlen.bin
Executable file → Normal file
0
hashcat-utils/bin/splitlen.exe
Executable file → Normal file
0
hashcat-utils/bin/splitlen.exe
Executable file → Normal file
0
hashcat-utils/bin/strip-bsn.app
Executable file → Normal file
0
hashcat-utils/bin/strip-bsn.app
Executable file → Normal file
0
hashcat-utils/bin/strip-bsn.bin
Executable file → Normal file
0
hashcat-utils/bin/strip-bsn.bin
Executable file → Normal file
0
hashcat-utils/bin/strip-bsn.exe
Executable file → Normal file
0
hashcat-utils/bin/strip-bsn.exe
Executable file → Normal file
0
hashcat-utils/bin/strip-bsr.app
Executable file → Normal file
0
hashcat-utils/bin/strip-bsr.app
Executable file → Normal file
0
hashcat-utils/bin/strip-bsr.bin
Executable file → Normal file
0
hashcat-utils/bin/strip-bsr.bin
Executable file → Normal file
0
hashcat-utils/bin/strip-bsr.exe
Executable file → Normal file
0
hashcat-utils/bin/strip-bsr.exe
Executable file → Normal file
0
hashcat-utils/bin/tmesis.pl
Executable file → Normal file
0
hashcat-utils/bin/tmesis.pl
Executable file → Normal file
0
hashcat-utils/bin/topmorph.pl
Executable file → Normal file
0
hashcat-utils/bin/topmorph.pl
Executable file → Normal file
53
hate_crack.py
Executable file → Normal file
53
hate_crack.py
Executable file → Normal file
@@ -36,6 +36,12 @@ hcatTuning = config_parser['hcatTuning']
|
||||
hcatWordlists = config_parser['hcatWordlists']
|
||||
hcatOptimizedWordlists = config_parser['hcatOptimizedWordlists']
|
||||
|
||||
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']
|
||||
except KeyError as e:
|
||||
@@ -158,7 +164,7 @@ def ascii_art():
|
||||
\ Y // __ \| | \ ___/ \ \____| | \// __ \\ \___| <
|
||||
\___|_ /(____ /__| \___ >____\______ /|__| (____ /\___ >__|_ \
|
||||
\/ \/ \/_____/ \/ \/ \/ \/
|
||||
Version 1.07
|
||||
Version 1.08
|
||||
""")
|
||||
|
||||
|
||||
@@ -859,6 +865,8 @@ def cleanup():
|
||||
os.remove(hcatHashFileOrig + ".lm.cracked")
|
||||
if os.path.exists(hcatHashFileOrig + ".working"):
|
||||
os.remove(hcatHashFileOrig + ".working")
|
||||
if os.path.exists(hcatHashFileOrig + ".passwords"):
|
||||
os.remove(hcatHashFileOrig + ".passwords")
|
||||
except KeyboardInterrupt:
|
||||
#incase someone mashes the Control+C it will still cleanup
|
||||
cleanup()
|
||||
@@ -1036,6 +1044,45 @@ def show_results():
|
||||
else:
|
||||
print("No hashes were cracked :(")
|
||||
|
||||
# Analyze Hashes with Pipal
|
||||
def pipal():
|
||||
hcatHashFilePipal = hcatHashFile
|
||||
if hcatHashType == "1000":
|
||||
combine_ntlm_output()
|
||||
hcatHashFilePipal = hcatHashFileOrig
|
||||
|
||||
if os.path.isfile(pipalPath):
|
||||
if os.path.isfile(hcatHashFilePipal + ".out"):
|
||||
pipalFile = open(hcatHashFilePipal + ".passwords", 'w')
|
||||
with open(hcatHashFilePipal + ".out") as hcatOutput:
|
||||
for cracked_hash in hcatOutput:
|
||||
password = cracked_hash.split(':')
|
||||
clearTextPass = password[-1]
|
||||
match = re.search(r'^\$HEX\[(\S+)\]', clearTextPass)
|
||||
if match:
|
||||
clearTextPass = binascii.unhexlify(match.group(1)).decode('iso-8859-9')
|
||||
pipalFile.write(clearTextPass)
|
||||
pipalFile.close()
|
||||
|
||||
pipalProcess = subprocess.Popen(
|
||||
"{pipal_path} {pipal_file} --output {pipal_out} ".format(
|
||||
pipal_path=pipalPath,
|
||||
pipal_file=hcatHashFilePipal + ".passwords",
|
||||
pipal_out=hcatHashFilePipal + ".pipal"),
|
||||
shell=True)
|
||||
try:
|
||||
pipalProcess.wait()
|
||||
except KeyboardInterrupt:
|
||||
print('Killing PID {0}...'.format(str(pipalProcess.pid)))
|
||||
pipalProcess.kill()
|
||||
print "Pipal file is at " + hcatHashFilePipal + ".pipal\n"
|
||||
else:
|
||||
print("No hashes were cracked :(")
|
||||
else:
|
||||
print("The path to pipal.rb is either not set, or is incorrect.")
|
||||
|
||||
|
||||
|
||||
# Exports output to excel file
|
||||
def export_excel():
|
||||
|
||||
@@ -1172,7 +1219,8 @@ def main():
|
||||
print("\t(10) YOLO Combinator Attack")
|
||||
print("\t(11) Middle Combinator Attack")
|
||||
print("\t(12) Thorough Combinator Attack")
|
||||
print("\n\t(96) Export Output to Excel Format")
|
||||
print("\n\t(95) Analyze hashes with Pipal")
|
||||
print("\t(96) Export Output to Excel Format")
|
||||
print("\t(97) Display Cracked Hashes")
|
||||
print("\t(98) Display README")
|
||||
print("\t(99) Quit")
|
||||
@@ -1188,6 +1236,7 @@ def main():
|
||||
"10": yolo_combination,
|
||||
"11": middle_combinator,
|
||||
"12": thorough_combinator,
|
||||
"95": pipal,
|
||||
"96": export_excel,
|
||||
"97": show_results,
|
||||
"98": show_readme,
|
||||
|
||||
0
princeprocessor/pp64.app
Executable file → Normal file
0
princeprocessor/pp64.app
Executable file → Normal file
0
princeprocessor/pp64.bin
Executable file → Normal file
0
princeprocessor/pp64.bin
Executable file → Normal file
@@ -57,7 +57,7 @@ $ ./hate_crack.py <hash file> 1000
|
||||
\ Y // __ \| | \ ___/ \ \____| | \// __ \\ \___| <
|
||||
\___|_ /(____ /__| \___ >____\______ /|__| (____ /\___ >__|_ \
|
||||
\/ \/ \/_____/ \/ \/ \/ \/
|
||||
Version 1.06
|
||||
Version 1.08
|
||||
|
||||
|
||||
(1) Quick Crack
|
||||
@@ -73,6 +73,7 @@ $ ./hate_crack.py <hash file> 1000
|
||||
(11) Middle Combinator Attack
|
||||
(12) Thorough Combinator Attack
|
||||
|
||||
(95) Analyze hashes with Pipal
|
||||
(96) Export Output to Excel Format
|
||||
(97) Display Cracked Hashes
|
||||
(98) Display README
|
||||
@@ -179,6 +180,9 @@ https://jeffh.net/2018/04/26/combinator_methods/
|
||||
|
||||
-------------------------------------------------------------------
|
||||
### Version History
|
||||
Version 1.08
|
||||
Added a Pipal menu Option to analyze hashes. https://github.com/digininja/pipal
|
||||
|
||||
Version 1.07
|
||||
Minor bug fixes with pwdump formating and unhexify function
|
||||
|
||||
|
||||
0
wordlist_optimizer.py
Executable file → Normal file
0
wordlist_optimizer.py
Executable file → Normal file
Reference in New Issue
Block a user