VPS流量用不完,利用webBenchmark做点有意义的事情——给垃圾VPS做压力测试

VPS流量用不完,利用webBenchmark做点有意义的事情——给垃圾VPS做压力测试

V+变量
2025-03-07 / 0 评论 / 6 阅读 / 正在检测是否收录...

一前言

1关于webBenchmark

Github地址

http 基准测试工具耗尽了您的服务器带宽。
用户在使用本工具前请先查看授权及免责声明,webBenchmark一个用于测试网页服务器性能的工具,启用其他用途,后果自负。
每次请求时随机使用 User-Agent
可自定义的 Referer Url,
可自定义的标题,
并发例程随您所愿,取决于您的服务器性能。
http post 模式
指定多目标ip,或者通过系统dns解析。
随机 X-Forwarded-For 和 X-Real-IP(默认开启)。

2用途

自动调整并发例程以获得最佳性能。
支持指定目标 IP 地址的非标准端口。
来自远程服务器的订阅基准测试任务。

二 安装教程

1 下载脚本

wget https://github.com/maintell/webBenchmark/releases/download/0.5/webBenchmark_linux_x64

2 修改权限

chmod +x webBenchmark_linux_x64

3 开启测试

./webBenchmark_linux_x64 -c 32 -s https://target.url

4 示例

# send request to 10.0.0.1 and 10.0.0.2 for https://target.url with 32 concurrent threads 
# and refer is https://refer.url 
./webBenchmark_linux_x64 -c 32 -s https://target.url -r https://refer.url -i 10.0.0.1 -i 10.0.0.2
# send request to https://target.url with header regid:123 and sign:Random10
./webBenchmark_linux_x64 -s https://target.url -H 'regid:123' -H 'sign:QpXDYHdVzB'

5 其他使用方法

webBenchmark -c [COUNT] -s [URL] -r [REFERER]
-c int
      concurrent routines for download (default 16)
-r string
      referer url
-s string
      target url (default "https://baidu.com")
-i string
      custom ip address for that domain, multiple addresses automatically will be assigned randomly
-H http header pattern
      http header pattern, use Random with number prefix will generate random string, same key will be overwritten
-f string
      randomized X-Forwarded-For and X-Real-IP address
-p string
      post content

三 用途

有收到诈骗短信的,可以抓一下他们的软件安装包,通过webBenchmark刷流量。(实测选用0.5或者0.6这种老版本的更好用)

0

评论 (0)

取消