-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHomeSweetHome.sh
executable file
·223 lines (178 loc) · 7.28 KB
/
HomeSweetHome.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
#!/bin/bash
blue='\033[0;34m'
userInput=""
echo -e "${blue}
███████╗██╗ ██╗███████╗███████╗████████╗ ██╗ ██╗ ██████╗ ███╗ ███╗███████╗
██╔════╝██║ ██║██╔════╝██╔════╝╚══██╔══╝ ██║ ██║██╔═══██╗████╗ ████║██╔════╝
███████╗██║ █╗ ██║█████╗ █████╗ ██║ ███████║██║ ██║██╔████╔██║█████╗
╚════██║██║███╗██║██╔══╝ ██╔══╝ ██║ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝
███████║╚███╔███╔╝███████╗███████╗ ██║ ██║ ██║╚██████╔╝██║ ╚═╝ ██║███████╗
╚══════╝ ╚══╝╚══╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝
"
menu() {
echo "[1]Nmap [2]Wafw00f [3]Ffuf"
echo "[4]Go [5]ExploitDB [6]Gobuster"
echo "[7]Subfinder [8]Metasploit [9]Nuclei"
echo "[10]Ruby [11]Wpscan [12]All tools"
echo ""
read -p "Select an option: " input
userInput="$input"
}
#===============================NMAP===============================
installNmap() {
checkCommand=$(which nmap)
checkCommand="$checkCommand"
if [ "$checkCommand" == "" ]; then
sudo apt-get install nmap >/dev/null
echo 'Nmap succesful installed!'
else
echo nmap already installed
fi
}
#===============================GO LANGUAGE===============================
installGo() {
checkCommand=$(which go)
checkCommand="$checkCommand"
if [ "$checkCommand" == "" ]; then
echo Removing previous go version...
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz
echo Installing Go
curl -OL https://go.dev/dl/go1.19.1.linux-amd64.tar.gz >/dev/null
echo -ne '>>>>>>>>>>>>>>> 30%\r'
sudo tar -C /usr/local -xvf go1.19.1.linux-amd64.tar.gz >/dev/null
echo -ne '>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 70%\r'
echo "export PATH=$PATH:/usr/local/go/bin" >>~/.profile >/dev/null
echo -ne '>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 100%\r'
echo 'Go succesful installed!'
else
echo go already installed
fi
}
#===============================SUBFINDER===============================
installSubfinder() {
checkCommand=$(which subfinder)
checkCommand="$checkCommand"
if [ "$checkCommand" == "" ]; then
go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest >/dev/null
else
echo subfinder already installed
fi
}
#===============================WAFW00F===============================
installWafw00f() {
checkCommand=$(which wafw00f)
checkCommand="$checkCommand"
if [ "$checkCommand" == "" ]; then
git clone https://github.com/EnableSecurity/wafw00f.git >/dev/null
cd wafw00f
python3 setup.py install >/dev/null
else
echo wafw00f already installed
fi
}
#===============================GO BUSTER===============================
installGobuster() {
checkCommand=$(which gobuster)
checkCommand="$checkCommand"
if [ "$checkCommand" == "" ]; then
go install github.com/OJ/gobuster/v3@latest >/dev/null
else
echo gobuster already installed
fi
}
#===============================FFUF===============================
installFfuf() {
checkCommand=$(which ffuf)
checkCommand="$checkCommand"
if [ "$checkCommand" == "" ]; then
go install github.com/ffuf/ffuf@latest >/dev/null
else
echo ffuf already installed
fi
}
#===============================NUCLEI===============================
installNuclei() {
checkCommand=$(which nuclei)
checkCommand="$checkCommand"
if [ "$checkCommand" == "" ]; then
go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest >/dev/null
else
echo nuclei already installed
fi
}
#===============================EXPLOIT-DB===============================
installExploitDB() {
checkCommand=$(which searchsploit)
checkCommand="$checkCommand"
if [ "$checkCommand" == "" ]; then
sudo git clone https://github.com/offensive-security/exploitdb.git /opt/exploitdb
sudo ln -sf /opt/exploitdb/searchsploit /usr/local/bin/searchsploit
else
echo searchsploit already installed
fi
}
#===============================METASPLOIT===============================
installMetasploit() {
checkCommand=$(which msfconsole)
checkCommand="$checkCommand"
if [ "$checkCommand" == "" ]; then
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb >msfinstall &&
chmod 755 msfinstall &&
./msfinstall
else
echo msfconsole already installed
fi
}
#===============================RUBY===============================
installRuby() {
checkCommand=$(which ruby)
checkCommand="$checkCommand"
if [ "$checkCommand" == "" ]; then
sudo apt-get install ruby-full
else
echo ruby already installed
fi
}
#===============================WPSCAN===============================
installWpscan() {
checkCommand=$(which wpscan)
checkCommand="$checkCommand"
if [ "$checkCommand" == "" ]; then
sudo apt-get install build-essential autoconf
sudo gem install wpscan
else
echo wpscan already installed
fi
}
menu
case $userInput in
"1") installNmap ;;
"2") installWafw00f ;;
"3") installFfuf ;;
"4") installGo ;;
"5") installExploitDB ;;
"6") installGobuster ;;
"7") installSubfinder ;;
"8") installMetasploit ;;
"9") installNuclei ;;
"10") installRuby ;;
"11") installWpscan ;;
"12")
installNmap
installGo
installRuby
installExploitDB
installNuclei
installWafw00f
installFfuf
installMetasploit
installGobuster
installSubfinder
installWpscan
;;
*)
echo "Not a valid argument"
echo
;;
esac
cp ~/go/bin/* /usr/bin