harden and spoof

This commit is contained in:
Tyrel Souza 2017-02-15 12:25:47 -05:00
parent e55e7ea84c
commit 62427d3f7b
No known key found for this signature in database
GPG Key ID: 2EECB5087209E6A5
3 changed files with 15 additions and 0 deletions

9
bin/harden.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
# https://github.com/drduh/macOS-Security-and-Privacy-Guide
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setloggingmode on
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setstealthmode on
cd ~/bin
git clone git@github.com:karek314/macOS-home-call-drop.git
cd macOS-home-call-drop
bash homecall.sh fixmacos

3
bin/spoof_mac.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
sudo ifconfig en0 ether $(openssl rand -hex 6 | sed 's%\(..\)%\1:%g; s%.$%%')

3
zshrc
View File

@ -32,6 +32,9 @@ fi
export PATH="$NPM_PACKAGES/bin:$GOPATH/bin:$HOME/bin:$PATH"
if [[ $OSTYPE == "*darwin*" ]];then
export PATH="/usr/local/opt/gnupg/libexec/gpgbin:$PATH"
fi