Skip to content

Commit

Permalink
ARDAgent
Browse files Browse the repository at this point in the history
test audit/remediation
  • Loading branch information
krispayne committed Jul 29, 2016
1 parent 34266dc commit c343003
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions ElCapitan_CIS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ systemPreferences() {
# Level 1 Scored

#TODO: Test. New audit/remediation written.

local AppleFileServerAudit
AppleFileServerAudit="$(/bin/launchctl list | egrep AppleFileServer)"
if [[ "${AppleFileServerAudit}" -ge 0 ]]; then
Expand All @@ -433,8 +433,16 @@ systemPreferences() {
# 2.4.9 Disable Remote Management
# Level 1 Scored

# TODO
# design audit/remediate
# TODO: Test. New audit/remediation written.
local ARDAgentAudit
ARDAgentAudit="$(ps -ef | egrep ARDAgent)"
if [[ ${ARDAgentAudit} -ge 0 ]]; then
ScriptLogging " Remote Management is disabled."
else
ScriptLogging " Remote Management is NOT disabled. Disabling..."
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -stop
ScriptLogging " Remote Management is disabled."
fi

# 2.5 Energy Saver

Expand Down

0 comments on commit c343003

Please sign in to comment.