-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·66 lines (53 loc) · 2.11 KB
/
install.sh
File metadata and controls
executable file
·66 lines (53 loc) · 2.11 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
#!/usr/bin/env bash
main() {
local os
os=$(uname -o 2>/dev/null || echo "unknown")
echo "[*] Making scripts in Hash_crackV2/ directory executable"
find ./ -maxdepth 1 -type f \
! -name 'README.md' \
! -name 'LICENSE' \
! -name 'wordlist.txt' \
! -name 'termux_requirements.txt' \
! -name 'linux_requirements.txt' \
-exec chmod u+x {} +
find config_bundle/ -type f \
! -name 'db.json' \
! -name 'proxychains4.conf' \
-exec chmod u+x {} +
find crunchlib/ -type f \
-exec chmod u+x {} +
find hashlibx/ -type f \
! -name '__init__.py' \
-exec chmod u+x {} +
find thirdparty_cracktools/ \
-type f -exec chmod u+x {} +
echo -e "\n[*] Installing dependencies..."
sleep 1
if [[ "$os" == "Android" || "$PREFIX" == *"com.termux"* ]]; then
echo "[+] Environment detected: Termux"
apt update && apt upgrade -y
apt install python rust crunch p7zip -y
python -m pip install -r termux_requirements.txt
python -m pip install -e ./thirdparty_cracktools/python-whirlpool --use-pep517
else
echo "[+] Environment detected: Linux (Debian/Ubuntu)"
if ! command -v sudo >/dev/null; then
echo "[!] 'sudo' is not installed. Aborting."
exit 1
fi
sudo apt update && sudo apt upgrade -y
sudo apt install python3 python3-pip tor proxychains4 crunch p7zip-full p7zip-rar -y
python3 -m pip install --upgrade pip
python3 -m pip install -r linux_requirements.txt
# Only if the config file exists
if [[ -f "$HOME/Hash_crackV2/config_bundle/proxychains4.conf" ]]; then
echo "[*] Copying proxychains4.conf to the system"
sudo cp -f "$HOME/Hash_crackV2/config_bundle/proxychains4.conf" /etc/proxychains4.conf
else
echo "[!] proxychains4.conf not found in ~/Hash_crackV2/config_bundle/"
fi
sudo python3 -m pip install -e ./thirdparty_cracktools/python-whirlpool --use-pep517
fi
echo -e "\n[✓] Installation completed."
}
main