-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·44 lines (37 loc) · 1.06 KB
/
setup.sh
File metadata and controls
executable file
·44 lines (37 loc) · 1.06 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
#!/bin/bash
# Android Malware Analysis Tool - Setup Script
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
echo "=================================="
echo " Android Malware Analysis Tool"
echo " Setup Script"
echo "=================================="
# Check Python
if ! command -v python3 &>/dev/null; then
echo "ERROR: python3 not found"
exit 1
fi
echo "✓ Python3: $(python3 --version)"
# Create venv if not exists
if [ ! -d "venv" ]; then
echo "Creating virtual environment..."
python3 -m venv venv
fi
# Activate and install
source venv/bin/activate
echo "Installing dependencies..."
pip install -q --upgrade pip
pip install -q -r requirements.txt
echo ""
echo "✓ All dependencies installed"
echo ""
echo "Usage:"
echo " source venv/bin/activate"
echo " export ANTHROPIC_API_KEY='your-key-here'"
echo " python analyzer.py analyze <apk_file>"
echo " python analyzer.py batch <directory>"
echo " python analyzer.py --help"
echo ""
echo "Quick test (no API key needed):"
echo " python analyzer.py info <apk_file>"