-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_ScayNum.sh
More file actions
152 lines (130 loc) · 3.79 KB
/
run_ScayNum.sh
File metadata and controls
152 lines (130 loc) · 3.79 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#!/bin/bash
# ScayNum Shell Launcher
# Advanced OSINT Tool by Scayar
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
CYAN='\033[0;36m'
WHITE='\033[1;37m'
NC='\033[0m' # No Color
# Function to print colored output
print_color() {
local color=$1
local message=$2
echo -e "${color}${message}${NC}"
}
# Function to show banner
show_banner() {
print_color $CYAN "========================================"
print_color $CYAN " ScayNum by Scayar"
print_color $CYAN "========================================"
echo ""
}
# Function to show help
show_help() {
show_banner
print_color $WHITE "Available commands:"
print_color $WHITE " ./run_ScayNum.sh install - Install dependencies"
print_color $WHITE " ./run_ScayNum.sh update - Update ScayNum"
print_color $WHITE " ./run_ScayNum.sh test - Test installation"
print_color $WHITE " ./run_ScayNum.sh help - Show this help"
print_color $WHITE " ./run_ScayNum.sh - Run ScayNum"
echo ""
print_color $YELLOW "Quick start:"
print_color $YELLOW " ./run_ScayNum.sh install"
print_color $YELLOW " ./run_ScayNum.sh"
}
# Function to install dependencies
install_dependencies() {
print_color $CYAN "📦 Installing ScayNum dependencies..."
# Check if Python is installed
if ! command -v python3 &> /dev/null; then
print_color $RED "❌ Python3 is not installed"
print_color $YELLOW "💡 Please install Python3 from: https://python.org/"
exit 1
fi
# Upgrade pip
print_color $WHITE " Upgrading pip..."
python3 -m pip install --upgrade pip
# Install requirements
print_color $WHITE " Installing requirements..."
pip3 install -r requirements.txt
print_color $GREEN "✅ Installation completed!"
}
# Function to update ScayNum
update_scaynum() {
print_color $CYAN "🔄 Updating ScayNum..."
# Check if git is available
if ! command -v git &> /dev/null; then
print_color $RED "❌ Git is not installed"
print_color $YELLOW "💡 Please install Git from: https://git-scm.com/"
exit 1
fi
# Pull latest changes
print_color $WHITE " Pulling latest changes..."
git pull origin main
# Install updated requirements
print_color $WHITE " Installing updated requirements..."
pip3 install -r requirements.txt
print_color $GREEN "✅ Update completed!"
}
# Function to test installation
test_installation() {
print_color $CYAN "🧪 Testing ScayNum installation..."
# Test Python imports
python3 -c "
import sys
try:
import pyfiglet
import colorama
import requests
import beautifulsoup4
print('✅ All dependencies installed successfully!')
except ImportError as e:
print(f'❌ Missing dependency: {e}')
sys.exit(1)
"
if [ $? -eq 0 ]; then
print_color $GREEN "✅ Test completed!"
else
print_color $RED "❌ Test failed!"
exit 1
fi
}
# Function to start ScayNum
start_scaynum() {
print_color $CYAN "🚀 Starting ScayNum..."
# Check if Python is available
if ! command -v python3 &> /dev/null; then
print_color $RED "❌ Python3 is not installed or not in PATH"
print_color $YELLOW "💡 Please install Python3 from: https://python.org/"
exit 1
fi
# Run ScayNum
python3 main.py
}
# Main execution
case "${1:-}" in
"install")
install_dependencies
;;
"update")
update_scaynum
;;
"test")
test_installation
;;
"help"|"-h"|"--help")
show_help
;;
"")
start_scaynum
;;
*)
print_color $RED "❌ Unknown command: $1"
echo ""
show_help
exit 1
;;
esac