仰望星辰工作室

miaopanel

miaopanel/ scripts/traffic.sh 346 B · 11 行 原始文件
1#!/usr/bin/env bash
2# Generate demo traffic for dashboard screenshots / smoke tests.
3set -u
4COUNT="${1:-300}"
5for i in $(seq 1 "$COUNT"); do
6 curl -s -o /dev/null -H 'Host: demo.test' "http://127.0.0.1/live-$i"
7 if [ $((i % 5)) -eq 0 ]; then
8 curl -s -o /dev/null -A 'sqlmap/1.5' -H 'Host: demo.test' http://127.0.0.1/
9 fi
10 sleep 0.2
11done