locust压测

今天偶尔发现一个钓鱼网址,然后利用locust对其进行压测

附上伪装成英雄联盟手游官网的钓鱼网址:http://slohl.urbnmalls.com.cn/

1.python环境下
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple locust

安装locust包

2.编写python代码

3.在test001.py路径下执行语句(也可写成绝对路径)

locust -f test001.py

4.在浏览器打开 localhost:8089

5.填入线程数,访问次数,目标网址,进行压测攻击

locust参考:https://www.cnblogs.com/imyalost/p/9758189.html