-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathevil-cutb.sh
executable file
·27 lines (26 loc) · 1.11 KB
/
evil-cutb.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
hupath="/opt/utils/hashcat-utils/src"
hcpath="/opt/cracken2/hashcat"
workpath="/opt/evilmog/tmp"
echo "[+] Sorting Potfile"
cut -d: -f2- < $hcpath/hashcat.potfile | sort -u > $workpath/cand.lst
for i in {1..8}; do
for s in $( eval echo {0..$i} ); do
$hupath/cutb.bin 0 $i < $workpath/cand.lst | sort -u > $workpath/$i-first-seq.txt
done
done
for i in {1..8}; do
$hupath/cutb.bin -$i < $workpath/cand.lst | sort -u > $workpath/$i-last-seq.txt
done
cat $workpath/*-first-seq.txt $workpath/*-last-seq.txt | sort -u > $workpath/cand.seq.cutb
$hupath/expander.bin < $workpath/cand.seq.cutb | sort -u > $workpath/cand.seq.cutb.exp
for i in {1..8}; do
for s in $( eval echo {0..$i} ); do
$hupath/cutb.bin 0 $i < $workpath/cand.seq.cutb.exp | sort -u > $workpath/$i-first-seq.txt
done
done
for i in {1..8}; do
$hupath/cutb.bin -$i < $workpath/cand.seq.cutb.exp | sort -u > $workpath/$i-last-seq.txt
done
cat $workpath/*-first-seq.txt $workpath/*-last-seq.txt | sort -u > $workpath/cand.seq.cutb.seq.cutb
$hupath/expander.bin < $workpath/cand.seq.cutb.seq.cutb | sort -u > $workpath/cand.seq.cutb.seq.cutb.exp