-
Notifications
You must be signed in to change notification settings - Fork 124
/
install.sh
99 lines (91 loc) · 2.61 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
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
#!/bin/bash
if [ `whoami` != 'root' ];then
echo -e "\033[1;91m"
echo -e "\t\t\t!! Run with sudo !! "
exit
fi
echo "Installing tools..."
apt-get -qq update
apt install whois jq pip unzip pipx
chmod +x frogy.sh
function project_discovery(){
case $(arch) in
x86_64)
cpu='amd64'
;;
i686 | i386)
cpu='386'
;;
aarch64)
cpu='arm64'
;;
*)
cpu='amd64'
;;
esac
for tool in {httpx,subfinder,dnsx,katana}
do
version=$(curl -IkLs -o /dev/null -w %{url_effective} https://github.com/projectdiscovery/$tool/releases/latest|grep -o "[^/]*$"| sed "s/v//g")
baseurl="https://github.com/projectdiscovery/$tool/releases/download/v$version/"$tool"_$version"_linux_"$cpu.zip"
wget -q $baseurl -O $tool.zip
unzip -qo $tool.zip
chmod +x $tool && mv $tool /usr/bin/
rm $tool.zip
done
}
function tomnomnom(){
case $(arch) in
x86_64)
cpu='amd64'
;;
i686 | i386)
cpu='386'
;;
*)
cpu='amd64'
;;
esac
for tool in {anew,waybackurls}
do
version=$(curl -IkLs -o /dev/null -w %{url_effective} https://github.com/tomnomnom/$tool/releases/latest|grep -o "[^/]*$"| sed "s/v//g")
baseurl="https://github.com/tomnomnom/$tool/releases/download/v$version/$tool-linux-$cpu-$version.tgz"
wget -q $baseurl -O $tool.tgz
tar xzf "$tool.tgz"
chmod +x $tool && mv $tool /usr/bin/
rm $tool.tgz
done
}
function find_domain(){
case $(arch) in
x86_64)
cpu='-linux'
;;
i686 | i386)
#calling i386 function
cpu='-linux-i386'
;;
aarch64)
#calling aarch function
cpu='-aarch64'
;;
*)
cpu='-linux'
;;
esac
findomain_version=$(curl -IkLs -o /dev/null -w %{url_effective} https://github.com/Findomain/Findomain/releases/latest|grep -o "[^/]*$"| sed "s/v//g")
baseurl="https://github.com/Findomain/Findomain/releases/download/$findomain_version/findomain$cpu.zip"
wget -q $baseurl -O findomain.zip
unzip -qo findomain.zip
chmod +x findomain && mv findomain /usr/bin/
rm findomain.zip
}
#Calling functions to downlaod binary file & move to /usr/bin
project_discovery
find_domain
tomnomnom
pipx install bbot
cp /root/.local/pipx/venvs/bbot/bin/bbot /usr/bin/
wget https://raw.githubusercontent.com/iamthefrogy/LoginLocator/main/loginlocator.sh
chmod 777 loginlocator.sh
rm *.md
echo "Installation completed successfully!"