Skip to content

Instantly share code, notes, and snippets.

@alswl
Last active November 7, 2016 10:31
Show Gist options
  • Save alswl/ac23db7e0c1ebdb6a73694ba4e3e4085 to your computer and use it in GitHub Desktop.
Save alswl/ac23db7e0c1ebdb6a73694ba4e3e4085 to your computer and use it in GitHub Desktop.
usopp, vote robot via HTTP Proxy

usage

bash usopp.sh proxy.txt

Tips

remember update proxy.txt.

111.1.32.24:9999
111.1.36.21:81
211.138.121.35:80
124.240.187.79:83
122.96.59.105:83
113.105.93.79:80
183.207.228.7:81
120.198.244.27:8080
183.207.229.13:8080
211.143.146.239:80
113.57.252.103:80
111.11.152.135:80
#!/bin/bash
DATETIME=`date "+%Y-%m-%d-%H:%M:%S"`
LIST=$1
while read line; do
{
[[ `awk 'BEGIN{srand();print rand()}'` -gt 0.8 ]] && \
curl -s 'http://www.example.com/vote/View.asp?id=41' \
--connect-timeout 150 -m 150 -x $line &> /dev/null
TIMESTAMP=`date "+%s"`
curl -s "http://www.example.com/vote/Vote.asp?id=41&xstamp=$TIMESTAMP" \
-e 'http://www.example.com/vote/index.asp' \
--connect-timeout 150 -m 150 -x $line &>> logs/"$LIST"_"$DATETIME".log
echo '' >> logs/"$LIST"_"$DATETIME".log
} &
sleep 1
done < $LIST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment