-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathconfig.py
159 lines (127 loc) · 7.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
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 = ['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',
'tmux', 'bash-completion', 'ieee-data', 'python3-netaddr',
'ruby-full', 'powercat', 'cewl', 'nbtscan', 'tree', 'upx-ucl',
'exe2hexbat', 'shellter', 'grc', 'tor', 'torbrowser-launcher']
# These kali packages will be removed
packages_to_remove = []
# These python packages will be installed globally
pip_packages = ['pipenv', 'pylint', 'dnsgen', 'stegcracker', 'truffleHog', 'apkleaks', 'defaultcreds-cheat-sheet']
# 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 = '/opt'
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'
ext_repositories_to_sync = [
'https://github.com/swisskyrepo/PayloadsAllTheThings',
]
# These git repositories will be synced to the 'personal repo' directory. I use my home directory.
personal_repo_directory = os.getenv("HOME")
personal_repositories_to_sync = [
'[email protected]:rafaelh/dotfiles',
'[email protected]:rafaelh/.private'
]
# 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 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'
ext_repositories_to_sync = [
]
# These git repositories will be synced to the 'personal repo' directory. I use my home directory.
personal_repo_directory = os.getenv("HOME")
personal_repositories_to_sync = [
'[email protected]:rafaelh/dotfiles',
'[email protected]:rafaelh/.private'
]
# 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 = [
]
# These git repositories will be synced to the 'personal repo' directory. I use my home directory.
personal_repo_directory = os.getenv("HOME")
personal_repositories_to_sync = [
'[email protected]:rafaelh/dotfiles',
'[email protected]:rafaelh/.private'
]
# 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.