bash usopp.sh proxy.txt
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 |