1 Star 1 Fork 0

fahawifi/routersploit

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
Marcin Bury 提交于 2018-11-03 20:14 . Adding multiple tests (#545)
.PHONY: build run test lint lint-modules clean prune help
DIRECTORY=.
EXCLUDED=.git,rsf.py
RSF_IMAGE=routersploit
FLAKE8_IGNORED_RULES=E501,F405,F403,W504
build:
docker build -t $(RSF_IMAGE) .
run:
docker run -it --rm $(RSF_IMAGE)
lint:
python3 -m flake8 --exclude=$(EXCLUDED) --ignore=$(FLAKE8_IGNORED_RULES) $(DIRECTORY)
tests: clean
python3 -m pytest -n16 tests/core/ tests/test_exploit_scenarios.py tests/test_module_info.py
python3 -m pytest -n16 tests/exploits/ tests/creds/ tests/encoders/ tests/generic/ tests/payloads/
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
prune:
docker images -q -f dangling=true | xargs docker rmi
docker ps -q -f status=exited | xargs docker rm
help:
@echo " run"
@echo " Run Routersploit in docker container"
@echo " lint"
@echo " Check style with flake8."
@echo " test"
@echo " Run test suite"
@echo " clean"
@echo " Remove python artifacts."
@echo " prune"
@echo " Remove dangling docker images and exited containers."
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fahawifi/routersploit.git
git@gitee.com:fahawifi/routersploit.git
fahawifi
routersploit
routersploit
master

搜索帮助