11-08-2013, 07:04 PM
(This post was last modified: 11-08-2013, 07:06 PM by honglonglong.)
(11-08-2013, 07:02 PM)unix-ninja Wrote: You are probably not escaping some values properly.
Can you give more details on the actual lines in the script itself?
sure!
heres the full script:
Code:
# read mask per line from the file
old_IFS=$IFS # save the field separator
IFS=$'\n'
for line in $(cat $1)
do
echo "======> mask: $line ..."
./hashcat-0.46/hashcat-cli32.bin -m 0 -a 3 --disable-potfile --outfile-format=1 -o cracked.dic $2 $line
done
IFS=$old_IFS
$1 is the mask file and $2 is the hashed file. and the mask file is like:
Code:
?l?l?l?l?l?l
--pw-min=4 ?l?l?d?d
--pw-min=5 ?l?l?l?l?d
--custom-charset1=?d?l ?1?1?1?1
only the first one works.