Merge branch 'spark_im.rb' of git://github.com/zeknox/metasploit-framework into zeknox-spark_im.rb

unstable
sinn3r 2012-12-26 20:35:46 -06:00
commit 17b41adfec
1 changed files with 11 additions and 5 deletions

View File

@ -102,12 +102,18 @@ class Metasploit3 < Msf::Post
# store the hash close the file # store the hash close the file
password = password.delete_if {|e| e !~ /password.+=.+=\r/} password = password.delete_if {|e| e !~ /password.+=.+=\r/}
hash = password[0].split("password").join.chomp password.each do | pass |
print_status("Spark password hash: #{hash}") if datastore['VERBOSE'] if pass.nil?
config.close next
end
# call to decrypt the hash hash = pass.split("password").join.chomp
decrypt(hash) print_status("Spark password hash: #{hash}") if datastore['VERBOSE']
# call method to decrypt hash
decrypt(hash)
config.close
end
end end
end end
end end