forked from hakluke/hakrevdns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
23 lines (18 loc) · 1004 Bytes
/
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
# Purpose of this file is to facilitate easy installation of golang on your debian box
# Since most package managers have older versions of golang which may result in errors while running the tool
# use this instead to install golang and the tool!
if [ -z $GOPATH ]
then
echo -e "\e[32m Installing golang \e[0m"
wget https://dl.google.com/go/go1.14.src.tar.gz && sudo tar -C /usr/local -xzf go1.14.src.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin" >> ~/.bashrc && source ~/.bashrc
echo -e "\e[32m Installed golang. Test it out by running \"go version\" \e[0m"
fi
echo -e "\e[32m Building hakrevdns \e[0m"
go build && sudo mv hakrevdns /usr/local/bin
if [ -e /usr/local/bin/hakrevdns ]
then
echo -e "\e[31mhakrevdns \e[32m has been successfully installed\e[0m"
echo -e "\e[32mTest it out by trying, echo "173.0.84.110" | hakrevdns \e[0m"
fi
# can't thank hakluke enough for making these amazing, fast tools, they give results in no time, amazingly easing out the workflow