I'm running a very time-consuming script which takes many hours to end. Watching top I see that it's only taking 5% of the CPU at best, usually around 3%.
Is there any way to force the script to use more CPU in order to end faster?
Edit:
Basically the script is bruteforcing 5 chars length passwords given a the salt and the hash.
Not at home right now, but something like:
charset = ['a','b',.........'z'];
for i in $charset do
for j in $charset do
for k in $charset do
for l in $charset do
for m in $charset do
pass = `openssl passwd -salt $1 $i$j$k$l$m`
if [ pass == $2 ]]; then
echo "Password: $i$j$k$l$m";
exit;
fi
done
done
done
done
done