-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstaller.sh
More file actions
73 lines (63 loc) · 2.42 KB
/
installer.sh
File metadata and controls
73 lines (63 loc) · 2.42 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
#!/data/data/com.termux/files/usr/bin/bash
# ==========================
# 🎨 Color Variables
# ==========================
RED='\033[1;31m'
GREEN='\033[1;32m'
YELLOW='\033[1;33m'
BLUE='\033[1;34m'
MAGENTA='\033[1;35m'
CYAN='\033[1;36m'
BOLD='\033[1m'
RESET='\033[0m'
# ==========================
# 🚀 Branded Banner
# ==========================
echo -e "${CYAN}${BOLD}"
echo "╔══════════════════════════════════════════════════════╗"
echo "║ 🚀 FARHAN Shot Installer ║"
echo "║ Rooted Termux • WiFi Tool Setup Script ║"
echo "╚══════════════════════════════════════════════════════╝"
echo -e "${RESET}"
# ==========================
# 🔧 Author Info
# ==========================
echo -e "${YELLOW}${BOLD}🔧 Author : frn @FARHAN_MUH_TASIM"
echo -e "📡 Tool : FARHAN-Shot-v2"
echo -e "📱 Requires : Rooted Android device with Termux${RESET}\n"
sleep 1
# ==========================
# 🧩 Reusable Step Function
# ==========================
run_step() {
echo -e "${BLUE}[•] $1...${RESET}"
eval "$2"
if [ $? -eq 0 ]; then
echo -e "${GREEN}[✔] Success: $1${RESET}\n"
else
echo -e "${RED}[✘] Failed: $1${RESET}\n"
echo -e "${RED}⚠️ Please fix this step manually if needed.${RESET}\n"
fi
sleep 1
}
# ==========================
# 📦 Start Installation
# ==========================
run_step "Updating Termux package lists" "pkg update -y && pkg upgrade -y"
run_step "Installing root-repo" "pkg install -y root-repo"
run_step "Installing required packages" \
"pkg install -y git tsu python wpa-supplicant pixiewps iw openssl"
run_step "Requesting Termux storage permissions" "termux-setup-storage"
run_step "Cloning FARHAN-Shot-v2 repository" \
"git clone https://github.com/Gtajisan/FARHAN-Shot-v2"
# ==========================
# ✅ Final Instructions
# ==========================
echo -e "${GREEN}${BOLD}🎉 Installation Complete!${RESET}"
echo -e "${CYAN}${BOLD}
To run the FARHAN Shot tool, use:
${YELLOW}sudo python FARHAN-Shot/
File/main.py -i wlan0 -K${RESET}
💡 Replace ${MAGENTA}wlan0${RESET} with your actual wireless interface (e.g. wlan1, eth0).
📬 Telegram Support: ${GREEN}@FARHAN_MUH_TASIM${RESET}
"