curl模拟随机访问

for i in {1..20};do echo "Page $i" > ./test$i.html; done

while true; do curl -H "X-Forwarded-For:$[$RANDOM%233+1].$[$RANDOM%255].$[$RANDOM%255].$[$RANDOM%254]" http://127.1/test$[$RANDOM%20+1].html

你可能感兴趣的:(curl模拟随机访问)