Merge branch 'spark_im.rb' of git://github.com/zeknox/metasploit-framework into zeknox-spark_im.rb
commit
17b41adfec
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue