Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hash_dump now working properly up to Mac OS X High Sierra (10.13.6 in… #10594

Merged
merged 1 commit into from
Sep 25, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions modules/post/osx/gather/hashdump.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class MetasploitModule < Msf::Post
# set of accounts to ignore while pilfering data
OSX_IGNORE_ACCOUNTS = ["Shared", ".localized"]
#OSX_IGNORE_ACCOUNTS = ["Shared", ".localized"]

include Msf::Post::File
include Msf::Post::OSX::Priv
Expand Down Expand Up @@ -203,7 +203,10 @@ def grab_shadow_blob(user)

# @return [Array<String>] list of user names
def users
@users ||= cmd_exec("/bin/ls /Users").each_line.collect.map(&:chomp) - OSX_IGNORE_ACCOUNTS
tmp = cmd_exec("dscacheutil -q user").split(/$/).map(&:strip) #- OSX_IGNORE_ACCOUNTS
res = Array.new()
tmp.each_with_index{ |val, index| res << val.split("name: ")[1] if val.include?("name: ") and tmp[index+1].include?("**")}
res
end

# @return [String] version string (e.g. 10.8.5)
Expand Down