We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 450716c commit 5ec3d5fCopy full SHA for 5ec3d5f
modules/post/osx/gather/autologin_password.rb
@@ -38,7 +38,7 @@ def initialize(info={})
38
def run
39
# ensure the user is root (or can read the kcpassword)
40
if not user == 'root'
41
- fail_with "Root privileges are required to read kcpassword file"
+ fail_with(Failure::NoAccess, "Root privileges are required to read kcpassword file")
42
end
43
44
# read the autologin account from prefs plist
@@ -48,7 +48,7 @@ def run
48
if autouser.present?
49
print_status "User #{autouser} has autologin enabled, decoding password..."
50
else
51
- fail_with "No users on this machine have autologin enabled"
+ fail_with(Failure::NotVulnerable, "No users on this machine have autologin enabled")
52
53
54
# kcpass contains the XOR'd bytes
0 commit comments