Skip to content

Instantly share code, notes, and snippets.

@TheRinger
Created February 6, 2020 19:21
Show Gist options
  • Save TheRinger/78822db42697b676da80501984a32f65 to your computer and use it in GitHub Desktop.
Save TheRinger/78822db42697b676da80501984a32f65 to your computer and use it in GitHub Desktop.
#!/bin/bash
#Work in process - by Tyrell Rutledge @ https://github.com/TheRinger
SIMPLE="yes"
DO_ALL_RULES="no"
LOG="$PWD/data.log"
LOCALLIST="$PWD/list.txt"
BLF=/home/alien/data/sync/h160_btc.blf
STARTPOINT=000
ENDPOINT=711
FILENUM=$(seq -w $STARTPOINT $ENDPOINT)
if [[ -f $LOG ]]; then
LASTWORDLIST=$(cat $LOG|tail -n1)
echo "The last wordlist process was ${LASTWORDLIST}"
fi
for WORDLIST in $(ls /Slackware/mirrors/dicts/big/x1??)
do
cat ${WORDLIST} > ${LOCALLIST}
TOTALWORDS=$(cat ${LOCALLIST}|wc -l)
AFTERRULE=$(expr $TOTALWORDS '*' 64)
echo "${WORDLIST} started at $(date +%'T')";
echo "${WORDLIST} has ${TOTALWORDS} base words"
echo "Applying hashcat best64.rule should generate ${AFTERRULE} total words."
echo "------------------------------------";
if [[ $DO_ALL_RULES == "yes" ]]; then
for RULE in $(ls ~/apps/hashcat/rules/*.rule)
do
echo "${RULE}"
hashcat -O -a 0 --stdout -m 99999 ${LOCALLIST} -r ${RULE}|hashrat -lines -H -sha256|tqdm --total ${AFTERRULE}|brainflayer -b /home/alien/data/sync/h160_btc.blf -a -o foundsome.txt -t priv -x
echo "Cooloff.... 1 min"
sleep 60
done
fi
if [[ $SIMPLE == "yes" ]]; then
hashcat -O -a 0 --stdout -m 99999 ${LOCALLIST} -r ${RULE:-~/apps/hashcat/rules/best64.rule}|hashrat -lines -H -sha256|tqdm --total 50000000|brainflayer -b $BLF -a -o foundsome.txt -t sha256
fi
echo "Cooloff...for 120 seconds"
echo "Words Found? ... Total: $(wc -l $PWD/foundsome.txt)"
LASTWORDLIST=${WORDLIST}
cat $PWD/foundsome.txt
rm ${LOCALLIST}
echo "TIME: $(date +%T) Finished ${WORDLIST}: Total: ${AFTERRULE} Found: $(cat $PWD/foundsome.txt)" >> $LOG
echo ${LASTWORDLIST} >> $LOG
sleep 120
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment