|
|
|
@ -7,7 +7,10 @@
@@ -7,7 +7,10 @@
|
|
|
|
|
# and attempt to crack a WPA key |
|
|
|
|
# using different combinations. |
|
|
|
|
|
|
|
|
|
pwfile="mydump.johnpw" |
|
|
|
|
johnbin="/root/codes/_sources/JohnTheRipper-1.8.0.6-jumbo-1/run/john" |
|
|
|
|
|
|
|
|
|
pwdir="/home/charles/dumps/k2015-08-19/besside_pwned" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rulesets=("" |
|
|
|
|
"KoreLogicRulesAppendYears" |
|
|
|
@ -16,9 +19,9 @@ rulesets=(""
@@ -16,9 +19,9 @@ rulesets=(""
|
|
|
|
|
"KoreLogicRulesL33t" |
|
|
|
|
"KoreLogicRulesReplaceLetters" ) |
|
|
|
|
|
|
|
|
|
wordlists=( "/root/codes/seclists/Passwords/rockyou-60.txt" |
|
|
|
|
"/root/codes/wordlists/seahawks.txt" |
|
|
|
|
"/root/codes/wordlists/seattle.txt" ) |
|
|
|
|
wordlists=( "/home/charles/codes/SecLists/Passwords/rockyou-60.txt" |
|
|
|
|
"/home/charles/codes/wordlists/seahawks.txt" |
|
|
|
|
"/home/charles/codes/wordlists/seattle.txt" ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -36,24 +39,48 @@ rulesets_failed=(""
@@ -36,24 +39,48 @@ rulesets_failed=(""
|
|
|
|
|
# =========================== |
|
|
|
|
# The Actual Work |
|
|
|
|
|
|
|
|
|
for rules in "${rulesets[@]}"; |
|
|
|
|
for pwfile in `/bin/ls -1 ${pwdir}/*.johnpw`; |
|
|
|
|
do |
|
|
|
|
for wordlist in "${wordlists[@]}"; |
|
|
|
|
echo "" |
|
|
|
|
echo "" |
|
|
|
|
echo "*** * * ** **** * ***** ** ** * * * ** ****" |
|
|
|
|
echo "* ** * *** **** *** * ** ** *** * * * *** *" |
|
|
|
|
echo " * ***** * * * * *** * * * * * *** * * *" |
|
|
|
|
echo "* * * * * * *** **** * *** * * * * * * *** *" |
|
|
|
|
echo "" |
|
|
|
|
echo "" |
|
|
|
|
echo "Now on password file ${pwfile}" |
|
|
|
|
echo "" |
|
|
|
|
|
|
|
|
|
for rules in "${rulesets[@]}"; |
|
|
|
|
do |
|
|
|
|
echo "" |
|
|
|
|
echo "---------------------------" |
|
|
|
|
echo "Running John the Ripper with options:" |
|
|
|
|
echo "Wordlist: ${wordlist}" |
|
|
|
|
echo "Ruleset: ${rules}" |
|
|
|
|
echo "Password File: ${pwfile}" |
|
|
|
|
if [[ "$rules" -eq "" ]] ; then |
|
|
|
|
echo "john --wordlist=${wordlist} --format=wpapsk ${pwfile}" |
|
|
|
|
else |
|
|
|
|
echo "john --wordlist=${wordlist} --format=wpapsk --rules=${rules} ${pwfile}" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
#john --wordlist=${wordlist} --format=wpapsk --rules=${rules} ${pwfile} |
|
|
|
|
echo "" |
|
|
|
|
echo " .. . .. . .... ... . . ... .. . .. . . . ." |
|
|
|
|
echo "... ... .. ...... . .. . . . .... .... ." |
|
|
|
|
echo "... . .. . . . .. .... . . . . . ... . " |
|
|
|
|
echo "" |
|
|
|
|
echo "" |
|
|
|
|
echo "Now on ruleset file ${rules}" |
|
|
|
|
echo "" |
|
|
|
|
|
|
|
|
|
for wordlist in "${wordlists[@]}"; |
|
|
|
|
do |
|
|
|
|
echo "" |
|
|
|
|
echo "---------------------------" |
|
|
|
|
echo "Running John the Ripper with options:" |
|
|
|
|
echo "Wordlist: ${wordlist}" |
|
|
|
|
echo "Ruleset: ${rules}" |
|
|
|
|
echo "Password File: ${pwfile}" |
|
|
|
|
if [[ "$rules" -eq "" ]] ; then |
|
|
|
|
echo "${johnbin} --wordlist=${wordlist} --format=wpapsk ${pwfile}" |
|
|
|
|
else |
|
|
|
|
echo "${johnbin} --wordlist=${wordlist} --format=wpapsk --rules=${rules} ${pwfile}" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
john --wordlist=${wordlist} --format=wpapsk --rules=${rules} ${pwfile} |
|
|
|
|
|
|
|
|
|
done |
|
|
|
|
done |
|
|
|
|
done |
|
|
|
|
|
|
|
|
|