From b522365cae1ccc855a2991d1b7a49ee40e135a33 Mon Sep 17 00:00:00 2001 From: greg j Date: Sat, 6 Jul 2019 00:59:52 -0400 Subject: [PATCH 1/2] cutb.bin is expected to be sourced from hashcat-utils vs. princeprocessor. correct working path variable name references. --- cutb.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cutb.sh b/cutb.sh index e6b47fe..cc4e60b 100755 --- a/cutb.sh +++ b/cutb.sh @@ -1,14 +1,13 @@ #!/bin/bash -pp_path="/opt/utils/princeprocessor/src" hu_path="/opt/utils/hashcat-utils/src" work_path="/opt/cutb" for i in {1..8}; do - $pp_path/cutb.bin 0 $i < $1 | sort -u > $workpath/$i-first.txt + $hu_path/cutb.bin 0 $i < $1 | sort -u > $work_path/$i-first.txt done for i in {1..8}; do - $pp_path/cutb.bin -$i < $1 | sort -u > $workpath/$i-last.txt + $hu_path/cutb.bin -$i < $1 | sort -u > $work_path/$i-last.txt done -cat $workpath/*-first.txt $workpath/*-last.txt | sort -u > $workpath/cand.cutb +cat $work_path/*-first.txt $work_path/*-last.txt | sort -u > $work_path/cand.cutb From 775126b887275e6d6f6527454e756d188fbb46dc Mon Sep 17 00:00:00 2001 From: greg j Date: Sat, 6 Jul 2019 01:46:09 -0400 Subject: [PATCH 2/2] add usage notes --- cutb.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cutb.sh b/cutb.sh index cc4e60b..492820d 100755 --- a/cutb.sh +++ b/cutb.sh @@ -1,4 +1,8 @@ #!/bin/bash + +# Example usage: +# ./cutb.sh /path/to/wordlist.txt + hu_path="/opt/utils/hashcat-utils/src" work_path="/opt/cutb"