#!/bin/bash
start_time=$(date +%s)
end_time=$((start_time + 3600))
while true
do
current_time=$(date +%s)
if [ $current_time -gt $end_time ]; then
break
fi
for ((i=1; i<=10000; i++))
do
curl 'https://xxxx.xxxx.net/api/graphql/backend' \
-H 'accept: application/json' \
-H 'authorization: Bearer xxxxxxxxxxxx' \
-H 'content-type: application/json' \
--data-raw "user_id: $i" \
--compressed
echo $i
if (( $i % 100 == 0 )); then
sleep 1
fi
done
sleep 1
done
版权属于:
admin
作品采用:
《
署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
》许可协议授权
评论 (0)