-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfedora-pentest-tools.sh
421 lines (368 loc) · 17.7 KB
/
fedora-pentest-tools.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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
#!/bin/bash
echo "[*]preliminary questions regarding user-rights"
clear
read -p "[*]Please enter your username, this will help me fix permissions:" myname
clear
echo "[*]what would be your prefered directory name for the tools? no slashes pls"
clear
read -p "[*]Please enter the directory name you would like:" mydirectory
clear
echo "[*]system updates"
dnf update -y
dnf upgrade -y
echo "[*]kernel headers and dev"
dnf install -y kernel-headers kernel-devel gcc glibc-headers rpm-build
dnf groupinstall -y "C Development Tools and Libraries"
dnf groupinstall -y "Development Tools"
echo "[*]installation of normal hacking tools"
dnf install -y nano scalpel foremost scapy srm yersinia hping3 tcpreplay tcpick socat ophcrack gdb stunnel cmake flex eog openconnect gengetopt steghide whois aircrack-ng gimp iw extundelete rpcbind rdesktop sshfs bzip2 gnome-tweak-tool libtool irssi medusa hydra hydra-frontend terminator curl proxychains perl-Image-ExifTool p7zip libpcap htop gnupg subversion git traceroute gparted pidgin pidgin-otr ghex ettercap libnetfilter_queue-devel openvpn dsniff tcpdump john nmap nbtscan wireshark
echo "[*]installation of ruby and it's requirements"
dnf install -y ruby ruby-devel rubygem-bundler rubygem-i18n ruby-irb rubygems rubygem-bigdecimal rubygem-rake rubygem-sqlite3
echo "[*]installation of python-requirements"
dnf install -y python python-pip python-setuptools python-libs python-magic python-netaddr python3-netaddr python-inotify python3-configobj python2-configobj python-msgpack python-requests python-pefile pylibpcap python-dns python-cryptography python-devel python-twisted capstone-python python-urllib3 python-pillow python-beautifulsoup python-beautifulsoup4
echo "[*]installation of python-requirements"
dnf install -y php-cli
echo "[*]installation of dev libs"
dnf install -y readline readline-devel capstone capstone-devel capstone-python3 openssl openssl-devel libxml2 libxml2-devel libxslt libxslt-devel libyaml libyaml-devel libffi libffi-devel libssh libssh-devel libpqxx libpqxx-devel libsqlite3x libsqlite3x-devel libpcap libpcap-devel pcre libcurl-devel libnfnetlink libnfnetlink-devel libnetfilter_queue-devel zlib-devel zlibrary xz-devel zlibrary-devel postgresql-devel libidn libidn-devel
echo "[*]installation of libs"
dnf install -y libappindicator libindicator
echo "[*]installation of gems"
gem install snmp
gem install rake
gem install pcaprub
gem install bettercap
echo "[*]installation of other tools"
dnf install -y freerdp qemu-kvm qemu-kvm-tools binwalk qemu-system-x86 gvfs-fuse autoconf postgresql pgadmin3
echo "[*]installation of googlechrome"
wget -nc https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
dnf install -y google-chrome-stable_current_x86_64.rpm
rm google-chrome-stable_current_x86_64.rpm
echo "[*]create default core tools directory"
mkdir /home/$myname/$mydirectory
cd /home/$myname/$mydirectory/
mkdir /home/$myname/$mydirectory/cheatsheets
mkdir /home/$myname/$mydirectory/network
mkdir /home/$myname/$mydirectory/webapps
mkdir /home/$myname/$mydirectory/exploits
mkdir /home/$myname/$mydirectory/mobile
mkdir /home/$myname/$mydirectory/wordlists
mkdir /home/$myname/$mydirectory/escalation
mkdir /home/$myname/$mydirectory/pwcracking
mkdir /home/$myname/$mydirectory/reverse
mkdir /home/$myname/$mydirectory/recon
mkdir /home/$myname/$mydirectory/wireless
mkdir /home/$myname/$mydirectory/windows
mkdir /home/$myname/$mydirectory/linux
echo "[*]installation of android sdk"
cd /home/$myname/$mydirectory/mobile
wget -nc http://dl.google.com/android/android-sdk_r22.6-linux.tgz
tar -xvf android-sdk_r22.6-linux.tgz
rm -rf android-sdk_r22.6-linux.tgz
cd /home/$myname/$mydirectory
echo "[*]installation of dex2jar"
mkdir /home/$myname/$mydirectory/mobile/dex2jar
cd /home/$myname/$mydirectory/mobile/dex2jar
wget -nc https://dex2jar.googlecode.com/files/dex2jar-0.0.9.15.zip
unzip dex2jar-0.0.9.15.zip
rm -rf dex2jar-0.0.9.15.zip
cd /home/$myname/$mydirectory
echo "[*]gather the metasploit repository"
cd /home/$myname/$mydirectory/exploits
git clone https://github.com/rapid7/metasploit-framework.git
cd /home/$myname/$mydirectory/exploits/metasploit-framework
bundle install
cd /home/$myname/$mydirectory
echo "[*]other exploit tools"
cd /home/$myname/$mydirectory/exploits
git clone https://github.com/longld/peda.git
git clone https://github.com/g0tmi1k/exe2hex.git
git clone https://github.com/PenturaLabs/Linux_Exploit_Suggester.git
git clone https://github.com/trustedsec/unicorn
cd /home/$myname/$mydirectory
echo "[*]wordlists gathering"
cd /home/$myname/$mydirectory/wordlists
git clone https://github.com/danielmiessler/SecLists.git
wget -nc http://downloads.skullsecurity.org/passwords/rockyou.txt.bz2
wget -nc http://www.tekdefense.com/downloads/wordlists/1aNormusWL.zip
wget -nc http://www.tekdefense.com/downloads/wordlists/KippoWordlist.txt
cd /home/$myname/$mydirectory
echo "[*]install burpfree"
cd /home/$myname/$mydirectory/webapps
mkdir /home/$myname/$mydirectory/webapps/burp_proxy
cd /home/$myname/$mydirectory/webapps/burp_proxy
curl https://portswigger.net/DownloadUpdate.ashx?Product=Free -o burpsuite_free.jar
cd /home/$myname/$mydirectory
echo "[*]misc scripts"
cd /home/$myname/$mydirectory
mkdir /home/$myname/$mydirectory/misc
cd /home/$myname/$mydirectory/misc
git clone https://github.com/ChrisTruncer/PenTestScripts.git
cd /home/$myname/$mydirectory
echo "[*]install cookie cadger"
mkdir /home/$myname/$mydirectory/network/sidejacking
cd /home/$myname/$mydirectory/network/sidejacking
wget -nc https://www.cookiecadger.com/files/CookieCadger-1.06.jar
cd /home/$myname/$mydirectory
echo "[*]install enum4linux"
mkdir /home/$myname/$mydirectory/network/enum4linux
cd /home/$myname/$mydirectory/network/enum4linux
wget https://labs.portcullis.co.uk/download/enum4linux-0.8.9.tar.gz
tar -xvf enum4linux-0.8.9.tar.gz
rm -rf enum4linux-0.8.9.tar.gz
cd /home/$myname/$mydirectory
echo "[*]install torbrowser"
mkdir /home/$myname/$mydirectory/network/torbrowser
cd /home/$myname/$mydirectory/network/torbrowser
wget -nc https://www.torproject.org/dist/torbrowser/5.5.4/tor-browser-linux64-5.5.4_en-US.tar.xz
tar -xvf tor-browser-linux64-5.5.4_en-US.tar.xz
rm -rf tor-browser-linux64-5.5.4_en-US.tar.xz
cd /home/$myname/$mydirectory
echo "[*]gathering php reverse shell"
mkdir /home/$myname/$mydirectory/network/reverse_shells
cd /home/$myname/$mydirectory/network/reverse_shells
wget -nc http://pentestmonkey.net/tools/php-reverse-shell/php-reverse-shell-1.0.tar.gz
tar -xvf /home/$myname/$mydirectory/network/reverse_shells/php-reverse-shell-1.0.tar.gz
rm -rf /home/$myname/$mydirectory/network/reverse_shells/php-reverse-shell-1.0.tar.gz
cd /home/$myname/$mydirectory
echo "[*]install privesc tools"
cd /home/$myname/$mydirectory/escalation
git clone https://github.com/mattifestation/PowerSploit.git
git clone https://github.com/PowerShellEmpire/PowerTools.git
git clone https://github.com/Kevin-Robertson/Inveigh.git
mkdir /home/$myname/$mydirectory/escalation/wcedigest
cd /home/$myname/$mydirectory/escalation/wcedigest
wget -nc http://www.ampliasecurity.com/research/wce_v1_3beta.tgz
tar -xvf wce_v1_3beta.tgz
rm -rf wce_v1_3beta.tgz
cd /home/$myname/$mydirectory
echo "[*]install mimikatz"
mkdir /home/$myname/$mydirectory/escalation/mimikatz
cd /home/$myname/$mydirectory/escalation/mimikatz
wget -nc http://blog.gentilkiwi.com/downloads/mimikatz_trunk.zip
unzip -o mimikatz_trunk.zip
rm -rf mimikatz_trunk.zip
cd /home/$myname/$mydirectory
echo "[*]install volatility framework"
mkdir /home/$myname/$mydirectory/forensics
cd /home/$myname/$mydirectory/forensics
git clone https://github.com/volatilityfoundation/volatility.git
cd /home/$myname/$mydirectory
echo "[*]installing other reconnaissance tools"
cd /home/$myname/$mydirectory/recon
git clone https://github.com/guelfoweb/knock.git
git clone https://github.com/TheRook/subbrute.git
git clone https://github.com/ejcx/subdomainer.git
git clone https://github.com/aboul3la/Sublist3r.git
git clone https://github.com/ChrisTruncer/EyeWitness.git
git clone https://github.com/makefu/dnsmap.git
cd /home/$myname/$mydirectory/recon/dnsmap
make
cd /home/$myname/$mydirectory
echo "[*]install john the ripper"
cd /home/$myname/$mydirectory/pwcracking/
git clone https://github.com/lanjelot/patator.git
mkdir /home/$myname/$mydirectory/pwcracking/jtr-jumbo
cd /home/$myname/$mydirectory/pwcracking/jtr-jumbo
wget -nc http://www.openwall.com/john/g/john-1.7.9-jumbo-7.tar.gz
gunzip john-1.7.9-jumbo-7.tar.gz
tar -xvf john-1.7.9-jumbo-7.tar
cd john-1.7.9-jumbo-7/src
make linux-x86-64-native
cd ../..
rm -rf john-1.7.9-jumbo-7.tar
rm -rf john-1.7.9-jumbo-7.tar.gz
cd /home/$myname/$mydirectory
echo "[*]install hashcat + oclhashcat and utils"
cd /home/$myname/$mydirectory/pwcracking/
git clone https://github.com/hashcat/oclHashcat.git
git clone https://github.com/hashcat/hashcat.git
git clone https://github.com/hashcat/hashcat-utils.git
cd /home/$myname/$mydirectory
echo "[*]install cryptohaze multiforcer"
mkdir /home/$myname/$mydirectory/pwcracking/cryptohaze_multiforcer
cd /home/$myname/$mydirectory/pwcracking/cryptohaze_multiforcer
wget -nc "http://downloads.sourceforge.net/project/cryptohaze/New-Multiforcer-Linux_x64_1_31.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fcryptohaze%2Ffiles%2F&ts=1391475227&use_mirror=superb-dca2" -O New-Multiforcer-Linux_x64_1_31.tar.bz2
bunzip2 New-Multiforcer-Linux_x64_1_31.tar.bz2
tar -xvf New-Multiforcer-Linux_x64_1_31.tar
rm -rf New-Multiforcer-Linux_x64_1_31.tar.bz2
rm -rf New-Multiforcer-Linux_x64_1_31.tar
cd /home/$myname/$mydirectory
echo "[*]install arachni"
cd /home/$myname/$mydirectory/webapps
git clone https://github.com/Arachni/arachni.git
cd /home/$myname/$mydirectory/webapps/arachni
cd /home/$myname/$mydirectory/webapps/arachni/bin
bundle install
cd /home/$myname/$mydirectory
echo "[*]install subgraph vega"
mkdir /home/$myname/$mydirectory/webapps/vega
cd /home/$myname/$mydirectory/webapps/vega
wget -nc https://support.subgraph.com/downloads/VegaBuild-linux.gtk.x86_64.zip
unzip -o VegaBuild-linux.gtk.x86_64.zip
rm -rf VegaBuild-linux.gtk.x86_64.zip
cd /home/$myname/$mydirectory
cd /home/$myname/$mydirectory/webapps
git clone https://github.com/stasinopoulos/commix.git
git clone https://github.com/wpscanteam/wpscan.git
git clone https://github.com/kost/dvcs-ripper
git clone https://github.com/mandatoryprogrammer/xssless.git
git clone https://github.com/joaomatosf/jexboss.git
git clone https://github.com/tennc/fuzzdb.git
git clone https://github.com/tennc/webshell
git clone https://github.com/vs4vijay/heartbleed.git
git clone https://github.com/beefproject/beef
git clone https://github.com/Dionach/CMSmap.git
git clone https://github.com/droope/droopescan.git
git clone https://github.com/gfoss/attacking-drupal.git
git clone https://github.com/P0cL4bs/Kadimus
git clone https://github.com/sullo/nikto.git
git clone https://github.com/gabtremblay/tachyon.git
git clone https://github.com/sqlmapproject/sqlmap.git
git clone https://github.com/WebBreacher/tilde_enum.git
git clone https://github.com/OsandaMalith/LFiFreak
git clone https://github.com/eschultze/URLextractor.git
git clone https://github.com/epinna/weevely3.git
git clone https://github.com/seifreed/dirb.git
cd dirb
./configure
make
cd /home/$myname/$mydirectory/webapps
wget -nc "http://downloads.sourceforge.net/project/dirbuster/DirBuster%20%28jar%20%2B%20lists%29/1.0-RC1/DirBuster-1.0-RC1.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fdirbuster%2Ffiles%2FDirBuster%2520%2528jar%2520%252B%2520lists%2529%2F1.0-RC1%2F&ts=1443459199&use_mirror=iweb" -O DirBuster-1.0-RC1.tar.bz2
bunzip2 DirBuster-1.0-RC1.tar.bz2
tar -xvf DirBuster-1.0-RC1.tar
rm DirBuster-1.0-RC1.tar
cd /home/$myname/$mydirectory/webapps/weevely3
pip install -r requirements.txt
cd /home/$myname/$mydirectory
echo "[*]installing tools for mitm/network"
cd /home/$myname/$mydirectory/network/
git clone https://github.com/DanMcInerney/creds.py.git
https://github.com/sensepost/DET.git
git clone https://github.com/inquisb/keimpx
git clone https://github.com/DanMcInerney/LANs.py.git
git clone https://github.com/SpiderLabs/Responder.git
git clone https://github.com/DanMcInerney/net-creds.git
git clone https://github.com/covertcodes/multitun.git
git clone https://github.com/byt3bl33d3r/MITMf.git
git clone https://github.com/m57/ARDT.git
git clone https://github.com/vanhauser-thc/thc-ipv6.git
git clone https://github.com/nccgroup/vlan-hopping.git
git clone https://github.com/Hood3dRob1n/Reverser.git
git clone https://github.com/SpiderLabs/ikeforce.git
git clone https://github.com/robertdavidgraham/masscan.git
cd /home/$myname/$mydirectory/network/masscan
pip install pyip
cd /home/$myname/$mydirectory/network/masscan/bin
make
cd /home/$myname/$mydirectory/network/MITMf
pip install --upgrade -r requirements.txt
cd /home/$myname/$mydirectory/network/MITMf/libs/bdfactory/
git clone https://github.com/secretsquirrel/the-backdoor-factory.git .
cd /home/$myname/$mydirectory/network/
cd /home/$myname/$mydirectory
echo "[*]installing tools for social engineering"
mkdir /home/$myname/$mydirectory/exploits/social_engineering
cd /home/$myname/$mydirectory/exploits/social_engineering
git clone https://github.com/trustedsec/social-engineer-toolkit.git
cd /home/$myname/$mydirectory
echo "[*]installing tools for reverse engineering"
cd /home/$myname/$mydirectory/reverse/
git clone https://github.com/Gallopsled/pwntools.git
git clone https://github.com/hasherezade/shellconv.git
git clone https://github.com/botherder/viper.git
git clone https://github.com/mirror/firmware-mod-kit.git
cd /home/$myname/$mydirectory
echo "[*]installing exploit related tools"
cd /home/$myname/$mydirectory/exploits
git clone https://github.com/offensive-security/exploit-database
git clone https://github.com/lockfale/meterpreterjank.git
git clone https://github.com/toolswatch/vFeed.git
git clone https://github.com/secretsquirrel/the-backdoor-factory
cd /home/$myname/$mydirectory
echo "[*]installing tools for priv escalation"
cd /home/$myname/$mydirectory/escalation
git clone https://github.com/samratashok/nishang.git
git clone https://github.com/rebootuser/LinEnum.git
git clone https://github.com/pentestgeek/smbexec.git
cd /home/$myname/$mydirectory/escalation/smbexec
bundle install
cd /home/$myname/$mydirectory
echo "[*]installing the veil framework"
cd /home/$myname/$mydirectory/exploits
git clone https://github.com/Veil-Framework/Veil-Evasion.git
git clone https://github.com/Veil-Framework/Veil-PowerView.git
echo "[*]installing tools for reconnaissance"
cd /home/$myname/$mydirectory/recon
git clone https://github.com/hatRiot/clusterd.git
git clone https://github.com/darkoperator/dnsrecon.git
git clone https://github.com/urbanadventurer/WhatWeb.git
git clone https://github.com/leebaird/discover.git
cd /home/$myname/$mydirectory
echo "[*]gathering cheatsheets"
cd /home/$myname/$mydirectory/cheatsheets
git clone https://github.com/HarmJ0y/CheatSheets
git clone https://github.com/aramosf/sqlmap-cheatsheet.git
git clone https://github.com/wsargent/docker-cheat-sheet.git
git clone https://github.com/paragonie/awesome-appsec.git
cd /home/$myname/$mydirectory
echo "[*]installing tools to identify hashes"
mkdir /home/$myname/$mydirectory/crypto
cd /home/$myname/$mydirectory/crypto
git clone https://github.com/SmeegeSec/HashTag.git
cd /home/$myname/$mydirectory
echo "[*]installing tools for mitm vlan hopping"
cd /home/$myname/$mydirectory/network
git clone https://github.com/nccgroup/vlan-hopping.git
cd /home/$myname/$mydirectory
echo "[*]installing webapp vuln scanner & XSS utility"
cd /home/$myname/$mydirectory/webapps
git clone https://github.com/spinkham/skipfish.git
cd /home/$myname/$mydirectory/webapps/skipfish
sudo make
cd /home/$myname/$mydirectory
echo "[*]installing wireless et wps tools"
cd /home/$myname/$mydirectory/wireless
wget http://digi.ninja/files/wifi_honey_1.0.tar.bz2
bunzip2 wifi_honey_1.0.tar.bz2
tar -xvf wifi_honey_1.0.tar
rm -rf wifi_honey_1.0.tar.bz2
rm -rf wifi_honey_1.0.tar
git clone https://github.com/DanMcInerney/wifijammer.git
git clone https://github.com/derv82/wifite.git
git clone https://github.com/OpenSecurityResearch/hostapd-wpe.git
git clone https://github.com/sophron/wifiphisher.git
cd /home/$myname/$mydirectory
echo "[*]requirements for wpscan"
cd /home/$myname/$mydirectory/webapps/wpscan
bundle install
cd /home/$myname/$mydirectory
echo "[*]install WSattacker"
mkdir /home/$myname/$mydirectory/webapps/ws_attacker
cd /home/$myname/$mydirectory/webapps/ws_attacker
wget -nc "http://downloads.sourceforge.net/project/ws-attacker/WS-Attacker%201.3/WS-Attacker-1.3.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fws-attacker%2F&ts=1391476709&use_mirror=iweb" -O WS-Attacker-1.3.zip
unzip -o WS-Attacker-1.3.zip
rm -rf WS-Attacker-1.3.zip
cd /home/$myname/$mydirectory
echo "[*]Installing OWASP ZAP proxy"
mkdir /home/$myname/$mydirectory/webapps/zap_proxy
cd /home/$myname/$mydirectory/webapps/zap_proxy
wget -nc "https://github.com/zaproxy/zaproxy/releases/download/2.4.2/ZAP_2.4.2_Linux.tar.gz"
gunzip ZAP_2.4.2_Linux.tar.gz
tar -xvf ZAP_2.4.2_Linux.tar
rm -rf ZAP_2.4.2_Linux.tar
cd /home/$myname/$mydirectory
echo "[*]windows tools just in case no internets"
mkdir /home/$myname/$mydirectory/windows/win_tools
cd /home/$myname/$mydirectory/windows/win_tools
wget -nc "http://www.oxid.it/downloads/ca_setup.exe"
wget -nc "http://downloads.metasploit.com/data/releases/metasploit-latest-windows-installer.exe"
wget -nc "https://www.dbvis.com/product_download/dbvis-9.2.8/media/dbvis_windows-x64_9_2_8.exe"
wget -nc "http://www.ollydbg.de/odbg200.zip"
wget -nc "http://www.ollydbg.de/odbg110.zip"
wget -nc "https://out7.hex-rays.com/files/idafree50.exe"
echo "[*]linux tools just in case no internets"
mkdir /home/$myname/$mydirectory/linux/lin_tools
cd /home/$myname/$mydirectory/linux/lin_tools
wget -nc "http://downloads.metasploit.com/data/releases/metasploit-latest-linux-x64-installer.run"
echo "[*]correcting user-rights"
chown -R $myname:$myname /home/$myname/$mydirectory