-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrew-install-script.sh
More file actions
executable file
·225 lines (185 loc) · 6.07 KB
/
brew-install-script.sh
File metadata and controls
executable file
·225 lines (185 loc) · 6.07 KB
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/sh
# Homebrew Script for MacOS
# To execute: save and `chmod +x ./brew-install-script.sh` then `./brew-install-script.sh`
#Change system settings
echo "Changing system settings"
defaults write com.apple.finder ShowPathbar -bool true #shows path in finder
defaults write com.apple.finder ShowStatusBar -bool true #shows status bar (number of files/space remaining)
chflags nohidden ~/Library #unhide files in Library
defaults write com.apple.driver.AppleBluetoothMultitouch.mouse MouseButtonMode TwoButton # Enables right mouse click
defaults write com.apple.AppleMultitouchTrackpad TrackpadCornerSecondaryClick -int 2 # right click - may need logout to apply
defaults write -g AppleKeyboardUIMode -int 2 # Tab to navigate prompts
defaults write com.apple.dock tilesize -int 38 && killall Dock # Set dock size
#set keyboard repeat rates
defaults write -g InitialKeyRepeat -int 25
defaults write -g KeyRepeat -int 2
# Disable natural scrolling
defaults write -g com.apple.swipescrolldirection -bool false
#install xcode
xcode-select --install
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
echo "Installing brew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo >> ~/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
#update brew
brew update
# Install GNU core utilities (those that come with OS X are outdated)
echo "Installing GNU Core Utilities"
brew tap homebrew/dupes
brew install coreutils
brew install gnu-sed
brew install gnu-tar
brew install gnu-indent
brew install gnu-which
brew install grep
brew install wget
brew install inetutils
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
brew install findutils
echo "Installing Generic Utilities"
brew install --cask 1password
#Programming Languages
echo "Programming Languages"
brew install ruby
brew install rbenv
brew install python
brew install python3
brew install pyenv
brew install pyenv-virtualenv
# Add rbenv ruby stuff
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
# install rubies
rbenv install 3.3.7
rbenv install 2.7.8
rbenv global 3.3.7
# add pyenv python stuff
echo '# pyenv and pyenv-virtualenv' >> ~/.zshrc
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(pyenv init --path)"' >> ~/.zshrc
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.zshrc
echo "\n\n" >> ~/.zshrc
pyenv install 3.13.1
pyenv global 3.13.1
#Install Ruby Gems
echo "Installing Ruby gems"
RUBY_GEMS=(
bundler
tty-command
tty-prompt
tty-spinner
nokogiri
colorize
threadify
trollop
tiny_tds
text-table
optimist
searchpass
caxlsx
roo
)
sudo gem install ${RUBY_GEMS[@]}
#Dev Tools
echo "Dev Tools"
brew install git
brew install sublime-text --cask
brew install sqlcmd
brew install mysql-client
# Add mysql client to path
echo 'export PATH="/usr/local/opt/mysql-client/bin:$PATH"' >> ~/.zshrc
# Testing Tools
echo "Installing Testing Tools"
brew install netcat
brew install burp-suite --cask
brew install owasp-zap --cask
brew install zenmap --cask
brew install sqlmap
brew install hydra
brew install john-jumbo
brew install ophcrack
brew install testssl
brew install sslscan
brew install ike-scan
brew install nikto
brew install ffuf #https://github.com/ffuf/ffuf
brew install feroxbuster #https://github.com/epi052/feroxbuster
brew install wireshark
brew install ffuf
brew install dalfox # XSS scanner
brew install --cask dbeaver-community
brew install wpscanteam/tap/wpscan
# Impacket
echo "Installing Impacket"
pip3 install pipx
python3 -m pipx install impacket
#Communication Apps
echo "Communications Apps"
brew install slack --cask
#Web Tools
echo "Installing Browsers"
brew install google-chrome --cask
brew install firefox --cask
brew install caskroom/versions/firefoxdeveloperedition --cask
#Menu bar organisation
brew install --cask dozer
#Install MAS - this tool installs applications from the Apple app store - you must be signed into the apple account first!
brew install mas #https://github.com/mas-cli/mas
#Install apps using mas - note - comment out any you dont own!
echo "Installing app store apps"
mas install 1295203466 #Microsoft RDP
mas install 470158793 #keka
# mas install 1116599239 #nordvpn
mas install 411643860 #daisy disk
mas install 604275546 #xml notepad
mas install 441258766 #magnet
mas install 1274495053 #microsoft to-do
mas install 425424353 #the unarchiver
# mas install 775737590 #iA Writer
mas install 1289197285 #mindnode
mas install 1451685025 #wireguard
# mas install 497799835 #xcode
mas install 1408727408 #wifi explorer lite
mas install 1333542190 #1password
mas install 405843582 #alfred
# Core Functionality
echo "Installing Core Apps"
brew install --cask alfred
brew install iterm2 --cask
brew install java
brew install spotify --cask
brew install whatsapp --cask
# brew install cyberduck --cask
brew install viscosity --cask
# brew install skitch --cask
brew install --cask shottr
brew install citrix-receiver --cask
brew install carbon-copy-cloner --cask
brew install ipcalc
brew install --cask obsidian
brew install --cask google-drive
brew install --cask typora
brew install --cask parallels
brew install --cask utm
#brew cleanup
brew cleanup
#Install Oh My ZSH and Powerlevel10k
brew install powerlevel10k
echo "source $(brew --prefix)/share/powerlevel10k/powerlevel10k.zsh-theme" >>~/.zshrc
#Install hashcat - note, dont change the directory, doing so might break things. 6.2.3 was chosen to avoid Intel GPU issues on Monterey
echo "Installing hashcat 6.2.3"
wget https://github.com/hashcat/hashcat/archive/refs/tags/v6.2.3.tar.gz -P ~/
cd ~/ && tar -xvf v6.2.3.tar.gz
cd ~/hashcat-6.2.3 && make clean && make -s
cd ~/
echo "Installing latest hashcat from github (Metal and Apple Silicon Support is better)"
git clone https://github.com/hashcat/hashcat.git
cd ~/hashcat
make clean && make
cd ~/
rm ~/v6.2.6.tar.gz
echo "Hashcat installed in your home directory - please add it to your path if needed"
echo "Remember to run hashcat with -D2 and -O"