Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
127 lines (103 loc) · 2.99 KB
/
Copy pathMakefile
File metadata and controls
127 lines (103 loc) · 2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
.PHONY: help install install-dev test test-cov lint format clean build docker-build docker-run docker-stop docker-clean
# Default target
help:
@echo "Argus - Information Gathering & Reconnaissance Toolkit"
@echo ""
@echo "Available commands:"
@echo " install - Install Argus and dependencies"
@echo " install-dev - Install Argus with development dependencies"
@echo " test - Run tests"
@echo " test-cov - Run tests with coverage"
@echo " lint - Run linting checks"
@echo " format - Format code with black and isort"
@echo " clean - Clean build artifacts"
@echo " build - Build package"
@echo " docker-build - Build Docker image"
@echo " docker-run - Run Argus in Docker"
@echo " docker-stop - Stop Docker container"
@echo " docker-clean - Clean Docker artifacts"
# Installation
install:
pip install -e .
install-dev:
pip install -e ".[dev,full]"
# Testing
test:
pytest tests/ -v
test-cov:
pytest tests/ --cov=argus --cov-report=html --cov-report=term-missing
# Code quality
lint:
flake8 argus/ tests/
bandit -r argus/
mypy argus/
format:
black argus/ tests/
isort argus/ tests/
# Cleaning
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
rm -rf .pytest_cache/
rm -rf .coverage
rm -rf htmlcov/
find . -type d -name __pycache__ -delete
find . -type f -name "*.pyc" -delete
# Building
build:
python -m build
# Docker operations
docker-build:
docker build -t argus-recon:latest .
docker-run:
docker run -it --rm \
-v $(PWD)/results:/app/results \
-v $(PWD)/config:/app/config \
-v $(PWD)/logs:/app/logs \
--network host \
argus-recon:latest
docker-run-interactive:
docker run -it --rm \
-v $(PWD)/results:/app/results \
-v $(PWD)/config:/app/config \
-v $(PWD)/logs:/app/logs \
--network host \
argus-recon:latest bash
docker-compose-up:
docker-compose up -d
docker-compose-down:
docker-compose down
docker-clean:
docker system prune -f
docker image prune -f
# Development shortcuts
dev-setup: install-dev
@echo "Development environment setup complete!"
quick-test: format lint test
@echo "Quick test cycle complete!"
# Security checks
security-check:
bandit -r argus/ -f json -o bandit-report.json
safety check
# Documentation
docs-build:
sphinx-build -b html docs/ docs/_build/html
docs-serve:
cd docs/_build/html && python -m http.server 8000
# Release preparation
release-check: clean format lint test security-check
@echo "Release checks complete!"
# Environment setup
setup-env:
python -m venv venv
@echo "Virtual environment created. Activate with: source venv/bin/activate (Linux/Mac) or venv\\Scripts\\activate (Windows)"
# API key setup reminder
setup-api-keys:
@echo "Remember to set up your API keys:"
@echo "export VIRUSTOTAL_API_KEY='your_key_here'"
@echo "export SHODAN_API_KEY='your_key_here'"
@echo "export CENSYS_API_ID='your_id_here'"
@echo "export CENSYS_API_SECRET='your_secret_here'"
@echo "export GOOGLE_API_KEY='your_key_here'"
@echo "export HIBP_API_KEY='your_key_here'"