-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_v2.1.sh
More file actions
91 lines (82 loc) Β· 2.27 KB
/
install_v2.1.sh
File metadata and controls
91 lines (82 loc) Β· 2.27 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
#!/bin/bash
# Site Auditor v2.1 - Installation Script
echo "π Site Auditor v2.1 - Installation"
echo "===================================="
echo ""
# Check Python
echo "β Checking Python..."
python3 --version
if [ $? -ne 0 ]; then
echo "β Python 3.7+ is required"
exit 1
fi
echo ""
# Install Python dependencies
echo "π¦ Installing Python dependencies..."
pip install playwright pyyaml --break-system-packages 2>/dev/null || pip install playwright pyyaml
if [ $? -ne 0 ]; then
echo "β Failed to install Python dependencies"
exit 1
fi
echo ""
# Install Playwright browsers
echo "π Installing Playwright browsers..."
playwright install chromium
if [ $? -ne 0 ]; then
echo "β Failed to install Playwright browsers"
exit 1
fi
echo ""
# Check Node.js (optional)
echo "β Checking Node.js (optional)..."
node --version 2>/dev/null
if [ $? -ne 0 ]; then
echo "β οΈ Node.js not found"
echo " Wappalyzer won't be available (technology detection limited)"
echo " Install from: https://nodejs.org/"
echo ""
echo " You can still use the tool with built-in patterns!"
echo ""
else
# Install Wappalyzer
echo "π¦ Installing Wappalyzer CLI..."
npm install -g wappalyzer 2>/dev/null
if [ $? -ne 0 ]; then
echo "β οΈ Wappalyzer install failed"
echo " Technology detection will use fallback patterns"
echo ""
else
echo "β Wappalyzer installed successfully"
echo ""
fi
fi
# Check if files exist
echo "β Checking required files..."
if [ ! -f "site_auditor_v2.1.py" ]; then
echo "β site_auditor_v2.1.py not found"
exit 1
fi
if [ ! -f "tag_patterns.py" ]; then
echo "β tag_patterns.py not found"
exit 1
fi
echo " All required files present"
echo ""
# Make executable
chmod +x site_auditor_v2.1.py 2>/dev/null
echo "=" * 60
echo "β
Installation complete!"
echo "=" * 60
echo ""
echo "π― Quick Start:"
echo " python site_auditor_v2.1.py https://example.com"
echo ""
echo "π Documentation:"
echo " β’ QUICK-START-v2.1.md - Quick reference"
echo " β’ PATCH-NOTES-v2.1.md - What's fixed from v2.0"
echo " β’ README_v2.md - Complete docs"
echo ""
echo "π§ All options:"
echo " python site_auditor_v2.1.py --help"
echo ""
echo "Happy auditing! π"