Skip to content

Commit

Permalink
added more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
krispayne committed Feb 14, 2016
1 parent 1932f29 commit aa8aa41
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions ElCapitan_CIS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ systemPreferences() {
# Screen sharing controlled by Remote Management Preferences

# 2.4.4 Disable Printer Sharing (Scored)
/usr/sbin/cupsctl --no-share-printers
/usr/sbin/cupsctl --no-share-printers 2>&1 >> ScriptLogging

# 2.4.5 Disable Remote Login (Scored)
# Controlled at Firewall
Expand All @@ -208,10 +208,10 @@ systemPreferences() {
ScriptLogging " 2.5 Energy Saver"

# 2.5.1 Disable "Wake for network access"
/usr/bin/pmset -a womp 0
/usr/bin/pmset -a womp 0 2>&1 >> ScriptLogging

# 2.5.2 Disable sleeping the computer when connected to power
/usr/bin/pmset -c sleep 0
/usr/bin/pmset -c sleep 0 2>&1 >> ScriptLogging

# 2.6 Security & Privacy
ScriptLogging " 2.6 Security & Privacy"
Expand All @@ -220,10 +220,10 @@ systemPreferences() {
# We do not use FileVault in our environment

# 2.6.2 Enable Gatekeeper (Scored)
/usr/sbin/spctl --master-enable
/usr/sbin/spctl --master-enable 2>&1 >> ScriptLogging

# 2.6.3 Enable Firewall (Scored)
/usr/bin/defaults write /Library/Preferences/com.apple.alf globalstate -int 1
/usr/bin/defaults write /Library/Preferences/com.apple.alf globalstate -int 1 2>&1 >> ScriptLogging

# 2.6.4 Enable Firewall Stealth Mode
local stealthMode
Expand Down
10 changes: 5 additions & 5 deletions Yosemite_CIS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ systemPreferences() {
# Screen sharing controlled by Remote Management Preferences

# 2.4.4 Disable Printer Sharing (Scored)
/usr/sbin/cupsctl --no-share-printers
/usr/sbin/cupsctl --no-share-printers 2>&1 >> ScriptLogging

# 2.4.5 Disable Remote Login (Scored)
# Controlled at Firewall
Expand All @@ -208,10 +208,10 @@ systemPreferences() {
ScriptLogging " 2.5 Energy Saver"

# 2.5.1 Disable "Wake for network access"
/usr/bin/pmset -a womp 0
/usr/bin/pmset -a womp 0 2>&1 >> ScriptLogging

# 2.5.2 Disable sleeping the computer when connected to power
/usr/bin/pmset -c sleep 0
/usr/bin/pmset -c sleep 0 2>&1 >> ScriptLogging

# 2.6 Security & Privacy
ScriptLogging " 2.6 Security & Privacy"
Expand All @@ -220,10 +220,10 @@ systemPreferences() {
# We do not use FileVault in our environment

# 2.6.2 Enable Gatekeeper (Scored)
/usr/sbin/spctl --master-enable
/usr/sbin/spctl --master-enable 2>&1 >> ScriptLogging

# 2.6.3 Enable Firewall (Scored)
/usr/bin/defaults write /Library/Preferences/com.apple.alf globalstate -int 1
/usr/bin/defaults write /Library/Preferences/com.apple.alf globalstate -int 1 2>&1 >> ScriptLogging

# 2.6.4 Enable Firewall Stealth Mode
local stealthMode
Expand Down

0 comments on commit aa8aa41

Please sign in to comment.