forked from MbahPinguinSakti/simpeAutoPentest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
requirement.sh
executable file
·56 lines (51 loc) · 1.5 KB
/
requirement.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
#!/bin/bash
while true; do
# Jalankan ping di background dan tangkap PID-nya
ping -c 1 google.com &>/dev/null &
ping_pid=$!
# Progress bar s
echo -n "Checking host connections: "
for i in {1..15}; do
# Periksa apakah proses ping masih berjalan
if ps -p $ping_pid >/dev/null; then
printf ">"
sleep 0.6
else
break
fi
done
# Tunggu proses ping selesai (pastikan selesai)
wait $ping_pid
# Cek apakah ping berhasil atau gagal
if [ $? -eq 0 ]; then
echo " [Connect]"
sleep 1
break
else
echo " [Failed to connect]"
exit
fi
done
echo -e "\n"
echo "JANGAN JALANKAN SCRIPT DENGAN SEBAGAI ROOT"
sleep 2
clear
tools=("subfinder" "katana" "nuclei")
for tool in "${tools[@]}"; do
if ! command -v $tool &>/dev/null; then
echo "beberapa tool mungkin belum terinstall, menginstal ${tool}"
if ["${tool}" == "subfinder"]; then
git clone https://github.com/projectdiscovery/subfinder
sudo cp "${HOME}/subfinder" /usr/bin
elif ["${tool}" == "katana"]; then
git clone https://github.com/projectdiscovery/katana
sudo cp "${HOME}/katana" /usr/bin
elif ["${tool}" == "nuclei"]; then
git clone https://github.com/projectdiscovery/nuclei
sudo cp "${HOME}/nuclei" /usr/bin
fi
else
echo "semua tools telah terinstall melanjutkan...."
./simpleautopentest.sh
fi
done