forked from rafaelh/update-kali
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
360 lines (316 loc) · 12.3 KB
/
config.py
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
import os
import subprocess
""" This file defines what the update-kali script should do. """
# Determine release, and whether we are on Windows Subsystem for Linux (WSL) so that we can set
# different settings for different environments. Anything common can go outside the if statements.
release = subprocess.check_output(
"""sh -c '. /etc/os-release; echo "$NAME"'""", shell=True, universal_newlines=True
).strip()
are_we_on_wsl = os.path.exists("/mnt/c/Windows/System32/wsl.exe")
if "Kali" in release:
# These directories will be removed from your home directory
directories_to_remove = [
"Documents",
"Music",
"Pictures",
"Public",
"Templates",
"Videos",
]
# These kali packages will be installed
packages_to_install = [
"bloodhound",
"xfreerdp",
"terminator",
"most",
"ttf-mscorefonts-installer",
"pydf",
"htop",
"gobuster",
"amass",
"golang",
"exif",
"hexedit",
"jq",
"python3-pip",
"python3-venv",
"apt-transport-https",
"curl",
"filezilla",
"meld",
"ncat",
"net-tools",
"bash-completion",
"ieee-data",
"python3-netaddr",
"ruby-full",
"cewl",
"nbtscan",
"tree",
"upx-ucl",
"exe2hexbat",
"grc",
]
# These kali packages will be removed
packages_to_remove = []
# These python packages will be installed globally
pip_packages = []
# These gem packages will be installed globally
gem_packages = ["wpscan"]
# These go tools will be installed globally. You will need to have the following settings in your
# .bashrc already:
# export GOROOT=/usr/lib/go
# export GOPATH=$HOME/go
# export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
golang_install_directory = "/usr/lib/go/modules/"
golang_modules_to_install = [
"github.com/lc/gau",
"github.com/hakluke/hakrawler",
"github.com/hahwul/dalfox",
"github.com/projectdiscovery/nuclei/v2/cmd/nuclei",
"github.com/Shopify/kubeaudit",
"github.com/tomnomnom/httprobe",
]
# These git repositories will be synced to the 'external repo' directory
external_tools_directory = "/opt"
external_tools_directory_dns = "/opt/dns"
ext_repositories_dns = [
"https://github.com/aboul3la/Sublist3r",
"https://github.com/darkoperator/dnsrecon",
"https://github.com/vortexau/dnsvalidator",
"https://github.com/guelfoweb/knock",
"https://github.com/d3mondev/puredns",
"https://github.com/a6avind/spoofcheck",
"https://github.com/RevoltSecurities/Subdominator",
]
external_tools_directory_infra = "/opt/infra"
ext_repositories_infra = [
"https://github.com/danielbohannon/Invoke-Obfuscation",
"https://github.com/SpiderLabs/Responder",
"https://github.com/chipik/SAP_RECON",
"https://github.com/Octoberfest7/TeamsPhisher",
"https://github.com/BishopFox/bigip-scanner",
"https://github.com/PowerShellMafia/PowerSploit",
"https://github.com/fortra/impacket",
"https://github.com/samratashok/nishang",
"https://github.com/kh4sh3i/exchange-penetration-testing",
"https://github.com/SecurityRiskAdvisors/msspray",
"https://github.com/gremwell/o365enum",
"https://github.com/airbus-seclab/ilo4_toolbox",
"https://github.com/peass-ng/PEASS-ng",
"https://github.com/RUB-NDS/PRET",
"https://github.com/Anon-Exploiter/SUID3NUM",
"https://github.com/Pepelux/sippts",
"https://github.com/jtesta/ssh-audit",
"https://github.com/jpillora/chisel",
"https://github.com/nullt3r/udpx",
"https://github.com/trustedsec/unicorn",
"https://github.com/c3c/ADExplorerSnapshot.py",
"https://github.com/samratashok/ADModule",
"https://github.com/r3motecontrol/Ghostpack-CompiledBinaries",
"https://github.com/Kevin-Robertson/Inveigh",
"https://github.com/netwrix/pingcastle",
"https://github.com/itm4n/PrivescCheck",
"https://github.com/GhostPack/Rubeus",
"https://github.com/FalconForceTeam/SOAPHound",
"https://github.com/S3cur3Th1sSh1t/WinPwn",
"https://github.com/bitsadmin/wesng",
"https://github.com/sensepost/ruler",
"https://github.com/ShawnDEvans/smbmap",
"https://github.com/GoSecure/WSuspicious",
"https://github.com/outflanknl/PrintNightmare",
]
external_tools_directory_mobile = "/opt/mobile"
ext_repositories_mobile = [
"https://github.com/dwisiswant0/apkleaks",
"https://github.com/skylot/jadx",
]
external_tools_directory_osint = "/opt/osint"
ext_repositories_osint = [
"https://github.com/jobroche/InSpy",
"https://github.com/GiJ03/Infoga",
"https://github.com/SimplySecurity/SimplyEmail",
"https://github.com/sse-secure-systems/TeamsEnum",
"https://github.com/Ekultek/WhatBreach",
"https://github.com/m8sec/CrossLinked",
"https://github.com/alpkeskin/mosint",
"https://github.com/sundowndev/phoneinfoga",
"https://github.com/smicallef/spiderfoot",
]
external_tools_directory_utility = "/opt/utility"
ext_repositories_utility = [
"https://github.com/swisskyrepo/PayloadsAllTheThings",
"https://github.com/danielmiessler/SecLists",
"https://github.com/gchq/CyberChef",
"https://github.com/Hoplite-Consulting/EPSS-CLI",
"https://github.com/sean-t-smith/Extreme_Breach_Masks",
"https://github.com/fkie-cad/FACT_core",
"https://github.com/internetwache/GitTools",
"https://github.com/securityjoes/MasterParser",
"https://github.com/stealthsploit/OneRuleToRuleThemStill",
"https://github.com/PercussiveElbow/docker-escape-tool",
"https://github.com/vinitkumar/json2xml",
"https://github.com/radareorg/radare2",
"https://github.com/cycurity/wister",
]
external_tools_directory_web = "/opt/web"
ext_repositories_web = [
"https://github.com/yunemse48/403bypasser",
"https://github.com/s0md3v/Arjun",
"https://github.com/clr2of8/GatherContacts",
"https://github.com/PortSwigger/autorize",
"https://github.com/dionach/CMSmap",
"https://github.com/chenjj/CORScanner",
"https://github.com/digininja/CeWL",
"https://github.com/s0md3v/Corsy",
"https://github.com/Santandersecurityresearch/DrHeader",
"https://github.com/shivsahni/FireBaseScanner",
"https://github.com/PalindromeLabs/STEWS",
"https://github.com/a0xnirudh/WebXploiter",
"https://github.com/urbanadventurer/WhatWeb",
"https://github.com/tunetheweb/wappalyzer",
"https://github.com/iosiro/baserunner",
"https://github.com/SamJoan/droopescan",
"https://github.com/immunIT/drupwn",
"https://github.com/securebinary/firebaseExploiter",
"https://github.com/0xbigshaq/firepwn-tool",
"https://github.com/carlospolop/fuzzhttpbypass",
"https://github.com/ozguralp/gmapsapiscanner",
"https://github.com/dolevf/graphw00f",
"https://github.com/mozilla/http-observatory",
"https://github.com/simplylu/jpeg_polyglot_xss",
"https://github.com/callforpapers-source/jshole",
"https://github.com/ticarpi/jwt_tool",
"https://github.com/steverobbins/magescan",
"https://github.com/inc0d3/moodlescan",
"https://github.com/mozilla/observatory-cli",
"https://github.com/sqlmapproject/sqlmap",
"https://github.com/drwetter/testssl.sh",
"https://github.com/epinna/tplmap",
"https://github.com/EnableSecurity/wafw00f",
"https://github.com/Lissy93/web-check",
"https://github.com/xmendez/wfuzz",
"https://github.com/wpscanteam/wpscan",
"https://github.com/vavkamil/xss2png",
"https://github.com/Grunny/zap-cli",
]
# Next, take a look in the /scripts directory. Every script ending in .sh or .py will be run,
# provided it's # executable. For example, the current scripts install VS Code, Google Chrome and
# Typora. Any script that goes in this directory should be written so it can run multiple times
# without causing problems.
zshrc_configuration = [
"alias c='clear'",
"alias opt='cd /opt && ls",
"alias profile='sudo nano ~/.zshrc",
"alias save='source ~/.zshrc",
"export GOROOT=/usr/lib/go",
"export GOPATH=$HOME/go",
]
if "Ubuntu" in release and not are_we_on_wsl:
# These directories will be removed from your home directory
directories_to_remove = [
"Documents",
"Music",
"Pictures",
"Public",
"Templates",
"Videos",
]
# These Ubuntu packages will be installed
packages_to_install = [
"most",
"ttf-mscorefonts-installer",
"pydf",
"htop",
"golang",
"exif",
"hexedit",
"jq",
"python3-pip",
"python3-venv",
"apt-transport-https",
"curl",
"filezilla",
"meld",
"ncat",
"net-tools",
"tmux",
"bash-completion",
"ruby-full",
"nbtscan",
"tree",
"grc",
"john",
]
# These Ubuntu packages will be removed
packages_to_remove = []
# These python packages will be installed globally
pip_packages = ["pipenv", "pylint", "stegcracker", "truffleHog"]
# These gem packages will be installed globally
gem_packages = ["wpscan"]
# These go tools will be installed globally. You will need to have the following settings in your
# .bashrc already:
#
# export GOROOT=/usr/lib/go
# export GOPATH=$HOME/go
# export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
golang_modules_to_install = [
"github.com/lc/gau",
"github.com/hakluke/hakrawler",
"github.com/hahwul/dalfox",
]
# These git repositories will be synced to the 'external repo' directory
external_tools_directory = "/opt"
external_tools_directory_dns = "/opt/dns"
external_tools_directory_infra = "/opt/infra"
external_tools_directory_mobile = "/opt/mobile"
external_tools_directory_osint = "/opt/osint"
external_tools_directory_utility = "/opt/utility"
external_tools_directory_web = "/opt/web"
ext_repositories_to_sync = []
# Next, take a look in the /scripts directory. Every script ending in .sh or .py will be run,
# provided it's # executable. For example, the current scripts install VS Code, Google Chrome and
# Typora. Any script that goes in this directory should be written so it can run multiple times
# without causing problems.
if "Ubuntu" in release and are_we_on_wsl:
# These directories will be removed from your home directory
directories_to_remove = []
# These Ubuntu packages will be installed
packages_to_install = [
"most",
"pydf",
"golang",
"exif",
"hexedit",
"jq",
"python3-pip",
"python3-venv",
"curl",
"net-tools",
"tmux",
"bash-completion",
"ruby-full",
"nbtscan",
"tree",
"grc",
]
# These Ubuntu packages will be removed
packages_to_remove = []
# These python packages will be installed globally
pip_packages = ["pipenv", "pylint"]
# These gem packages will be installed globally
gem_packages = []
# These go tools will be installed globally. You will need to have the following settings in your
# .bashrc already:
#
# export GOROOT=/usr/lib/go
# export GOPATH=$HOME/go
# export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
golang_modules_to_install = []
# These git repositories will be synced to the 'external repo' directory
external_tools_directory = "/opt"
ext_repositories_to_sync = []
# Next, take a look in the /scripts directory. Every script ending in .sh or .py will be run,
# provided it's # executable. For example, the current scripts install VS Code, Google Chrome and
# Typora. Any script that goes in this directory should be written so it can run multiple times
# without causing problems.