-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (15 loc) · 1.28 KB
/
Copy pathMakefile
File metadata and controls
22 lines (15 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: setup start stop status verify-tools shell help
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " make %-15s %s\n", $$1, $$2}'
setup: ## Build Docker image and start container with all 27 security tools
@bash scripts/install-tools.sh
start: ## Start the autopentest-tools container (if stopped)
@docker start autopentest-tools 2>/dev/null || bash scripts/install-tools.sh
stop: ## Stop the autopentest-tools container
@docker stop autopentest-tools 2>/dev/null && echo "Container stopped" || echo "Container not running"
status: ## Check if the container is running
@docker inspect -f '{{.State.Status}}' autopentest-tools 2>/dev/null || echo "Container does not exist — run 'make setup'"
verify-tools: ## Check which security tools are installed in the container
@docker exec autopentest-tools sh -c 'for tool in nuclei httpx katana ffuf subfinder dalfox gau sqlmap arjun commix nmap nikto whatweb testssl jwt_tool crlfuzz nosqli websocat feroxbuster graphql-cop sstimap ssrfmap smuggler wapiti hydra corscanner dnsreaper; do command -v $$tool >/dev/null 2>&1 && echo "[+] $$tool: installed" || echo "[-] $$tool: not found"; done'
shell: ## Open a shell inside the container
@docker exec -it autopentest-tools bash